Skip to content

The models of an API backend, read live from its models endpoint with the stored key. The key stays on the server.

GET
/admin/backends/{backendId}/models
curl --request GET \
--url https://example.com/api/v1/admin/backends/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/models
backendId
required
string format: uuid

The models. An OpenRouter model has its prices.

Media typeapplication/json
object
items
required
Array<object>
object
id
required

The name a role sends to the backend.

string
name

The display name, when the backend gives one.

string
price_in_per_mtok

Dollars per million input tokens. Only OpenRouter gives prices.

number
price_out_per_mtok
number
Examplegenerated
{
"items": [
{
"id": "example",
"name": "example",
"price_in_per_mtok": 1,
"price_out_per_mtok": 1
}
]
}

An error.

Media typeapplication/problem+json

RFC 9457 problem details with a stable code.

object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required

A stable machine-readable error code.

string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example"
}