Skip to main content
GET
/
api
/
models
cURL
curl https://api.cometapi.com/api/models
{
  "success": true,
  "page": 0,
  "page_size": 0,
  "total": 301,
  "data": [
    {
      "created": 1776391310,
      "id": "gpt-image-2",
      "code": "gpt-image-2",
      "provider": "OpenAI",
      "provider_code": "openai",
      "description": "Image generation model for text-to-image and editing workflows.",
      "tags": [],
      "name": "GPT Image 2",
      "model_type": "image",
      "context_length": null,
      "max_completion_tokens": null,
      "features": [
        "text-to-image"
      ],
      "endpoints": "{\n  \"openai-image\": {\n    \"path\": \"/v1/images/generations\",\n    \"method\": \"POST\"\n  }\n}",
      "pricing": {
        "currency": "USD / M Tokens",
        "input": 4,
        "output": 24,
        "per_request": null,
        "per_second": null
      },
      "api_doc_url": "https://apidoc.cometapi.com/api/image/openai/images",
      "upcoming": false
    }
  ]
}

Get models list

This endpoint retrieves information about all available models. It is a public catalog endpoint and does not require an Authorization header.
  • Method: GET
  • URL: https://api.cometapi.com/api/models

Response

200 - application/json

Public model catalog response.

success
boolean
required

Whether the catalog request completed successfully.

data
object[]
required

Model catalog records. Each item describes one model ID and the public metadata available for routing, capability selection, and pricing review.

page
integer

Catalog page number returned by the service. A value of 0 means the unpaginated public catalog response.

page_size
integer

Number of records requested for a paginated catalog response. A value of 0 means the service returned the default public catalog response.

total
integer

Total number of catalog records available at request time.