GPT-5.4 - Complete API Reference
- Use OpenAI SDK format to call GPT-5.4 model
- Synchronous processing mode, real-time response
- Text conversation: Single or multi-turn contextual dialogue
- System prompts: Customize AI role and behavior
- Multimodal input: Supports text + image mixed input
- Quick start? Check out Quick Start Guide
https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.Authorizations
All APIs require Bearer Token authentication
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYBody
Model name for chat completion
gpt-5.4 "gpt-5.4"
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 once
false
Sampling temperature, controls randomness of output
Notes:
- Lower values (e.g., 0.2): More deterministic and focused output
- Higher values (e.g., 1.5): More random and creative output
0 <= x <= 20.7
Nucleus sampling parameter
Notes:
- Controls sampling from tokens with cumulative probability
- For example, 0.9 means sampling from tokens with top 90% cumulative probability
- Default: 1.0 (considers all tokens)
Recommendation: Do not adjust both temperature and top_p simultaneously
0 <= x <= 10.9
Top-K sampling parameter
Notes:
- For example, 10 means only considering the top 10 most probable tokens during each sampling step
- Smaller values make output more focused
- Default: unlimited
x >= 140
Response
Chat completion successful
Unique identifier for the chat completion
"chatcmpl-20251010015944503180122WJNB8Eid"
The model used for completion
"gpt-5.4"
Response type
chat.completion "chat.completion"
Unix timestamp when the completion was created
1760032810
List of completion choices
Token usage statistics