LLM API
Call the AI models of your organization directly, from your own code or from tools such as coding assistants. The LLM API speaks the formats of OpenAI, Anthropic and Google Gemini, so most existing SDKs and tools work by changing the base URL and the key.
Base URL
Blockbrain
https://api.theblockbrain.ai/genai/v1
STACKIT (EU)
https://api.eu-1.theblockbrain.ai/genai/v1
Authentication
Use a personal access token from API Access. Send it in one of these headers:
Authorization: Bearer <token>, as in the OpenAI formatx-api-key: <token>, as in the Anthropic formatx-goog-api-key: <token>, as in the Gemini format
Endpoints
OpenAI
POST /chat/completions, POST /completions, POST /responses, POST /embeddings
Anthropic
POST /messages, POST /messages/count_tokens
Gemini
POST /v1beta/models/{model}:generateContent and :streamGenerateContent
All
GET /models lists the models your token can call
For the Gemini endpoints, use https://api.theblockbrain.ai/genai as the base and add the path above.
Which models you can call
You can call the models that are switched on for your organization in AI Models, and your organization's auto routers. GET /models returns the exact list for your token. A model that is not on the list answers 403.
Example
Costs and limits
Every call consumes Compute Blocks, priced by the model that answered it. Usage counts against your own limit and, if one is set, the limit of the token. When a limit is reached, requests answer 429. See Setting Limit.
Errors
401
The token is missing, invalid or expired
403
The LLM API is not enabled for your organization, or the model is not available to your token
429
A Compute Block limit is reached
503
The LLM API is temporarily unavailable, try again shortly

