Chat
Create chat completion
OpenAI-compatible hosted chat completion. See the chat completions reference for the exact forwarding contract.
post/chat/completions
Request body
Example request
{
"model": "deepseek-v4-flash"
}Response
Chat completion (or SSE stream if stream=true)
Example response
{
"id": "chatcmpl_abc123",
"object": "chat.completion",
"choices": [
{
"runinfra": {
"output_status": {
"message": "The model reached its generation limit before producing answer content. Increase max_tokens or max_completion_tokens if the model limit allows, or shorten the prompt, then retry."
}
}
}
],
"usage": {
"cost": 0.00294,
"runinfra": {
"cost_microcents": 294000
}
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.