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

FieldTypeRequiredDescription
agent_namestring | nullโ€”Name of the agent to use (optional, uses temporary agent if not provided)
max_tokensinteger | nullโ€”
messagesChatMessage[]yes
modelstring | nullโ€”
streambooleanโ€”
temperaturenumber | nullโ€”

Responses

  • 200Successful Responseobject