Ana içeriğe geç

Get Model Catalog Entry

Endpoint

GET /apiops/projects/{projectName}/llm-models/{modelName}/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
modelNamestringYesModel catalog entry name, in \{providerCode\}/\{modelId\} form (e.g. openai/gpt-5)

Query Parameters

None

Response

Success Response (200 OK)

{
"status": "SUCCESS",
"resultList": [
{
"id": "6644f0a1c2e4b81234567890",
"projectId": null,
"name": "openai/gpt-5",
"providerDefinitionId": "6640aa12c2e4b8000000ef01",
"providerCode": "openai",
"modelId": "gpt-5",
"displayName": "GPT-5",
"contextWindow": 128000,
"maxOutputTokens": 16384,
"pricePerMillionInput": 1.25,
"pricePerMillionOutput": 10.00,
"pricePerMillionCached": 0.125,
"pricePerImage": null,
"pricePerAudioMinute": null,
"pricePerCharacterTts": null,
"capabilities": ["chat", "function_calling", "vision", "reasoning"],
"modality": "TEXT",
"isDeprecated": false,
"deprecatedAt": null,
"sunsetAt": null,
"builtIn": true,
"lastUpdatedAt": "2026-05-14T09:30:00Z"
}
],
"resultCount": 1
}

Response Fields

FieldTypeDescription
statusstringResponse status: SUCCESS or FAILURE
resultListarraySingle-element array containing the requested entry
resultCountintegerNumber of entries returned (always 1 on success)

Model Catalog Entry Object Fields

FieldTypeDescription
idstringInternal identifier (read-only)
projectIdstringOwning project id; null for global built-in entries
namestringCatalog name in \{providerCode\}/\{modelId\} form (e.g. openai/gpt-5)
providerDefinitionIdstringReference to the owning LLM provider definition
providerCodestringDenormalized provider code (e.g. openai, anthropic)
modelIdstringProvider-facing model identifier (e.g. gpt-5)
displayNamestringHuman-readable label (e.g. GPT-5)
contextWindowintegerContext window size in tokens
maxOutputTokensintegerMaximum output tokens; null means the provider default is used
pricePerMillionInputnumberUSD per 1M input tokens
pricePerMillionOutputnumberUSD per 1M output tokens
pricePerMillionCachednumberUSD per 1M cached input tokens; null if unsupported
pricePerImagenumberUSD per generated image; null if unsupported
pricePerAudioMinutenumberUSD per minute of audio (STT); null if unsupported
pricePerCharacterTtsnumberUSD per input character (TTS); null if unsupported
capabilitiesarray[string]Capability tags (e.g. chat, function_calling, vision, embedding, json_mode, reasoning)
modalitystringModel modality: TEXT, VISION, AUDIO, EMBEDDING, RERANK, MULTIMODAL, IMAGE
isDeprecatedbooleanWhether the model is deprecated
deprecatedAtstringDeprecation announcement time (ISO-8601); null if not deprecated
sunsetAtstringPlanned removal time (ISO-8601); null if not scheduled
builtInbooleantrue = Apinizer-shipped seed entry (price-only edit, no delete); false = custom.
lastUpdatedAtstringLast built-in update time (ISO-8601); null for custom entries

EnumStatus

  • SUCCESS - Operation successful
  • FAILURE - Operation failed

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "Model catalog entry (name: openai/gpt-5) was not found!"
}

or

{
"status": "FAILURE",
"resultMessage": "Model catalog entry name can not be empty!"
}

Error Response (401 Unauthorized)

{
"status": "FAILURE",
"resultMessage": "Token is not valid!"
}

cURL Example

curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/llm-models/openai%2Fgpt-5/" \
-H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Name form: The catalog name uses the LiteLLM-style {providerCode}/{modelId} format. Because it contains a /, URL-encode the slash as %2F in the path.
  • Case-insensitive lookup: The entry is matched by name, case-insensitively, within the project.
  • Built-in visibility: Global built-in entries (builtIn=true, projectId: null) are visible from every project.
  • No secret fields: All fields are returned in plaintext — the catalog carries no @SecretData fields and no _class discriminator.