Перейти к содержимому

List models

GET
/models
curl https://api.waibee.com/v1/models \
-H "Authorization: Bearer $WAIBEE_API_KEY"

Returns the models available to your API key, with pricing.

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
capabilities
object
modality_input
Array<string>
modality_output
Array<string>
features
Array<string>
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"
},
"capabilities": {
"modality_input": [
"text",
"image"
],
"modality_output": [
"text"
],
"features": [
"tools",
"reasoning",
"prompt_caching"
]
}
},
{
"id": "provider/another-model",
"object": "model",
"name": "Provider: Another Model",
"context_length": 1000000,
"max_completion_tokens": 32768,
"pricing": {
"prompt": "0.000001",
"completion": "0.000006"
},
"capabilities": {
"modality_input": [
"text"
],
"modality_output": [
"text"
],
"features": [
"tools"
]
}
}
]
}

Missing or invalid API key.

Media typeapplication/json
object
error
string
Example
{
"error": "unauthorized"
}

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": {}
}
}