API
Models
GET /v1/models: the list of models available to the key.
GET
/v1/modelsReturns the models you can call with this key. If the key has a list of models, only they are in the response. Take model names from this response: the catalog changes. The format is compatible with OpenAI Models.
Headers
| Header | Value |
|---|---|
Authorization | Bearer <key>. Required. x-api-key: <key> is accepted instead |
The request has no body and no parameters.
Request example
curl https://api.morphogen.ru/v1/models \
-H "Authorization: Bearer $MORPHOGEN_API_KEY"Response example
{
"object": "list",
"data": [
{ "id": "claude-sonnet-5", "object": "model", "owned_by": "agregator" },
{ "id": "gpt-6-luna", "object": "model", "owned_by": "agregator" },
{ "id": "bge-m3", "object": "model", "owned_by": "agregator" },
{ "id": "flux-2-klein", "object": "model", "owned_by": "agregator" }
]
}The example shows four models from the catalog. Model categories and the endpoints they work on: Models.
Errors
401
invalid_api_keyThe key is missing, invalid, revoked or expired.Other codes: Errors.