ReferenceAPI
List models
GET
/v1/modelsAuthorization
serverToken AuthorizationBearer <token>
The server's BRAIN_API_TOKEN, sent as Authorization: Bearer . Required for application API calls when configured; optional only on a loopback server started without a token.
In: header
Query Parameters
provider?string
Provider identifier
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/models" \ -H "Authorization: Bearer YOUR_TOKEN"{ "providers": [ { "dialect": "openai_responses", "id": "string", "media_inputs": [ "string" ], "models": [ { "attachment": true, "context_window_tokens": 0, "cost": { "cache_read": 0.1, "cache_write": 0.1, "input": 0.1, "output": 0.1 }, "id": "string", "input_modalities": [ "string" ], "max_output_tokens": 0, "output_modalities": [ "string" ], "reasoning": true, "structured_output": true, "tool_call": true } ] } ], "snapshot_digest": "string"}Read or stream session events GET
Previous Page
Prepare reusable code on the built-in Environment workers POST
Waits until the declared artifacts are loaded on eligible workers. Preparation is retained for this server process, restored after worker replacement, and independent of session lifetime. Repeating the request checks current resources again. It grants no session authority.