v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-15312564.6 KB
Brain

Chat with The Brain

Send a natural language query to The Brain. It routes to the right specialist(s) automatically. Add "Respond as JSON with:" to your message and specify fields to get structured JSON back.

post/v1/chat

Request body

messagestring required

Your query to The Brain. Add "Respond as JSON with:" and list fields for structured output.

streamboolean

Enable streaming response

modelstring

Model ID from the provider's API. Use the exact ID the provider uses — e.g. "gpt-4o" for OpenAI, "claude-sonnet-4-20250514" for Anthropic, "anthropic/claude-sonnet-4" for OpenRouter. Requires a connected API key for the chosen provider.

model_provider'openai' | 'anthropic' | 'xai' | 'openrouter' | 'venice'

Provider of the custom model. Must match the provider you connected your API key for.

Response

Analysis complete

session_idstring uuid
contentstring

The response. Contains markdown by default, or parseable JSON if you requested it.

timestampstring date-time
All 31 operations