OpenAI Format
OpenAI Format - Simple Chat
- Generic simple Chat Completions API reference for all OpenAI-compatible models
- Minimal parameters for quick start
- Text conversations: single or multi-turn context
- System prompts: customize AI role and behavior
- Supports streaming and non-streaming responses
POST
Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Model name, e.g. gpt-5.4, deepseek-chat, claude-sonnet-4-6, etc.
Example:
"gpt-5.4"
List of messages in the conversation
Whether to stream the response
Sampling temperature (0-2)
Required range:
0 <= x <= 2Maximum number of tokens to generate
Nucleus sampling parameter (0-1)
Required range:
0 <= x <= 1