Skip to content

List models

GET
/v1/models
curl --request GET \
--url https://api.openpike.dev/v1/models \
--header 'Authorization: Bearer <token>'

The models of every provider the workspace has a key for, in OpenAI’s list format, with IDs already prefixed by the provider slug. Built from each provider’s own models endpoint and cached for an hour.

The model list.

Media typeapplication/json
object
object
required
string
Allowed value: list
data
required
Array<object>
object
id
required
string
object
required
string
Allowed value: model
created
integer
owned_by
string
formats

OpenPike extension: the request formats this model’s provider serves through OpenPike (chat is /v1/chat/completions, responses is /v1/responses).

Array<string>
Allowed values: chat responses messages systemone

Example

{
"object": "list",
"data": [
{
"id": "deepseek/deepseek-flash",
"object": "model",
"created": 0,
"owned_by": "deepseek",
"formats": [
"chat",
"messages"
]
}
]
}

invalid_virtual_key: missing, unknown or revoked virtual key, or a key disabled because the plan allows fewer keys.

Media typeapplication/json

The error shape of chat completions, Responses, System One and models.

object
error
required
object
type
required
string
Allowed value: openpike_error
code
required
string
Allowed values: invalid_virtual_key invalid_request invalid_tags invalid_model unsupported_format unsupported_parameter provider_disabled missing_provider_key budget_exceeded loop_detected scope_paused run_limit_exceeded plan_limit_reached plan_limit_throttled too_many_auth_failures upstream_unreachable upstream_error internal_error
message
required
string
request_id
required
string

Example

{
"error": {
"type": "openpike_error",
"code": "invalid_virtual_key",
"message": "The API key is invalid or revoked.",
"request_id": "req_..."
}
}
x-openpike-request-id
string
Example
req_QhMBW1esl4VW2o8NXDEcOLsS

The request ID, also shown in Logs.

An OpenPike block, before the provider is called: budget_exceeded, loop_detected, scope_paused, run_limit_exceeded, plan_limit_reached, plan_limit_throttled or too_many_auth_failures. A 429 from the provider itself comes back as upstream_error with the provider’s status.

Media typeapplication/json

The error shape of chat completions, Responses, System One and models.

object
error
required
object
type
required
string
Allowed value: openpike_error
code
required
string
Allowed values: invalid_virtual_key invalid_request invalid_tags invalid_model unsupported_format unsupported_parameter provider_disabled missing_provider_key budget_exceeded loop_detected scope_paused run_limit_exceeded plan_limit_reached plan_limit_throttled too_many_auth_failures upstream_unreachable upstream_error internal_error
message
required
string
request_id
required
string

Example

{
"error": {
"type": "openpike_error",
"code": "budget_exceeded",
"message": "The hard budget for agent=reviewer is used up for this period.",
"request_id": "req_..."
}
}
retry-after
integer

Seconds until the request may succeed. Set on OpenPike’s 429 blocks, and passed through from the provider on upstream errors.

x-openpike-request-id
string
Example
req_QhMBW1esl4VW2o8NXDEcOLsS

The request ID, also shown in Logs.