API Reference
Chat
1 endpoints under /api/chat
post
/api/chat/completions๐ API key
Create Chat Completion
OpenAI-compatible chat completions endpoint. Supports both streaming and non-streaming responses. Compatible with OpenAI's Chat Completions API format.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
agent_name | string | null | โ | Name of the agent to use (optional, uses temporary agent if not provided) |
max_tokens | integer | null | โ | |
messages | ChatMessage[] | yes | |
model | string | null | โ | |
stream | boolean | โ | |
temperature | number | null | โ |
Responses
- 200Successful Response
object