Skip to content
docs

List models

GET
/models
curl https://api.waibee.com/v1/models \
-H "Authorization: Bearer $WAIBEE_API_KEY"
curl "https://api.waibee.com/v1/models?output_modalities=embeddings,decisions" \
-H "Authorization: Bearer $WAIBEE_API_KEY"

Returns the models available to your API key, with pricing. Chat models only, unless output_modalities asks for other classes.

output_modalities
string

Model classes to list, comma-separated and case-insensitive: text (chat models), embeddings, decisions, all. Absent or empty means text. Any other value is refused with invalid_output_modalities (400).

List of models.

Media typeapplication/json
object
object
string
Allowed value: list
data
Array<object>
object
id
string
object
string
Allowed value: model
name
string
context_length
integer | null
max_completion_tokens
integer | null
pricing
object
prompt
string
completion
string
model_class

The endpoint family that serves the model: chat on chat completions, messages and responses, embedding on /v1/embeddings, decision on /v1/systemone. Any other pairing is refused with model_endpoint_mismatch (400).

string
Allowed values: chat embedding decision
capabilities
object
modality_input
Array<string>
modality_output
Array<string>
features
Array<string>
reasoning

Reasoning-effort levels of a model that reasons; null for other models and for waibee/auto.

object
efforts

Levels the model takes, lowest first. none is listed when reasoning can be switched off; an empty list means the model always reasons and takes no level.

Array<string>
Allowed values: none minimal low medium high xhigh max
default

Level to preselect: none when the model does not reason without a level, null when the provider does not say.

string | null
Allowed values: none minimal low medium high xhigh max
Example
{
"object": "list",
"data": [
{
"id": "provider/model-name",
"object": "model",
"name": "Provider: Model Name",
"context_length": 200000,
"max_completion_tokens": 8192,
"pricing": {
"prompt": "0.000003",
"completion": "0.000015",
"input_cache_read": "0.0000003",
"input_cache_write": "0.00000375"
},
"model_class": "chat",
"capabilities": {
"modality_input": [
"text",
"image"
],
"modality_output": [
"text"
],
"features": [
"tools",
"reasoning",
"prompt_caching"
]
},
"reasoning": {
"efforts": [
"none",
"low",
"medium",
"high",
"xhigh",
"max"
],
"default": "high"
}
},
{
"id": "provider/another-model",
"object": "model",
"name": "Provider: Another Model",
"context_length": 1000000,
"max_completion_tokens": 32768,
"pricing": {
"prompt": "0.000001",
"completion": "0.000006"
},
"model_class": "chat",
"capabilities": {
"modality_input": [
"text"
],
"modality_output": [
"text"
],
"features": [
"tools"
]
},
"reasoning": null
}
]
}

output_modalities names a value the catalog does not know (invalid_output_modalities). The accepted values are in extra.accepted.

Media typeapplication/json

OpenAI-format error envelope.

object
error
required
object
code
string
message
string
extra

Additional error data; fields depend on the error code.

object
key
additional properties
any
Example
{
"error": {
"code": "invalid_output_modalities",
"message": "Unknown output_modalities: bogus.",
"extra": {
"accepted": [
"text",
"embeddings",
"decisions",
"all"
]
}
}
}

Missing or invalid API key: authentication_required or invalid_api_key.

Media typeapplication/json

OpenAI-format error envelope.

object
error
required
object
code
string
message
string
extra

Additional error data; fields depend on the error code.

object
key
additional properties
any
Examples

No Authorization header

{
"error": {
"code": "authentication_required",
"message": "Authorization header is required",
"extra": {}
}
}

Request blocked by policy (policy_violation).

Media typeapplication/json

OpenAI-format error envelope.

object
error
required
object
code
string
message
string
extra

Additional error data; fields depend on the error code.

object
key
additional properties
any
Example
{
"error": {
"code": "policy_violation",
"message": "Request blocked by policy",
"extra": {}
}
}