List models
const url = 'https://api.openpike.dev/v1/models';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The model list.
object
object
OpenPike extension: the request formats this model’s provider serves through OpenPike (chat is /v1/chat/completions, responses is /v1/responses).
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.
The error shape of chat completions, Responses, System One and models.
object
object
Example
{ "error": { "type": "openpike_error", "code": "invalid_virtual_key", "message": "The API key is invalid or revoked.", "request_id": "req_..." }}Headers
Section titled “Headers”Example
req_QhMBW1esl4VW2o8NXDEcOLsSThe 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.
The error shape of chat completions, Responses, System One and models.
object
object
Example
{ "error": { "type": "openpike_error", "code": "budget_exceeded", "message": "The hard budget for agent=reviewer is used up for this period.", "request_id": "req_..." }}Headers
Section titled “Headers”Seconds until the request may succeed. Set on OpenPike’s 429 blocks, and passed through from the provider on upstream errors.
Example
req_QhMBW1esl4VW2o8NXDEcOLsSThe request ID, also shown in Logs.