Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://octopusx.ai/v1/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "把下面一句话改写得更正式:这个接口挺好用。", "max_tokens": 120, "temperature": 0.3 }'
{ "id": "cmpl_abc123", "object": "text_completion", "created": 1735689600, "model": "gpt-3.5-turbo-instruct", "choices": [ { "index": 0, "text": "该接口具备良好的易用性。", "finish_reason": "stop" } ], "usage": { "prompt_tokens": 22, "completion_tokens": 10, "total_tokens": 32 } }
使用 OpenAI Legacy Completions 兼容格式生成文本。
prompt