> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llm7.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Models API

> Read the live model catalog, pricing fields, limits, and capabilities.

Use the Models API to list the models that are currently available through LLM7.io.

```bash theme={null}
curl https://api.llm7.io/v1/models
```

The catalog is live. Model IDs, pricing, tiers, context windows, and capability flags can change as upstream availability changes. Check this endpoint at startup, on a schedule, or before showing model choices in your own UI.

## Response shape

The endpoint returns an OpenAI-compatible list object:

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "gpt-5.4",
      "object": "model",
      "model_type": "chat",
      "created": 1782277907,
      "owned_by": "",
      "tier": "pro",
      "pricing": {
        "input": 0.5,
        "output": 4.5,
        "minimum_request_price_usd": 0.0001,
        "minimum_cache_tokens": 300,
        "currency": "USD",
        "unit": "1M tokens"
      },
      "pricing_mode": "token",
      "modalities": {
        "input": ["text"],
        "output": ["text"]
      },
      "context_window": {
        "tokens": 1050000,
        "chars": null
      },
      "usage_based_only": true,
      "stream": true,
      "json_mode": true,
      "reasoning": true,
      "tools_calling": true
    }
  ]
}
```

## Field reference

**object** `string`

The response container type. This is usually `list`.

**data** `array`

The currently available model records. Treat this as dynamic rather than a permanent catalog.

**data\[].id** `string`

The model ID to pass as `model`. Chat workflows can also use selectors such as `default`, `fast`, and `pro` where supported. Image generation and edit workflows require a concrete image model ID, such as `gpt-image-2`.

**data\[].model\_type** `string`

The broad model family or endpoint type. Video-capable models use `model_type: "video"`.

**data\[].tier** `string`

The access tier for the model.

`turbo` models are fast models available with free API tokens, subject to the free-tier rate and token limits. Free-token quotas may be reduced without notice based on demand, service capacity, model availability, fair-use calculations, abuse-prevention controls, and other operational factors.

`pro` models are available to Pro subscribers and users with a topped-up balance. Pro subscription allowance is calculated dynamically across the billing period and can be checked in the [dashboard](https://dash.llm7.io/).

**data\[].pricing** `object`

Per-model pricing metadata used to calculate request cost for paid usage and paid allowance accounting.

**data\[].pricing.input** `number`

Input-token price in the listed `currency` and `unit`.

**data\[].pricing.output** `number`

Output-token price in the listed `currency` and `unit`.

**data\[].pricing.price** `number`

Per-unit price for non-token billing modes. For video models this is the compatible, base, or minimum per-second price; route-level prices in `pricing.route_prices_usd_per_second` can be the source of truth for the final hold.

**data\[].pricing.route\_prices\_usd\_per\_second** `array`

Optional route-level video prices. When present, select the route that matches the submitted model, request type, and other route dimensions, then use `selected_route.public_price_usd_per_second` for per-second billing.

**data\[].pricing.currency** `string`

The pricing currency, for example `USD`.

**data\[].pricing.unit** `string`

The pricing unit, for example `1M tokens`.

**data\[].pricing.minimum\_request\_price\_usd** `number`

Optional minimum cost applied to each request, even when the input and output token total would cost less.

**data\[].pricing.minimum\_cache\_tokens** `number`

Optional cache accounting floor. When present, cache-related billing treats each request as using at least this many cache tokens.

**data\[].pricing\_mode** `string`

How pricing is calculated. `token` means usage is priced from input and output token counts. `second` means generated media is priced per second, using route-level video prices when available and `pricing.price` as the fallback.

**data\[].modalities** `object`

Input and output types supported by the model. Models with `image` in `modalities.input` can accept image inputs for vision or reference workflows. Models with `image` in `modalities.output` can produce image outputs through image endpoints. Models with `video` in `modalities.output` can produce video outputs through the Video API.

**data\[].context\_window** `object`

The maximum context the model can process in one request, including prompt input and generated output. Models may report this in `tokens`, `chars`, or both.

**data\[].usage\_based\_only** `boolean`

`true` means the model is only available through paid usage accounting, such as a Pro allowance or topped-up balance.

**data\[].stream** `boolean`

Whether the model supports streamed responses.

**data\[].json\_mode** `boolean`

Whether the model supports JSON mode.

**data\[].reasoning** `boolean`

Whether the model supports reasoning-style behavior.

**data\[].tools\_calling** `boolean`

Whether the model supports tool and function calling.

**data\[].capabilities** `object`

Endpoint-specific capability metadata. Video models expose fields such as `video_generation`, `video_async`, `supported_seconds`, `supported_sizes`, `max_reference_images`, `max_reference_image_bytes`, `requires_reference_image`, `atlascloud_video`, and `atlascloud_routes`.

**data\[].capabilities.atlascloud\_video** `boolean`

`true` when the video model is backed by Atlas routes.

**data\[].capabilities.atlascloud\_routes** `array`

Atlas route metadata for video models. Use this with `pricing.route_prices_usd_per_second` to validate supported request types, route choices, and route-priced billing.

## Access and limits

| Access type | Models | Token availability | Rate limits |
| - | - | - | - |
| Free token | `turbo` models | 100,000 tokens per day | 1 request/second, 60/minute, 250/hour |
| Pro subscription | `pro` and `turbo` models | Dynamic Pro allowance for the billing period | Higher paid limits |
| Topped-up balance | `pro` and `turbo` models | Usage billed from balance | Higher paid limits |

After a Pro subscription allowance is reached, requests can continue from a topped-up balance and are billed from model pricing, token counts, and any per-request minimums.

Free-token quotas may be reduced without notice based on demand, service capacity, model availability, fair-use calculations, abuse-prevention controls, and other operational factors.

> [!NOTE]
>
> You can see current Pro allowance and billing status in the [LLM7.io dashboard](https://dash.llm7.io/).

## Estimating request cost

For token-priced models, calculate cost from the input and output token counts:

```txt theme={null}
cost = (input_tokens * pricing.input + output_tokens * pricing.output) / 1_000_000
```

If `minimum_request_price_usd` is present, the charged request cost is at least that value:

```txt theme={null}
charged_cost = max(cost, pricing.minimum_request_price_usd)
```

Use the live `currency` and `unit` fields instead of assuming all models share the same pricing unit forever.

For video models with `pricing_mode: "second"`, estimate the reserved hold from the requested duration. When `pricing.route_prices_usd_per_second` is present, route-level prices are authoritative:

```txt theme={null}
reserved_hold = seconds * selected_route.public_price_usd_per_second
```

Fall back to `seconds * pricing.price` only when the model does not include `pricing.route_prices_usd_per_second`.

The hold is consumed when video generation completes successfully and released when upstream generation fails or task creation is not accepted.

## Video model records

Video-capable models are listed with `model_type: "video"` and asynchronous video generation capabilities:

```json theme={null}
{
  "id": "seedance-2.0-mini",
  "object": "model",
  "model_type": "video",
  "pricing_mode": "second",
  "pricing": {
    "price": 0.01,
    "currency": "USD",
    "unit": "second",
    "route_prices_usd_per_second": [
      {
        "route": "seedance-2.0-mini",
        "request_type": "text-to-video",
        "public_price_usd_per_second": 0.01
      },
      {
        "route": "seedance-2.0-fast",
        "request_type": "text-to-video",
        "public_price_usd_per_second": 0.02
      }
    ]
  },
  "modalities": {
    "input": ["text", "image"],
    "output": ["video"]
  },
  "capabilities": {
    "video_generation": true,
    "video_async": true,
    "supported_seconds": [5, 8],
    "supported_sizes": ["480p", "720p", "1080p"],
    "max_reference_images": 2,
    "max_reference_image_bytes": 8388608,
    "requires_reference_image": false,
    "atlascloud_video": true,
    "atlascloud_routes": [
      {
        "route": "seedance-2.0-mini",
        "request_types": ["text-to-video", "image-to-video"]
      },
      {
        "route": "seedance-2.0-fast",
        "request_types": ["text-to-video", "image-to-video"]
      }
    ]
  }
}
```

## Choosing a model programmatically

Use the live fields instead of hard-coding model names:

```js theme={null}
const response = await fetch("https://api.llm7.io/v1/models");
const { data: models } = await response.json();

const visionModels = models.filter((model) =>
  model.modalities?.input?.includes("image")
);

const imageOutputModels = models.filter((model) =>
  model.modalities?.output?.includes("image")
);

const videoModels = models.filter(
  (model) =>
    model.model_type === "video" &&
    model.capabilities?.video_generation === true
);

const jsonStreamingModels = models.filter(
  (model) => model.json_mode && model.stream
);

const affordableProModels = models.filter(
  (model) => model.tier === "pro" && model.pricing?.input <= 0.1
);
```

For most chat integrations, start with the selectors in [Available models](https://docs.llm7.io/guides/models.md). Use this endpoint when you need to display live options, filter by capability, estimate cost, or validate that a specific model ID is still available. For image workflows, use a concrete image model ID with the [Image generation and edits](https://docs.llm7.io/guides/image-generation.md) endpoints. For video workflows, use a concrete video model ID with the [Video generation](https://docs.llm7.io/guides/video-generation.md) endpoint.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.