查看所有API及完整文档请访问:https://api.alcex.cn/此站仅仅为了提供复杂接口的调用示例,其他接口请移步至官网
{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "你好" } ], "stream": false }
curl --location --request POST 'https://apiserver.alcex.cn/v1/chat/completions' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "你好" } ], "stream": false }'
{ "id": "string", "object": "string", "created": 0, "model": "string", "usage": { "prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0 }, "choices": [ { "index": 0, "message": { "role": "string", "content": "string" }, "finish_reason": null } ] }