Crear finalización de chat
OpenAI-compatible Chat Completions for standard multi-turn chat, structured output, and tool calling. Model names use the provider/model-name format, for example openai/gpt-4o. Image-capable models can also return generated images through this endpoint.
Autorizaciones
Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.
Cuerpo
Target model ID in provider/model-name format.
"openai/gpt-4o"
Conversation message list.
Sampling temperature.
Nucleus sampling value.
Number of choices to generate.
Enable SSE streaming.
Maximum token count.
Max completion-only tokens.
Presence penalty.
Frequency penalty.
Token bias configuration.
Stop sequence string or array.
Tool definitions.
Tool selection behavior. Defaults to auto.
Response schema or JSON mode config.
Deterministic seed.
End-user identifier.

