Docs
Call Blend like you call OpenAI.
Blend speaks the OpenAI chat completions API at https://api.thinkblend.ai/v1. You send a request as you would to OpenAI, name a Blend model, and the answer says what the request was read as and what it was charged.
Quick start
- Create an account. A first account starts with $25 of credit and needs no card.
- Create an API key in your dashboard. It is shown once, so copy it when it appears, and put it in your environment as
BLEND_API_KEY, which is where the examples below read it. - Send a request to
https://api.thinkblend.ai/v1with the key, and ask forblend-chianti-1.
curl https://api.thinkblend.ai/v1/chat/completions \
-H "Authorization: Bearer $BLEND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "blend-chianti-1",
"messages": [{ "role": "user", "content": "What is the capital of France?" }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.thinkblend.ai/v1", api_key=os.environ["BLEND_API_KEY"])
answer = client.chat.completions.create(
model="blend-chianti-1",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(answer.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.thinkblend.ai/v1", apiKey: process.env.BLEND_API_KEY });
const answer = await client.chat.completions.create({
model: "blend-chianti-1",
messages: [{ role: "user", content: "What is the capital of France?" }],
});
console.log(answer.choices[0].message.content);Any client written for the OpenAI chat completions API works the same way: change its base URL, its key and the model it asks for. What Blend takes of a request, and what it refuses, is under Requests. The same changes, for Cursor, Claude Code, Codex and the others, are under In your editor.
In your editor
An editor uses Blend by changing three things. The base URL is https://api.thinkblend.ai/v1, the key is a Blend key, and the model is blend-chianti-1. It has to speak the chat completions API. Claude Code and Codex do not: each needs a program in front of it that translates its own API into a chat completion, and Blend does not ship one.
The settings below were tried on 21 November 2026, in the versions named, against a Blend server with a stand-in for the models behind it, and all but the VS Code extensions of Cline, Kilo Code and Claude Code a second time with the kind of key the dashboard makes. That shows that the editor's requests are taken and the answers read, tool calls included where it says so, and not how well an editor works with the models' answers. Cursor's were not tried.
Cursor
These steps were not tried. Cursor sends these requests from its own servers, with a Cursor account signed in, so the key and the prompts pass through Cursor, and it can reach https://api.thinkblend.ai/v1 and not a server on your own machine or network. Cursor's documentation says that a key of your own is for chat models and that Tab completion stays on Cursor's own. The names of the switches below are not in it: they are from Cursor's forum, and were not checked in Cursor.
Open Cursor Settings, which is Cmd+Shift+J on macOS and Ctrl+Shift+J elsewhere, then Models, and the OpenAI key there.
- Paste the Blend key into OpenAI API Key and turn on Use OpenAI API Key.
- Turn on Override OpenAI Base URL and set it to
https://api.thinkblend.ai/v1. The address ends at/v1. - Add
blend-chianti-1and choose it in the chat's model picker.
The override is not for one model: while it is on, Cursor's own models can be sent to that address too, its OpenAI models among them. Blend answers to the names under Models and to no other, so they fail with model_not_found. Turn the override off to use them again, and start a new chat after switching.
Claude Code
Claude Code calls Anthropic's Messages API, at /v1/messages on the base URL it is given. Blend does not serve that, so the base URL cannot be Blend's: Claude Code is told that the request is not available and that it failed to authenticate.
A program that accepts /v1/messages and sends the conversation on to Blend as a chat completion can sit in between. LiteLLM's proxy is one, and the one this was tried with (LiteLLM 1.110.2, Claude Code 2.1.330). Its config.yaml:
model_list:
- model_name: blend-chianti-1
litellm_params:
model: openai/blend-chianti-1
api_base: https://api.thinkblend.ai/v1
api_key: os.environ/BLEND_API_KEY
use_chat_completions_api: true
additional_drop_params: ["web_search_options"]
general_settings:
master_key: os.environ/BLEND_API_KEYStart it with BLEND_API_KEY set, as litellm --config config.yaml. It listens on port 4000. use_chat_completions_api makes it call chat completions: without it LiteLLM calls /v1/responses, which Blend does not serve. master_key is the key LiteLLM asks of the editor, here the Blend key, and it does not start without one.
Point Claude Code at that program. The base URL has no /v1, because Claude Code adds /v1/messages itself. Put the Blend key in ANTHROPIC_AUTH_TOKEN, which is sent as Authorization: Bearer. In ~/.claude/settings.json, and on Windows in %USERPROFILE%\.claude\settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "http://127.0.0.1:4000",
"ANTHROPIC_AUTH_TOKEN": "blnd_…",
"ANTHROPIC_MODEL": "blend-chianti-1",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "blend-chianti-1"
}
}ANTHROPIC_MODEL is the model the session asks for, and ANTHROPIC_DEFAULT_HAIKU_MODEL the one Claude Code's documentation gives for its background work. Without ANTHROPIC_MODEL Claude Code asks for one of Anthropic's models, which the program refuses because it is not in its list. Claude Code says that it does not recognize the model and assumes a context window for it, and goes on.
Do not put the key in a project's .claude/settings.json, which is committed. The VS Code extension reads the same variables from claudeCode.environmentVariables in its own settings, a list of { "name": …, "value": … }, and that is what its login check sees. A shell export reaches a claude started from that shell, and not an editor opened from the dock.
Run /status. The Anthropic base URL line should be the program's address. With these settings a turn was answered through the program, streamed, and so was a turn in which the model called Claude Code's tool for reading a file and was sent what it read.
Codex
Codex calls the Responses API. wire_api = "chat" is refused as the configuration is read, and a provider that leaves it out uses responses. Blend serves chat completions and not /v1/responses, so Codex cannot call it directly either.
Point it at a program that accepts /v1/responses and sends a chat completion to Blend. LiteLLM's proxy does, with the config.yaml under Claude Code (tried with LiteLLM 1.110.2 and Codex 0.171.0). The additional_drop_params line in it is for Codex: LiteLLM sends Codex's web search on as web_search_options, which Blend refuses with unsupported_parameter. In ~/.codex/config.toml:
model = "blend-chianti-1" model_provider = "blend" [model_providers.blend] name = "Blend" base_url = "http://127.0.0.1:4000/v1" env_key = "BLEND_API_KEY" wire_api = "responses"
env_key is the name of the variable that holds the Blend key, not the key, and Codex sends that value as a bearer token. It adds /responses to base_url, so the address ends at /v1 and is the program's, not Blend's. The provider's id must not be openai: that name is built in, and Codex refuses a configuration that has a table under it. Codex asks for the model at the top of the file, so the program passes the name on as it is. Codex warns that it has no metadata for the model, and goes on.
Other editors
Anywhere an editor has a place for an OpenAI base URL, a key and a model id, those three are enough. Where it lets you choose the Responses API or chat completions, choose chat completions. Blend does not serve /v1/responses.
name: Blend
version: 0.0.1
schema: v1
models:
- name: Chianti
provider: openai
model: blend-chianti-1
apiBase: https://api.thinkblend.ai/v1
apiKey: blnd_…export OPENAI_API_BASE="https://api.thinkblend.ai/v1" export OPENAI_API_KEY="$BLEND_API_KEY" aider --model openai/blend-chianti-1
{
"$schema": "https://opencode.ai/config.json",
"model": "blend/blend-chianti-1",
"provider": {
"blend": {
"name": "Blend",
"env": ["BLEND_API_KEY"],
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "https://api.thinkblend.ai/v1" },
"models": { "blend-chianti-1": { "name": "Chianti" } }
}
}
}{
"language_models": {
"openai_compatible": {
"blend": {
"api_url": "https://api.thinkblend.ai/v1",
"available_models": [
{ "name": "blend-chianti-1", "display_name": "Chianti", "max_tokens": 922000 }
]
}
}
}
}- Continue
- In
~/.continue/config.yaml, as above. Tried with its command line 1.5.47 and its VS Code extension 2.0.0. - Cline
- Under the API provider OpenAI Compatible: Base URL, OpenAI Compatible API Key and Model ID, which it offers from Blend's list once the key is in. Tried with its VS Code extension 4.1.27 and its command line 3.0.75.
- Kilo Code
- In Settings, under Providers, choose Custom provider at the bottom of the list. Give it an id and a name, leave Provider API at OpenAI Compatible, and fill in the base URL and the key. Fetch models lists Blend's. Add
blend-chianti-1, then choose it in the chat's model picker. Tried with 7.8.32. - Aider
- The two variables above. The
openai/in front of the model is Aider's, and the rest is what Blend is asked for. Aider warns about a model it has no figures for, and asks whether to open its documentation about that. Tried with 0.86.2. - OpenCode
- In
~/.config/opencode/opencode.json, oropencode.jsonin the project. This is the form that OpenCode 1 and OpenCode 2 both read, tried with 1.19.6 and 2.3.2.@ai-sdk/openai-compatibleis the package for chat completions. Choose the modelblend/blend-chianti-1. The key is read fromBLEND_API_KEY. - Zed
- In its
settings.json, or from Settings, AI, LLM Providers.max_tokensis Zed's name for the model's context window. The key is read fromBLEND_API_KEY, the provider's name in capitals with_API_KEY, in the environment Zed is started from, or from the keychain when it is typed into the settings page. Tried with 1.29.3.
Credit in an editor
An editor's request holds credit until it is answered, as any request does: Usage and billing says how much. In the trial Kilo Code, OpenCode and Claude Code behind LiteLLM allowed a turn's answer 32,000 tokens, so each of those requests held $0.31 and its prompt while it was under way, where a request that sets no limit holds $0.15.
OpenCode sends two requests at once, one that titles the session and the turn itself. With less on the account than the title's request held, which was $0.31 for its answer with OpenCode 1 and $0.15 with OpenCode 2, and a little more for its prompt, the turn was refused while the title was under way, though the account had credit. OpenCode 1 sent the turn again and answered some seconds later. OpenCode 2 stopped, with Blend's message that the account has no credit left.
With no credit left, every request is refused with insufficient_quota, and an editor does not always say so. Aider and Continue's VS Code extension reported a rate limit, Codex reported 429 Too Many Requests without Blend's message, and Claude Code, Continue's command line, Kilo Code and OpenCode 1 sent the request again for one to four minutes before they showed the message. Zed and OpenCode 2 showed it at once, and Cline's command line after 14 seconds. So an editor that reports a rate limit, or that says nothing for minutes, may be out of credit, and the dashboard shows what is left. None of the refused requests is charged.
How Blend differs
A Blend model gives each request to one model: the cheapest in its pool that it expects to get that request right. You pay one price, whichever model that is. Here is how that compares with the other ways of using more than one model.
- Several models on one request
- Products such as OpenRouter Fusion send a request to a panel of models and have another model write one answer from theirs. Every one of those calls is billed and the answer takes longer, which is worth it for a research question where no single model is good enough. Blend does not do this. One model answers, and the aim is the answer a frontier model would give, for less.
- A router billed by the model
- Routers such as OpenRouter Auto also pick one model for a request. You are charged that model's price, so what a request costs depends on the pick, and changes when the router is retuned. Chianti costs $2.80 per million tokens going in and $9.60 coming out whichever model answers. Its accuracy is on Chianti's page, next to that of the strongest model in its pool.
- One model, called directly
- You choose the model, and choose again when a better or a cheaper one comes out. Chianti's 12 models were all tested on the same requests, and each request goes to the cheapest one Chianti expects to get that request right. When it is unsure what kind of work a request is, it picks a model that is good at every kind the request could be. On some kinds of work two or three cheaper models are asked first, and a stronger one answers when they disagree. A provider that fails is replaced by another, and an answer that is not the JSON or the tool call you asked for is asked again of a stronger model, unless it is a stream and already on its way.
Authentication
Every request carries an API key as a bearer token, in the header Authorization: Bearer blnd_…
Keys are created and revoked in the dashboard. A key can be made to expire after an hour, a day, a month or on a date you pick, and only its hash is stored, which is why it cannot be shown a second time. A request with a key that is missing, expired or revoked is answered with 401 and the code invalid_api_key. A key you revoke can still be accepted for up to 15 seconds, and for up to five minutes if Blend cannot read its accounts at the time.
Call the API from a server. Blend answers with no CORS headers, so a page in a browser cannot call it, and a key in a page can be read by whoever opens it.
Models
The model of a request is a Blend model. There is one, and three names for it:
- blend-chianti-1
- Chianti 1, in whichever version of it was released last. When its routing is tuned again, the new version answers under this name and your requests are on it with nothing to change.
- blend-chianti
- The latest Chianti. It is
blend-chianti-1now, and will be the next major version when there is one, whileblend-chianti-1stays what it is. - blend
- Blend's default model, which is
blend-chianti-1now. It is whichever Blend model we choose as the default, so nameblend-chianti-1for requests that are to stay on Chianti.
A version cannot be asked for by its own name: a request for blend-chianti-1.0 is answered with 404 and the code model_not_found. Which version routed a request is in blend.blend_model of its answer.
GET /v1/models lists the names a request can use. The models Chianti routes between cannot be asked for by name. Chianti's page says which they are and how accurate it is.
Requests
POST /v1/chat/completions takes an OpenAI chat completion request. These parts of it are passed on to the model that answers:
- messages
- The conversation. Content is text, or text and images given as an
httpsor adataURL. - stream, stream_options
- Send the answer as it is written. See Streaming.
- tools, tool_choice, parallel_tool_calls
- Function calling. A call to a tool the request does not have, or with arguments that do not fit the tool's schema, is not accepted as an answer: the request goes to a stronger model. On a stream another model can take over only until the first chunk has been sent. After that the answer is the one being written, and one that fails the check is marked
invalid_outputin the chunk that carriesblend. Theidof a tool call is Blend's own,call_and 24 hexadecimal digits whichever model made the call, and is what to send back with the tool's result. - response_format
text,json_objectorjson_schema. An answer that is not the JSON you asked for goes to a stronger model in the same way, and on a stream with the same limit.- max_completion_tokens
- The most the model may write, what it thinks included. Leave it out and Blend sets it at 16,000 tokens. An answer that reaches the limit ends with
finish_reason: lengthand is returned as far as it got. When the limit was Blend's and the model spent all of it thinking, there is nothing to return, and the request goes to another model. When the limit was yours, the answer is returned with nothing in it and is charged for, so set a limit with room for what the model thinks.max_tokens, the name it had before, is accepted and means the same. - stop
- Passed on as written. A request that has one goes only to the models that take stop sequences, which not every model does.
- temperature, top_p, frequency_penalty, presence_penalty, seed
- Sent to the models that take them. Not every model in the pool takes each of them, so an answer may have been written without one, and
blend.ignored_parameterslists the ones that is so of. - reasoning_effort
- How hard the model that answers is to think, such as
low,mediumorhigh. The one you name is passed on as you wrote it to a model that has that level, and a model that does not is sent the nearest it has. A level no model knows is sent to none, and is listed inblend.ignored_parameters. Leave it out and it is the Blend model's to choose. One that was measured with a model at an effort sends that effort with the requests it routes there.blend-chianti-1.0was not, so it sends none, and the model thinks as much as its provider has it think. When you name one, theX-Blend-Reasoning-Effortheader of the answer says what the model was sent.
A request can be as long as the model in Chianti's pool that reads the most can take. Blend reckons the length before it sends the request anywhere: a token for every four bytes of the messages, the tools and the schema of the answer, 8 more for each message that is not a system message and 51 over, and 1,500 for each image. For the models that count more tokens than that, it takes 1.3 times as many for the bytes. Up to about 32,000 tokens, with the answer it expects, every model in the pool can take the request. A longer one goes only to the models that read more, and the longest they take is about 920,000 tokens, which is some 3.7 million bytes. A request Blend reckons longer than that is refused with a 422 and no model is asked to answer it, and one a model finds too long although Blend did not with a 400. Both are under Errors, with the limits on the body itself.
One choice is returned for a request, so n can only be 1, and logprobs are not available. Parameters that only label a request at OpenAI, such as user, metadata and store, are accepted and left out. Any other parameter Blend does not know is refused with unsupported_parameter, because a request is not run without a part of it. A parameter's name is the one written here: Tools is not tools, and is refused. The same holds inside a message. Blend reads its role, content, name, tool_calls and tool_call_id, so an answer sent back as a message with a refusal on it is refused, unless the refusal is empty or null. So is content that is not text or an image.
Routing options
A request can carry a blend object. All of it is optional.
- conversation_id
- Ties the turns of a conversation together, so that it can stay on the model that already has it cached. Without one, a conversation is recognised by how its messages begin. It is 256 characters at the most, and a longer one is a 400.
- strict_parameters
trueleaves no parameter of the request out. A request with one that no model is sent, such asuser, is refused with a 400. One withtemperature,top_p,seedor a penalty goes only to the models that take it, which the strongest models do not, and is refused with a 422 when none of those can take the request.- max_cost_usd
- The most the request may be charged, in dollars. No model is ruled out for what it costs to run, because the price is the same whichever answers. One is left out when the answer it is expected to write would be charged more than the limit, so a lower limit can send the request to another model. The answer is capped at the tokens the limit covers, so it can end with
finish_reason: lengthsooner thanmax_completion_tokensallows, and a request for which no model's expected answer fits the limit is refused with a 422.
{
"model": "blend-chianti-1",
"messages": [{ "role": "user", "content": "Summarise the minutes below. ..." }],
"blend": { "conversation_id": "ticket-4812" }
}Which model answers a request is Chianti's to decide, and the price is the same for every answer because of that. So a request cannot ask for a stronger or a cheaper model than it would get, and one that tries to, with optimize_for, min_quality or strategy in blend, is refused with a 400.
The OpenAI clients do not know the field. In Python, pass it as extra_body={"blend": {...}}. In JavaScript it goes in the object given to create, beside model and messages.
Responses
The answer is an OpenAI chat completion with two differences. Its model is the Blend model that routed the request, by the name of its major version, blend-chianti-1, whichever of the three names the request used. And it has a blend object that says what was done with the request. This is all of it:
- request_id
- The id of the request. Quote it when you write to us about one.
- blend_model
- The version of the Blend model that routed it, such as
blend-chianti-1.0. - strategy
- How the Blend model routes. For
blend-chianti-1.0it isbenchmark: by what its models got right in our benchmarks. - task, complexity
- What kind of work the request was read as, such as
code_generationorreasoning_math, and how hard it was judged to be. - escalated, attempts
- Whether the answer came from another model than the one first chosen, and how many models were asked. A model that was asked again after a failure counts once, and the two or three that are asked first on some kinds of work count as two or three.
- outcome, problem
success, orinvalid_outputfor an answer that is returned although it does not have the shape the request asked for, because there was no stronger model left to ask or because it was a stream and already on its way, or has nothing in it, because there was no model left to ask at all.problemthen says what is wrong with it. It is charged like any other answer.- ignored_parameters
- The parameters of the request that not every model in the pool takes, so that the answer may have been written without them. The list is the same whichever model answered, and a request with
strict_parametersgoes only to a model that takes all of them. It is left out when there are none. TheX-Blend-Ignored-Parametersheader has the same list. - reasoning_effort
- The effort the model ran at, when the request named one and the model does not have that level: the nearest it has. It is left out when the model was sent what you asked for, and when the request named none.
- cost_usd
- What the request was charged.
- savings
- The request next to the model Chianti is measured against.
reference_modelnames it,reference_cost_usdis the tokens of the answer you got,usage.prompt_tokensandusage.completion_tokens, at its list price, with every token of the prompt at the full input price,savings_usdis that lesscost_usd, which can be under zero, andpricing_dateis the day the list price is of. - cache
- How the providers' prompt caches were used. For
blend-chianti-1.0it isaffinity: the providers are asked to cache, and a conversation is kept on the model that has it cached. The price is the same either way. - conversation
- There when Blend took the request for a turn of a conversation it had seen:
turnis the number of the request within it, andswitchedwhether this turn went to another model than the one before. - limited
truewhen the account is limited, or would be with the requests it has under way, and the request was routed among fewer models than the Blend model has, the ones that cost the most to run being left out. It is left out otherwise. See Fair use.
The answer does not say which of the Blend model's models wrote it: not in model, not in blend and not in a header. Chianti's page lists the models and the share of requests each answered in our benchmarks.
What the models' makers write differently reaches you in one form, so that it does not say either. usage is in every answer, and in a stream that asks for it, with the tokens the charge was worked out from, and with cached_tokens under prompt_tokens_details and reasoning_tokens under completion_tokens_details, each 0 where there were none. The id of a tool call is Blend's, and blend.ignored_parameters is the same list whichever model answered.
The same facts are in the response headers, for a client that does not read the body: X-Blend-Request-Id, X-Blend-Routed-By, X-Blend-Strategy, X-Blend-Task, X-Blend-Complexity, X-Blend-Escalated and X-Blend-Cache, and on an answer that is not a stream X-Blend-Cost-Usd and X-Blend-Savings-Usd.
X-Blend-Reasoning-Effort is the reasoning effort the model was sent, for a request that named one: the one it named, or the nearest that model has. It is there on a stream too, and absent from the answer to a request that named none.
X-Blend-Limited: true says the same as blend.limited, on a stream too, and is absent from every other answer.
Streaming
With stream: true the answer arrives as server-sent events, each a chunk of the completion, and ends with data: [DONE]. The chunk that carries the finish_reason also carries blend. With stream_options.include_usage one more chunk follows it with the token counts. On the kinds of work where two or three cheaper models are asked first, an answer they agree on is sent whole: nothing arrives while they answer, for which they have up to a minute, and then all of it does.
If the model fails after the stream has begun, the last event holds an error and the stream ends without [DONE]. The error's type is upstream_error, and its code is the kind of failure in a word, such as server, overloaded or network. These are not always the codes under Errors: a request the model found too long is context_length here and context_length_exceeded there. An answer that fails this way is not charged for. A whole request has ten minutes, and an answer that is still being written then ends the same way, with the code timeout. That one is charged as an answer you hang up on is. A model that is not streaming has five minutes for its whole answer, so ask for a stream when an answer may take longer.
When you hang up on a request, Blend stops the model that is at work on it, and charges for the prompt and for the part of an answer the model had the time to write, what it thinks included. A model that was stopped does not say how much it wrote, so Blend goes by the time: the share of the answer it expected that the time the model was at work is of the time it expected the answer to take. The share is never more than the whole of the answer it expected, and the charge is for that share or for what had been sent to you, whichever is more. It is the same streamed or not, and whether any of the answer had arrived or none. If you stop reading an answer for a minute, Blend takes you to have hung up on it. A request you hang up on before it was sent to a model is charged nothing.
A request that fails or times out on Blend's side without an answer is not charged. Neither is one that Blend cuts off because the server that has it is being stopped: its stream breaks off with no [DONE] and no error, or the connection closes with no answer. Blend does not recognise a request that is sent again: it is a new request and is charged as one, whatever the first was charged.
Errors
An error has the shape OpenAI gives it, with a code that is the same every time for the same fault:
{
"error": {
"message": "invalid or missing Blend API key",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key"
}
}- 400
- The request is malformed, carries a parameter Blend does not pass on (
unsupported_parameter), or was refused by the model it was sent to, as too long for it (context_length_exceeded) or as invalid (invalid_request). Of the last two the message says that much, and not what the model itself said of the request. A request Blend itself reckons too long for every model is a 422. A body of more than 250,000 values is taken for malformed, whatever its size. Every object, list, string, number,true,falseandnullin it is one. So is a body that is not valid UTF-8, which is what an SDK writes. - 401
- The key is missing or is not one Blend knows (
invalid_api_key). - 403
- The request is a
POST, aPUT, aPATCHor aDELETEfor something Blend does not serve (inference_only).POST /v1/responsesandPOST /v1/embeddingsare answered this way. Blend runs models and nothing else: the API has nothing to create, change or delete. - 404
- No Blend model has that name (
model_not_found), or aGETasked for an address where there is nothing (unknown_endpoint). - 405
- The address takes a
POSTand was sent aGET(method_not_allowed). - 408
- The body of the request did not arrive within a minute (
body_timeout). No model was asked and nothing is charged. Blend closes the connection, so send the request again on a new one. - 410
- That Blend model has been retired (
model_retired). The message names its successor when it has one. - 413
- The body is larger than 32 MB, or the request is larger than Blend takes at once with nothing else under way. Blend counts a request by the bytes of its body and by how many values the body has, so a body of very many small values can be refused at far fewer than 32 MB. The message says which of the two it was. Sending the request again does not help, and there is no
Retry-After. - 422
- No model can serve the request within what it asks for (
no_eligible_model), which is also the answer when itsblend.max_cost_usddoes not cover the answer it is expected to need. The message says what the request can change, each reason in words with its name, such asover_budget,missing_visionorunsupported_seed. So is a request Blend reckons too long for every model, which no model is asked to answer: the message then hascontext_overflowin it, and a client that shortens its history oncontext_length_exceededshould on this too. - 429
- The account is sending faster than it may (
rate_limit_exceeded): 600 requests a minute, which is 10 a second, and up to 60 at once when it has been sending fewer. One over that costs nothing. The limit is the account's, one for all its keys. A reading ofGET /v1/savingscounts as a request. The same code is the answer when the requests the account has under way are together as large as one account may have at once, which only requests of many megabytes sent together come to; the message says which of the two it is, andRetry-Afteris a second. Or the account's credit is used up, or all of what is left is held by the requests it has under way (insufficient_quota, under Usage and billing), or the models that could serve it are rate limited themselves (rate_limit).Retry-Aftersays how long to wait when that is known. Or the account is limited and the request is one that only a model left out for it can take (usage_limited, under Fair use). That answer has noRetry-After, because waiting a moment does not change it: the same request is refused until the limit has lifted. No model is asked to answer it and nothing is charged for it. Itstypeisinsufficient_quota, as it is when the credit is used up, but a refill does not lift it, so go by thecode. The account's other requests are answered meanwhile. - 500
- Blend failed to route the request. Nothing is wrong with the request.
- 502, 504
- The models that were tried failed, or did not answer in time (
timeout). - 503
- Blend cannot check the key right now (
accounts_unavailable), or the models that could serve the request are at a provider that is failing (provider_unavailable), or Blend has as many requests under way as it has the memory for, counted by their size (gateway_busy). Nothing is wrong with the request.Retry-Aftersays how long to wait.GET /v1/savings, which reports what an account was charged, answers so when the record of it cannot be read (ledger_unavailable). That answer has noRetry-After.
The whole API is described as OpenAPI at https://api.thinkblend.ai/openapi.yaml.
Usage and billing
A request is billed by its tokens, $2.80 per million going in and $9.60 per million coming out, whichever model answers. Pricing has the details.
The dashboard shows what an account has used by day, by key and by model, and what is left of its credit. A first account has $25 free. Past that, the account is refilled from the dashboard, by card through Stripe. When the balance runs low, Stripe emails an invoice for a refill to an account whose email address has been confirmed, by the link we emailed or by Google or GitHub, or that has paid for a refill that was not refunded, unless the dashboard has turned that off. Paying it is optional. The dashboard can have a card saved with Stripe charged then instead. An account that started without the free credit, as one created after another was deleted can, is emailed none until it has paid for a refill or has chosen on the dashboard to be emailed them. Invoices and receipts are emailed by Stripe and are on its page for the account, which the dashboard links to.
An account whose credit is used up is refused with 429 and the code insufficient_quota before its request is read. Blend goes by a balance it read some seconds ago, less what it has charged since, and less the most the requests the account has under way can still be charged: the longest answer each is allowed, at the rates above. A request that sets no max_completion_tokens may be answered in 16,000 tokens, so it holds $0.15 for its answer until it is done and charged what it came to. It holds its prompt besides, for 15% more tokens than Blend expects the prompt to come to, since a model's own count is known only once it has answered: where it expects 120,000 tokens it holds 138,000, which is $0.39 where 120,000 are charged $0.34. Models count the same text differently, and what Blend expects is the count of the one, among those the request can go to, that it expects to count the most. Each image is held at the most a model counts for one: 4,784 tokens for an image whose detail is low or high, and 36,000 for any other, which is $0.10 an image. So an account with little credit left has few requests taken at once, the rest are refused with insufficient_quota until those are done, and a request that sets the limit to what it needs and says how its images are to be sized holds that much less. Of requests that arrive together, the ones that are refused have been read first, and are not charged. An account can still end under zero: a request is let in while anything is left, gets its whole answer and is charged for it. It ends under by less than the last request that was let in held, unless a request was charged more than it held, which takes a prompt that came to over 15% more tokens than Blend expected or an image that a model counted for more than was held for it. When Blend's servers cannot count together what an account's requests hold, each lets in what its own count covers, and the account can end further under. Its requests are taken again within seconds of a refill.
GET /v1/savings reports what the account was charged over a period, next to what the tokens of the same requests come to at the list price of the model Chianti is measured against. from and to are days in UTC, to being the day after the last, and without them the period is the month so far. A from or a to that is not a day written like 2026-11-01 is refused with a 400 whose param names the one it was. So is a from that is not before to, the same day included, with a param of null. The answer has the totals, and the same for each day under days and for each Blend model under models: requests, prompt_tokens, completion_tokens and charge_usd, and, for the requests that got an answer (compared_requests), reference_cost_usd and savings, which has the saving in dollars (usd) and as a fraction of the reference cost (share). The reference cost is a sum and has no range: it is the same whichever of the pool's models answered. reference_model names the model, and methodology says in words what the reference cost is. A reading counts as a request of the account's rate limit, and so does one that is refused for its days.
Fair use
The price is the same whichever model answers, and it was set for a mix of work. The answers of the models that cost the most to run cost more to give than they are charged, and the other answers make that up. An account whose requests, over the last 30 days, have cost much more to answer than it was charged for them is limited until that has evened out. The requests it has under way count with them, at what each is expected to cost and be charged: one that arrives while those would take the account over the limit is routed as a limited account's is, and the next is not once they are done and have cost less.
While an account is limited, its requests are routed among fewer models: the ones that cost the most to run are left out. An answer given this way has limited: true in blend and the header X-Blend-Limited: true, and is charged at the same rates. Where the request would have gone to one of those models, the answer is another model's, and can be wrong where theirs would have been right. A request that only one of those models can take is refused with 429 and the code usage_limited: no model is asked to answer it, and it is not charged. The dashboard does not show whether an account is limited: the field, the header and that error are where it is said.
Nothing has to be done about it. The limit lifts by itself: each request that costs less to answer than it is charged brings that nearer, and a day drops out of the count when it is 30 days old. Requests the remaining models can take are answered as before. A refill does not lift it, because it goes by what the requests cost and were charged and not by the balance, and sending a refused request again does not either. If your work needs the models that are left out all the time, write to sales@thinkblend.ai.
Price and accuracy
Per token, Chianti costs less than claude-opus-5-5, claude-fable-5-2 and gpt-6-astra, going in and coming out. What a request comes to also depends on how many tokens the model that answers it uses, and a cheap answer that is wrong is no saving. So the table has all three: the list prices of some of the models Chianti routes between, what the requests of our benchmarks cost on each, and how many of them it got right.
| Model | In | Out | 1,000 requests | Right | |
|---|---|---|---|---|---|
| gpt-6-luna | Small | $0.10 | $0.50 | $0.21 | 91.5% |
| deepseek-v4.1-flash | Small | $0.30 | $1.20 | $1.27 | 90.9% |
| gpt-6.1-terra | Mid-size | $1.00 | $5.00 | $1.44 | 92.8% |
| gpt-6.1-sol | Mid-size | $2.00 | $10.00 | $2.62 | 93.5% |
| blend-chianti-1 | Blend | $2.80 | $9.60 | $5.40 | 95.2% |
| claude-sonnet-5-5 | Mid-size | $2.00 | $10.00 | $5.42 | 93.4% |
| kimi-k3.1-pro | Mid-size | $2.00 | $10.00 | $11.33 | 93.7% |
| claude-opus-5-5 | Frontier | $4.00 | $20.00 | $11.76 | 94.6% |
| gpt-6-astra | Frontier | $10.00 | $50.00 | $13.10 | 93.7% |
| claude-fable-5-2 | Frontier | $8.00 | $40.00 | $22.37 | 95.3% |
In and out are dollars per million tokens, at list prices on 9 November 2026. The last two columns are from our benchmarks: the same requests, answered once by each model by itself and by Chianti at its own rate, what 1,000 of them cost, and how many of the answers were right. Chianti's figures are of blend-chianti-1.0.
Read the last two columns together. gpt-6-luna, deepseek-v4.1-flash, gpt-6.1-terra and gpt-6.1-sol cost less than Chianti and got fewer right in our benchmarks, 90.9% to 93.5% against 95.2%. claude-opus-5-5 and claude-fable-5-2 got 94.6% to 95.3%, which is too close to Chianti's to tell apart, for 2.2 to 4.1 times the cost. claude-sonnet-5-5, kimi-k3.1-pro and gpt-6-astra cost $5.42 to $13.10 where Chianti costs $5.40 and got fewer right. Two models are told apart here when the requests only one of them got right fall too unevenly between the two to be chance. Earlier cuts of Chianti were scored on some of these requests and chosen among by them, and this one keeps most of their settings. That favours it over the single models beside it. What Chianti adds to one cheaper model besides is under How Blend differs.
The rates and the cost do not put the models in the same order, because a rate is per token and models do not use the same number of them. A request is billed by the tokens of the model that answered it, and what a model thinks before it answers counts as output. kimi-k3.1-pro has the list price of gpt-6.1-sol and thinks a lot: it uses about 7 times the output tokens, on answers that are about as long. In our benchmarks Chianti sent 25.1% of requests to glm-5.3-flash and none to kimi-k3.1-pro. So compare what your own requests come to and not the rates.
Input is billed at one rate, whether or not the provider had it cached. The providers charge far less for cached input than for new, so a long session that sends the same context again with every turn, as a coding agent does, can cost less on a model called directly.