Get API Key:
Visit API Key Management Page to get your API Key
Add to request headers:
Authorization: Bearer YOUR_API_KEYModel name for chat completion
gpt-5.2 "gpt-5.2"
List of messages for the conversation, supports multi-turn dialogue and multimodal input (text, images)
1Whether to stream the response
true: Stream response, returns content chunk by chunk in real-timefalse: Wait for complete response and return all at oncefalse
Sampling temperature, controls randomness of output
Notes:
0 <= x <= 20.7
Nucleus sampling parameter
Notes:
Recommendation: Do not adjust both temperature and top_p simultaneously
0 <= x <= 10.9
Top-K sampling parameter
Notes:
x >= 140
Chat completion successful
Unique identifier for the chat completion
"chatcmpl-20251010015944503180122WJNB8Eid"
The model used for completion
"gpt-5.2"
Response type
chat.completion "chat.completion"
Unix timestamp when the completion was created
1760032810
List of completion choices
Token usage statistics