cURL
curl --request POST \ --url https://api.evolink.ai/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "gpt-5.2", "messages": [ { "role": "user", "content": "Hello, introduce the new features of GPT-5.2" } ] } '
{ "id": "chatcmpl-20251010015944503180122WJNB8Eid", "model": "gpt-5.2", "object": "chat.completion", "created": 1760032810, "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! I'm happy to introduce GPT-5.2 to you.\n\nGPT-5.2 is the next-generation large language model with enhanced reasoning and understanding capabilities..." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 13, "completion_tokens": 1891, "total_tokens": 1904, "prompt_tokens_details": { "cached_tokens": 0, "text_tokens": 13, "audio_tokens": 0, "image_tokens": 0 }, "completion_tokens_details": { "text_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1480 }, "input_tokens": 0, "output_tokens": 0, "input_tokens_details": null } }
APIキーの取得:
APIキー管理ページにアクセスしてAPIキーを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
チャット補完用モデル名
gpt-5.2
"gpt-5.2"
会話用メッセージリスト
1
表示 子属性
[ { "role": "user", "content": "Hello, introduce the new features of GPT-5.2" }]
チャット補完成功
チャット補完の一意の識別子
"chatcmpl-20251010015944503180122WJNB8Eid"
補完に使用されたモデル
レスポンスタイプ
chat.completion
"chat.completion"
補完が作成されたUnixタイムスタンプ
1760032810
補完選択肢のリスト
トークン使用統計