# Models & pricing

The public endpoints below describe what you can call and what it costs. None of them needs a key.

## GET /v1/models

An OpenAI-style list (`object: list`, `data[]`). Each model has `id`, `object`, `created`, `owned_by` and `category` (`chat`, `image`, `video`, `music` or `audio`). Other fields appear when known: `name`, `description`, `context_length`, `architecture`, `top_provider`, `supported_parameters` and `pricing`. The list is cached for about a minute.

```bash
curl https://api.novapi.ai/v1/models

{
  "object": "list",
  "data": [
    {
      "id": "<model-id>",
      "object": "model",
      "owned_by": "<vendor>",
      "category": "chat",
      "pricing": {
        "prompt": "<credits per token>",
        "completion": "<credits per token>",
        "unit": "points_per_token"
      }
    }
  ]
}
```

## Pricing fields

Prices are strings, in credits (not dollars), and are list prices without any personal discount. `pricing.unit` tells how to read them. A missing `pricing` means the catalog has no price for the model, not that it is free. To see prices with your personal discount, or to quote a request before you submit it, see the Model pricing lookup page.

| pricing.unit | Fields | Meaning |
| --- | --- | --- |
| `points_per_token` | `prompt`, `completion`, `input_cache_read`, `input_cache_write` (5-minute cache write), `input_cache_write_1h` (1-hour cache write, only returned when that tier is priced) | Credits per token |
| `points_per_request` | `request` | Credits per call or task |
| `points_per_second` | `request` | Credits per second |
| `points_per_image` | `request` | Credits per image |

Generation models can have `tiers` (for example by resolution or mode). Then `request` is the lowest tier, so show it as "from"; each tier has its own `price` and `unit`.

## GET /v1/models/{id}

Returns one model object. Ids may contain a slash. An unknown id returns 404 `model_not_found`.

## GET /v1/models/{id}/endpoints

Lists the providers configured for a model: `provider`, `priority`, `weight` and `status`. `status` comes only from this server's own failure counters and is `ok`, `degraded` or `unavailable`; it is `unknown` when there is no such data. It is not a latency or uptime measure. Base URLs and credentials are never exposed.

```bash
curl https://api.novapi.ai/v1/models/<model-id>/endpoints

{
  "object": "list",
  "model": "<model-id>",
  "data": [
    { "provider": "<name>", "priority": <int>, "weight": <int>, "status": "ok" }
  ]
}
```

## GET /api/cqt/models

A second public list, with no key, that follows the shape of OpenAI's `GET /v1/models` but prices everything in credits (100 credits = 1 USD). Generation models carry the `channel` and `endpoint_mode` you need to submit them through the generator. Add `?category=chat`, `image`, `video` or `audio` to filter. Unlike `GET /v1/models`, prices here are numbers and the `pricing` object has `currency`, `unit` and either token prices or `price` / `tiers`.

```bash
curl https://api.novapi.ai/api/cqt/models

# only one category: ?category=chat | image | video | music | audio
curl "https://api.novapi.ai/api/cqt/models?category=video"
```

```json
{
  "object": "list",
  "data": [
    {
      "id": "<chat-model-id>",
      "object": "model",
      "created": 0,
      "owned_by": "<vendor>",
      "category": "chat",
      "name": "<chat-model-id>",
      "pricing": {
        "currency": "credits",
        "unit": "token",
        "input_per_million": 2500,
        "output_per_million": 10000,
        "cache_write_per_million": 3125,
        "cache_read_per_million": 250,
        "rate": 1
      }
    },
    {
      "id": "happyhorse-1.0-i2v",
      "object": "model",
      "created": 0,
      "owned_by": "<vendor>",
      "category": "video",
      "channel": "qwen",
      "endpoint_mode": "async",
      "pricing": {
        "currency": "credits",
        "unit": "per_second",
        "tiers": [
          { "key": "720P", "label": "720P", "unit": "per_second", "price": 90 },
          { "key": "1080P", "label": "1080P", "unit": "per_second", "price": 160 }
        ]
      }
    }
  ]
}
```

The models and numbers above are examples only; the live response is authoritative.

| Field | Description |
| --- | --- |
| `id` | Model name: the `model` value you pass when calling. |
| `owned_by` | Model vendor. |
| `category` | Type: `chat`, `image`, `video`, `audio` and so on. |
| `channel` | Generation models only. Submit through `POST /api/cqt/generator/{channel}`. |
| `endpoint_mode` | Generation models only: `async` or `sync`. See Model pricing lookup. |
| `created` | Kept for OpenAI compatibility; always `0`. |
| `pricing.currency` | Always `credits`. |
| `pricing.unit` | Billing unit: `token`, `per_call`, `per_image`, `per_second` or `per_task`. |

- Chat models (`unit: token`): `input_per_million` and `output_per_million` are credits per million tokens; the actual charge is usage times unit price times `rate`. The `cache_*` fields only exist for models that have cache prices. Flat-price chat models (`unit: per_call`) only have `price` and are not multiplied by `rate`.
- Generation models: a single price is given as `price`; models with several tiers (resolution, duration and so on) leave `price` empty and list each tier in `tiers`. Whether tiers are mutually exclusive or additive depends on the model, so do not simply add them up.
- A model without `price` or `tiers` does not necessarily have an unpublished price: it may be a free preparatory step (price 0), a post-paid model whose final price cannot be known at submission, or one that is not published yet. When in doubt, get a quote for your actual parameters.
- These are list prices. If your account has a personal discount, the actual charge is further multiplied by it; see Model pricing lookup for the discounted price list and per-request quotes.

## GET /v1/rankings

An anonymous platform-wide ranking by request count. Query: `period` (`day`, `week` or `month`; default `week`; rolling windows), `category` (default `chat`) and `limit` (default 20, max 50). Each entry has `rank`, `model`, `requests` and `share`. Users can opt out, and models used by too few distinct users are left out, so the list can be short or empty. Results are cached for about 10 minutes.

```bash
curl "https://api.novapi.ai/v1/rankings?period=week&category=chat&limit=10"

{
  "object": "list",
  "period": "week",
  "category": "chat",
  "generated_at": <unix-seconds>,
  "data": [
    { "rank": 1, "model": "<model-id>", "requests": <int>, "share": <0..1> }
  ]
}
```

## See also
- [Model pricing lookup](https://www.novapi.ai/docs/guide/pricing)
- [Model catalog](https://www.novapi.ai/pricing)
- [Rankings](https://www.novapi.ai/rankings)
