cURL
curl --request POST \ --url https://api.qhaigc.net/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "messages": [ { "role": "<string>", "content": "<string>" } ], "style": "openai", "stream": true } '
使用 OpenAI Chat Completions 风格返回结果
style
openai
curl --location --request POST 'https://api.qhaigc.net/v1/chat/completions' \ --header 'Authorization: Bearer <YOUR_API_KEY>' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "gpt-5-mini", "style": "openai", "messages": [ { "role": "user", "content": "请用三句话介绍 RAG" } ], "stream": false }'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
模型名称
Show child attributes
接口风格,支持 OpenAI、Claude、Gemini
claude
gemini
是否流式
成功响应 (流式)