Models
You name a model in a request by an ID of the form <provider>/<model>, for example anthropic/claude-sonnet-4.6. Take exact IDs from the GET /v1/models catalog instead of writing them from memory: the list of models changes.
ID format
Section titled “ID format”/v1/chat/completions,/v1/responses, and/v1/embeddingsaccept only the full ID. A name without the provider (claude-sonnet-4.6) is rejected with422and the codevalidation_error./v1/messagesalso accepts the short Claude model name that clients built on the Anthropic SDK send by default:claude-sonnet-4-6orclaude-haiku-4-5-20251001. The router addsanthropic/, drops the trailing date, and replaces the hyphen between version digits with a dot, which givesanthropic/claude-haiku-4.5. It normalizes names likeanthropic/claude-sonnet-4-6to the catalog form the same way on every endpoint./v1/systemoneaccepts a TypeSafe model name without the provider, the way the TypeSafe SDK sends it:jev-latestis read astypesafe/jev-latest.- The
:onlineand:batchsuffixes in a model name are not supported; the request is rejected withfeature_not_supported.
Otherwise, the ID must match the catalog exactly, including the suffix after the colon if there is one. A name put together from memory or by guessing will fail; see model_not_found.
Autorouting
Section titled “Autorouting”The special ID waibee/auto hands the choice of model to the router: it picks one for the request and returns the model that actually ran in the response. If autorouting is available to your group, waibee/auto is in the catalog. This entry has no prices: the request is billed at the rates of the model that was picked. See Autorouting for details.
Catalog
Section titled “Catalog”GET /v1/models returns the models available to your key. Without parameters, it lists chat models; models of other classes are listed with output_modalities. Each entry has:
| Field | What it describes |
|---|---|
id | The ID for the model field in a request |
name | A human-readable name |
context_length | The size of the context window |
max_completion_tokens | The most tokens in a response |
pricing | Prices in dollars per token, separately for input, output, cache reads, and cache writes |
model_class | The model class: chat, embedding, or decision; see Model classes |
capabilities.modality_input | What the model accepts as input (text, image, audio, video) |
capabilities.modality_output | What it produces as output |
capabilities.features | Supported capabilities: tools, parallel_tool_calls, pdf_input, reasoning, response_format, structured_outputs. Check that the value you need is present instead of comparing the whole set: the list may grow |
reasoning | The reasoning levels the model accepts and the default level; null if the model does not reason. See Reasoning |
curl https://api.waibee.com/v1/models \ -H "Authorization: Bearer $WAIBEE_API_KEY"{ "object": "list", "data": [ { "id": "anthropic/claude-sonnet-4.6", "object": "model", "name": "Anthropic: Claude Sonnet 4.6", "context_length": 1000000, "max_completion_tokens": 128000, "pricing": { "prompt": "0.000003", "completion": "0.000015", "input_cache_read": "0.0000003", "input_cache_write": "0.00000375", "input_cache_write_1h": "0.000006" }, "model_class": "chat", "capabilities": { "modality_input": ["image", "text"], "modality_output": ["text"], "features": ["pdf_input", "reasoning", "response_format", "structured_outputs", "tools"] }, "reasoning": { "efforts": ["none", "low", "medium", "high", "max"], "default": "medium" } } ]}The response is compatible with OpenAI’s GET /v1/models, so clients that read this endpoint pick up the list on their own. Embedding and decision models are not in this list without the parameter, so a chat client will not offer them in its model picker.
Choosing a model
Section titled “Choosing a model”- Call
GET /v1/modelsand find theidyou need. - Match
capabilitiesagainst your task: image input shows inmodality_input, while tool calling, structured outputs, reasoning, and PDF show infeatures. - If you need prompt caching, check
pricing: models that support it have separateinput_cache_readandinput_cache_writeprices. - Put the
idinto themodelfield of a request to the endpoint for its class; see Model classes.
How to calculate the cost of a request from pricing: Tokens and usage.
Model classes
Section titled “Model classes”The model class in the model_class field determines which endpoint the model works on:
model_class | What the model does | Endpoints |
|---|---|---|
chat | Replies to a conversation with text | /v1/chat/completions, /v1/messages, /v1/responses |
embedding | Turns text into a vector | /v1/embeddings |
decision | Answers typed questions with probabilities | /v1/systemone |
A model sent to an endpoint of another class is rejected with 400 and the code model_endpoint_mismatch: for example, an embedding model on /v1/chat/completions or a chat model on /v1/embeddings. The response’s extra holds model, model_class, and endpoint (on /v1/messages and /v1/responses, in error.details); see Errors.
waibee/auto picks only among chat models and appears only in their list.
Filtering by class
Section titled “Filtering by class”The output_modalities parameter sets which classes of models GET /v1/models returns:
| Value | What the list contains |
|---|---|
text | Chat models. The same as no parameter |
embeddings | Embedding models |
decisions | Decision models |
all | Models of all classes |
Separate values with commas; case does not matter. An empty value works like text.
curl "https://api.waibee.com/v1/models?output_modalities=embeddings,decisions" \ -H "Authorization: Bearer $WAIBEE_API_KEY"An unknown value is rejected with 400 and the code invalid_output_modalities, and the accepted values come back in extra.accepted:
{ "error": { "code": "invalid_output_modalities", "message": "Unknown output_modalities: bogus.", "extra": {"accepted": ["text", "embeddings", "decisions", "all"]} }}