Chat Completions
OpenAI-compatible chat completion endpoint with streaming support
POST
Create a chat completion with your configured AI agent. This endpoint is fully compatible with OpenAI’s API, allowing you to use existing OpenAI SDKs and tools.
Request Body
Chat session identifier for conversation continuity
Array of message objects representing the conversation history
Model identifier to use for completion
Provider name (e.g., “openai”, “anthropic”, “ollama”)
Sampling temperature between 0 and 2. Higher values make output more random
Maximum number of tokens to generate
Whether to stream the response
Response
Indicates if the request was successful
Unique identifier for the completion
Array of completion choices
Token usage information
Streaming
Setstream: true to receive Server-Sent Events (SSE) instead of a single response:
Notes
- Your agent will automatically use configured knowledge bases, tools, and MCP servers
- The
chatIdmaintains conversation context and history - Compatible with all OpenAI client libraries and tools

