Skip to content
docs

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.

  • /v1/chat/completions, /v1/responses, and /v1/embeddings accept only the full ID. A name without the provider (claude-sonnet-4.6) is rejected with 422 and the code validation_error.
  • /v1/messages also accepts the short Claude model name that clients built on the Anthropic SDK send by default: claude-sonnet-4-6 or claude-haiku-4-5-20251001. The router adds anthropic/, drops the trailing date, and replaces the hyphen between version digits with a dot, which gives anthropic/claude-haiku-4.5. It normalizes names like anthropic/claude-sonnet-4-6 to the catalog form the same way on every endpoint.
  • /v1/systemone accepts a TypeSafe model name without the provider, the way the TypeSafe SDK sends it: jev-latest is read as typesafe/jev-latest.
  • The :online and :batch suffixes in a model name are not supported; the request is rejected with feature_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.

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.

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:

FieldWhat it describes
idThe ID for the model field in a request
nameA human-readable name
context_lengthThe size of the context window
max_completion_tokensThe most tokens in a response
pricingPrices in dollars per token, separately for input, output, cache reads, and cache writes
model_classThe model class: chat, embedding, or decision; see Model classes
capabilities.modality_inputWhat the model accepts as input (text, image, audio, video)
capabilities.modality_outputWhat it produces as output
capabilities.featuresSupported 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
reasoningThe reasoning levels the model accepts and the default level; null if the model does not reason. See Reasoning
Terminal window
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.

  1. Call GET /v1/models and find the id you need.
  2. Match capabilities against your task: image input shows in modality_input, while tool calling, structured outputs, reasoning, and PDF show in features.
  3. If you need prompt caching, check pricing: models that support it have separate input_cache_read and input_cache_write prices.
  4. Put the id into the model field 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.

The model class in the model_class field determines which endpoint the model works on:

model_classWhat the model doesEndpoints
chatReplies to a conversation with text/v1/chat/completions, /v1/messages, /v1/responses
embeddingTurns text into a vector/v1/embeddings
decisionAnswers 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.

The output_modalities parameter sets which classes of models GET /v1/models returns:

ValueWhat the list contains
textChat models. The same as no parameter
embeddingsEmbedding models
decisionsDecision models
allModels of all classes

Separate values with commas; case does not matter. An empty value works like text.

Terminal window
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"]}
}
}