> Treat every model id, price, size, length and limit in this documentation as an illustration of the shape of the value, never as a constant to hardcode. The live values are served by GET /v1/models and GET /public/models on the HyperFlow HI API.

# Models

> Model ids, types and labs, the Models API, the public catalog with prices, and usage.

HyperFlow HI serves models from many labs through one API. The catalog changes as labs release models, so the live list is on the [Marketplace](https://hi.hyperflow.fun/marketplace), where you can filter by type, sort by price, discount, context or usage, and search by name or id.

## Model ids

Every request names its model by id, in the form `lab/model`, for example `openai/gpt-6-luna` or `deepseek/deepseek-v4-pro`. Use the id exactly as listed.

## Types

Every model has one type, which decides the endpoint you call it on.

| Type          | Use it for                                                                  | Endpoint                                               |
| ------------- | --------------------------------------------------------------------------- | ------------------------------------------------------ |
| **Chat**      | Conversation, reasoning, coding, tool use, image and document understanding | `POST /v1/chat/completions`                            |
| **Embedding** | Search, clustering, retrieval                                               | `POST /v1/embeddings`                                  |
| **Image**     | Generating and editing images                                               | `POST /v1/images/generations`, `POST /v1/images/edits` |
| **Video**     | Generating short videos                                                     | `POST /v1/videos`                                      |

> **Note**
>
> Today the catalog lists chat models only. The other types are documented so your code is ready when they arrive; check the [Marketplace](https://hi.hyperflow.fun/marketplace) for what's live.

## Labs

Models are grouped by **lab**, the company that makes them, such as OpenAI, Google or DeepSeek. Each model has its own page at `hi.hyperflow.fun/marketplace/{lab}/{model}` with its id, context window, prices and a code sample for its type.

## Models API

`GET /v1/models` follows the [OpenAI Models API](https://platform.openai.com/docs/api-reference/models/list) and lists the models you can call.

```bash
curl https://api.hi.hyperflow.fun/v1/models \
  -H "Authorization: Bearer $HYPERFLOW_API_KEY"
```

```json
{
  "object": "list",
  "data": [
    { "id": "openai/gpt-6-luna", "object": "model", "created": 0, "owned_by": "OpenAI", "mode": "chat" },
    { "id": "deepseek/deepseek-v4-pro", "object": "model", "created": 0, "owned_by": "DeepSeek", "mode": "chat" }
  ]
}
```

`owned_by` is the lab and `mode` is the model's type, such as `chat`, `embedding`, `image` or `video`. Other types can appear, so ignore the ones you don't use.

## Public catalog

`GET https://api.hi.hyperflow.fun/public/models` needs no key and returns every model with its prices. It's what the Marketplace is built from.

```bash
curl https://api.hi.hyperflow.fun/public/models
```

```json
[
  {
    "id": "openai/gpt-6-luna",
    "name": "GPT-6 Luna",
    "lab": "OpenAI",
    "logoUrl": null,
    "mode": "chat",
    "contextLength": 1050000,
    "pricing": {
      "mode": "chat",
      "input": "0.09",
      "output": "0.45",
      "cacheRead": "0.009",
      "cacheWrite": "0.1125",
      "tiers": [{ "aboveTokens": 272000, "input": "0.2", "output": "0.75", "cacheRead": "0.018", "cacheWrite": "0.225" }],
      "tierAtThreshold": false
    },
    "discount": "0.1",
    "offer": { "pricing": { "mode": "chat", "input": "0.09", "output": "0.45" }, "discount": "0.1" },
    "retail": { "mode": "chat", "input": "0.1", "output": "0.5" }
  }
]
```

| Field           | What it is                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------ |
| `id`            | The id you send as `model`                                                                                   |
| `name`          | The model's display name                                                                                     |
| `lab`           | The lab that makes it                                                                                        |
| `mode`          | Its type. The catalog can list types not covered in these docs                                               |
| `contextLength` | Its context window in tokens, where the type has one; otherwise `null`                                       |
| `pricing`       | What a request is charged, in credits (1 credit = \$1), as decimal strings, in the unit its type is sold by  |
| `offer`         | The cheapest host's `pricing` and `discount`                                                                 |
| `discount`      | `pricing`'s discount off retail, as a fraction (`0.1` = 10%); `0` when the API doesn't know the retail price |
| `retail`        | The lab's retail price, where known; otherwise `null`                                                        |

`GET https://api.hi.hyperflow.fun/public/models/{id}` returns one model with more detail, including `description` and `modalities`, the inputs and outputs it takes. Write the `/` in the id as `%2F`, such as `/public/models/openai%2Fgpt-6-luna`.

What `pricing` holds depends on the type:

| Type      | Fields                                                                                                                                          |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Chat      | `input`, `output`, and where offered `cacheRead`, `cacheWrite`, `reasoning`, all per 1M tokens; `tiers` for higher prices above a prompt length |
| Embedding | `input`, per 1M tokens                                                                                                                          |
| Image     | Either `unit: "image"` with `perImage`, or `unit: "token"` with `input`, `inputImage` and `outputImage` per 1M tokens                           |
| Video     | `perSecond`, the base price, and `byResolution`, the price per second at each resolution that has its own                                       |

See [Pricing](/models/pricing) for how these turn into the cost of a request.

## Rankings

The [Marketplace](https://hi.hyperflow.fun/marketplace) shows how many tokens each model processed in the last 7 days, and sorts by it by default. Usage counts are also public:

```bash
curl "https://api.hi.hyperflow.fun/public/rankings"
```

The response has `type` (null unless you pass `?type=`), `metric` (`tokens` for `?type=chat` or `?type=embedding`, otherwise `requests`), `total`, `enoughData` (false while there are too few requests to rank fairly) and `models`. Each entry has `modelId`, `name`, `lab`, `tokens`, `requests` and its `share` of the total by `metric`, over the last 7 days.

> **Note**
>
> **Every model counts tokens its own way.** Each lab splits text into tokens differently, so the same prompt can be a different number of tokens, and a different cost, on different models. You're always charged by the model's own count, which the `usage` field of every response shows.

**Next:** [Pricing](/models/pricing): how a model's price turns into the cost of a request.