Ana içeriğe geç

List Model Catalog Entries

Endpoint

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

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name

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"
},
{
"id": "6644f0a1c2e4b81234560001",
"projectId": "6640aa12c2e4b8000000abcd",
"name": "openai/gpt-5-mini",
"providerDefinitionId": "6640aa12c2e4b8000000ef01",
"providerCode": "openai",
"modelId": "gpt-5-mini",
"displayName": "GPT-5 Mini",
"contextWindow": 128000,
"maxOutputTokens": 16384,
"pricePerMillionInput": 0.25,
"pricePerMillionOutput": 2.00,
"pricePerMillionCached": 0.025,
"pricePerImage": null,
"pricePerAudioMinute": null,
"pricePerCharacterTts": null,
"capabilities": ["chat", "function_calling", "json_mode"],
"modality": "TEXT",
"isDeprecated": false,
"deprecatedAt": null,
"sunsetAt": null,
"builtIn": false,
"lastUpdatedAt": null
}
],
"resultCount": 2
}

Response Fields

FieldTypeDescription
statusstringResponse status: SUCCESS or FAILURE
resultListarrayList of model catalog entry objects
resultCountintegerTotal number of entries returned

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": "Project (name: MyProject) was not found!"
}

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/" \
-H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Combined scope: The list returns both global built-in models and the custom models defined in the named project. Custom models from other projects are not visible.
  • No secret fields: Model Catalog entries carry pricing/capability metadata only — there are no @SecretData fields and no _class discriminator, so all fields are returned in plaintext.
  • Built-in vs custom: Entries with builtIn=true are seed-managed and appear with projectId: null. Custom entries carry the owning projectId.
  • Empty list: If the project has no visible entries, an empty resultList with resultCount: 0 is returned.