models

List models

All tracked models with current pricing and technical profile. Free-tier keys see the active price only; Starter+ see full history.

get/v1/models

Request

  • Base URL: https://modelglass-api.vercel.app
  • URL: https://modelglass-api.vercel.app/v1/models
  • Auth: HTTP bearer

Query parameters

providerstring

Filter to a provider slug, e.g. 'replicate'.

unitstring

Filter to a billing unit. Billing unit. Current values: per_image, per_megapixel, per_second, per_step, per_clip, per_1m_tokens_input, per_1m_tokens_output, per_1m_tokens, per_1k_tokens_input, per_1k_tokens_output, per_request, per_month, per_credit, per_1m_characters, per_minute, per_generation, per_1k_requests, per_1m_tokens_citation, per_1m_tokens_reasoning, per_1m_tokens_cache_read, per_1m_tokens_cache_write, per_gpu_second. New units are added without a schema_version bump, so treat an unknown unit as 'not comparable' rather than an error. per_1m_tokens_cache_read and per_1m_tokens_cache_write are prompt-cache rates: real prices, never a model's headline price.

status'ga' | 'preview' | 'deprecated' | 'retired'

Filter to a lifecycle status.

archstring

Filter to an architecture vocabulary id, e.g. 'flow-matching'.

Response

Matching models.

oktrue required

Example response

{
  "data": [
    {
      "model_id": "bfl/flux-1-schnell",
      "offerings": [
        {
          "model": {
            "id": "bfl/flux-1-schnell"
          },
          "search_context_pricing": {
            "low": {
              "currency": "USD",
              "unit": "per_1m_tokens_input"
            },
            "medium": {
              "currency": "USD",
              "unit": "per_1m_tokens_input"
            },
            "high": {
              "currency": "USD",
              "unit": "per_1m_tokens_input"
            }
          },
          "tiers": [
            {
              "pricing": [
                {
                  "currency": "USD",
                  "unit": "per_1m_tokens_input"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.