Create chat session
OpenAI format (Chat)
Create chat session
Creates model responses based on conversation history. Supports both streaming and non-streaming responses.
Compatible with OpenAI Chat Completions API.
POST
Create chat session
Authorizations
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Body
application/json
Model ID
Example:
"gpt-4"
Chat message list
Temperature
Required range:
0 <= x <= 2Top-p sampling parameters
Required range:
0 <= x <= 1Number of generations
Required range:
x >= 1Whether to use streaming response
Stop sequences
Max Output Tokens
Max Completion Tokens
Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Available options:
none, auto, required Reasoning effort (for models that support reasoning)
Available options:
low, medium, high Available options:
text, audio 