List 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"from openai import OpenAI
client = OpenAI(base_url="https://api.waibee.com/v1", api_key="sk_live_...")for m in client.models.list().data: print(m.id)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.waibee.com/v1", apiKey: process.env.WAIBEE_API_KEY,});const models = await client.models.list();for (const m of models.data) console.log(m.id);Returns the models available to your API key, with pricing. Chat models
only, unless output_modalities asks for other classes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”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).
Responses
Section titled “Responses”List of models.
object
object
object
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).
object
Reasoning-effort levels of a model that reasons; null for other models and for waibee/auto.
object
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.
Level to preselect: none when the model does not reason without a level, null when the provider does not say.
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.
OpenAI-format error envelope.
object
object
Additional error data; fields depend on the error code.
object
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.
OpenAI-format error envelope.
object
object
Additional error data; fields depend on the error code.
object
Examples
No Authorization header
{ "error": { "code": "authentication_required", "message": "Authorization header is required", "extra": {} }}The key is not valid
{ "error": { "code": "invalid_api_key", "message": "Invalid API key", "extra": {} }}Request blocked by policy (policy_violation).
OpenAI-format error envelope.
object
object
Additional error data; fields depend on the error code.
object
Example
{ "error": { "code": "policy_violation", "message": "Request blocked by policy", "extra": {} }}