List models (Anthropic format)
Lists available models in Anthropic format.
AuthorizationBearer <token>
Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT.
Virtual keys (prefixed with sk-bf-) can also be passed here.
In: header
Query Parameters
limit?integer
Maximum number of models to return
before_id?string
Return models before this ID
after_id?string
Return models after this ID
Response Body
curl -X GET "https://loading/{AI_GATEWAY_URL}/anthropic/v1/models?limit=0&before_id=string&after_id=string"{
"data": [
{
"id": "string",
"type": "model",
"display_name": "string",
"created_at": "2019-08-24T14:15:22Z"
}
],
"has_more": true,
"first_id": "string",
"last_id": "string"
}{
"type": "error",
"error": {
"type": "string",
"message": "string"
}
}{
"type": "error",
"error": {
"type": "string",
"message": "string"
}
}