Skip to main content
POST

Authorizations

Authorization
string
header
required

Your Gigabrain API key. Get one at https://gigabrain.gg/profile?tab=api. Format: gb_sk_...

Body

application/json
message
string
required

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

stream
boolean
default:false

Enable streaming response

model
string

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
enum<string>

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

Available options:
openai,
anthropic,
xai,
openrouter,
venice

Response

Analysis complete

session_id
string<uuid>
content
string

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

timestamp
string<date-time>