稳定、快速、免费的 API 接口服务
chatGPT接口体验,最牛的AI智能接口,可以写文章,翻译等功能
接口地址: http://api.itfaba.com:8899/aichat
返回格式: JSON
请求方式: POST
请求示例: http://api.itfaba.com:8899/aichat?apiKey=testkey
注意:{apiKey}参数接口密钥登陆用户平台获取
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
ctoken | 是 | string | ctoken通信密钥,用户平台chatGPT栏目生成 |
answer | 是 | string | 输入问题描述 |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "result": 1, "data": { "created": 1678286593, "usage": { "promptTokens": 13, "totalTokens": 51, "completionTokens": 38 }, "model": "gpt-3.5-turbo-0301", "id": "chatcmpl-6rpIXseFe0J27YdxbdxuCkSFGZJg5", "choices": [ { "finishReason": "stop", "index": 0, "message": { "role": "assistant", "content": "\n\nAs an AI language model, I am not capable of understanding or writing in languages other than English. Please provide your request or message in English so that I can assist you better." } } ], "object": "chat.completion" }, "info": "成功" }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "result": 1, "data": { "created": 1678286593, "usage": { "promptTokens": 13, "totalTokens": 51, "completionTokens": 38 }, "model": "gpt-3.5-turbo-0301", "id": "chatcmpl-6rpIXseFe0J27YdxbdxuCkSFGZJg5", "choices": [ { "finishReason": "stop", "index": 0, "message": { "role": "assistant", "content": "\n\nAs an AI language model, I am not capable of understanding or writing in languages other than English. Please provide your request or message in English so that I can assist you better." } } ], "object": "chat.completion" }, "info": "成功" }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
apiKey登录用户平台获取,ctoken加客服充值试用