单文档语境化问答
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://api.ai21.com/studio/v1/answer
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ai21.com/studio/v1/answer' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": "string",
"question": "string"
}'
响应示例响应示例
{
"answerInContext": true,
"answer": "Koalas eat the leaves of Eucalyptus trees."
}
请求参数
Body 参数application/json