---
name: heimdallm-provider-listing
description: Write or update the models document a provider publishes to list models on the Heimdallm inference marketplace at staging.heimdallm.com. Use when listing a new model, adding a quantised build or a fine-tune, renaming an entry, or fixing an entry the marketplace refused.
metadata:
  version: '1.0.1'
  schema-version: '2.4'
---

# Listing models on Heimdallm

A provider lists models by serving one JSON document that the marketplace pulls. Each entry
in it is one endpoint: one model, at one precision, served by this provider. This skill is
the shortest path to an entry that is admitted on the first pull and named so that customers
find it beside every other provider serving the same weights.

The full contract is https://staging.heimdallm.com/docs/providers/how-to-list.md. Read it for
any field this skill does not cover; do not guess a field's meaning from its name.

## How listing works

1. **The document.** Serve `{ "data": [ … ] }` (or a bare array) as JSON. Every entry carries
   `"schema_version": "2.4"`. Limits per pull: 5 MB, 2000 entries, 15 seconds.
2. **The pull.** The source registered in the provider dashboard
   (https://staging.heimdallm.com/account/provider) names a base URL ending in `/v1`. The
   marketplace fetches `<base URL>/models` (or the models URL registered on the source) with
   `Authorization: Bearer <the source's credential>`, every 60 seconds by default and on demand
   from the dashboard. Both URLs must resolve to public addresses.
3. **Admitted, refused or waiting.** Each entry is validated on its own.
   - An entry that fails validation is **refused**: it lists nothing, and the pull reports the
     failure against a path in the document, such as `data[0].output_modalities[0].pricing[0].unit`.
     The other entries still list. A key the schema does not name is refused, not ignored.
   - An entry naming a `hugging_face_id` has its omitted metadata read from that repository
     before validation. A pull that has not yet read the repository reports
     `metadata_fill_deferred`, and an entry relying on it for a required field **waits**: it is
     refused on that pull and admitted on a later one. An entry that declares `name`, `created`
     and its context window does not wait.
   - An admitted entry becomes an endpoint in `pending_health`. Health probes call it through
     the customer inference path; once two of its last three probes succeed it goes live and is
     routed. A failing endpoint is retried on a growing backoff.
4. **Withdrawal.** A live endpoint that no valid entry lists is withdrawn on the second
   consecutive pull that reads the document. A document that cannot be fetched withdraws nothing.

Check the result in the dashboard: the source's pull runs list every finding with its path,
and an endpoint's Evidence tab shows the last probe. Before publishing, validate the document
offline with the CLI, which runs the same parser on the declared fields:

```sh
heimdallm providers validate models.json --json
```

Offline validation cannot read Hugging Face, so it does not prove that `name`, `created` and
the context window will be present after the pull. Declaring them, as the examples below do,
makes the entry complete without the repository.

## Naming

### The id: `author/model[-variant]`, all lowercase

- **author** is the lab that released the base model. Use the OpenRouter author slug where
  OpenRouter lists that lab (`qwen`, `deepseek`, `z-ai`, `minimax`, `xiaomi`, `google`,
  `openai`, `meta-llama`, `mistralai`, `moonshotai`); otherwise the lab's own Hugging Face
  organisation, lowercased (`openbmb`, `lightricks`, `tencentarc`, `hidream-ai`). The author is
  never the provider and never whoever fine-tuned, abliterated, quantised, repacked or
  uploaded the weights.
- **model** is the lab's own slug for the model, lowercased, keeping its version, size and
  date tokens (`qwen3.8-27b`, `qwen3.8-flash-next`, `deepseek-v4.1-flash-1017`,
  `gemma-4-31b-it`). Where OpenRouter lists the same base model, use OpenRouter's id verbatim;
  look it up at https://openrouter.ai/api/v1/models, whose entries carry `id`, `name` and
  `hugging_face_id`. A model OpenRouter does not list keeps the lab's own slug, even where
  OpenRouter lists a different model with a similar name: `qwen/qwen3.8-flash` and
  `qwen/qwen3.8-flash-next` are two models.
- **variant** is present only when the weights differ from the lab's release, and names only
  what changed: a short lowercase suffix such as `abliterated`, `uncensored`, `heretic`, `cybersecurity`, or the name of a
  fine-tune. It is never a precision or format (`fp8`, `int4`, `awq`, `awq-int4`, `nvfp4`,
  `w4a16`, `gguf`, `q8_0`, `bf16`), never the uploader or the maker of the variant, never a
  provider, fleet or datacenter name, never a date the uploader chose, and never a suffix added
  to tell one build from another.

One id names the lab's release, or one kind of change to it. Two providers serving the same
weights at different precisions list the same id, each with its own `quantization`; one provider
may list the same id once per `quantization`. Two makers' builds of the same kind share an id
too: two abliterations of one base are both `…-abliterated`, and each maker appears only in its
listing's name.

When two providers publish one id with different `hugging_face_id` repositories, the model's
page shows the metadata of its canonical listing. The other document's differing fields (name,
description, context window, modalities, repository, base) are not applied and are reported on
its pull as `metadata_conflict` warnings, while its endpoint still serves the id. An
administrator can pin which listing is canonical.

### The name: `Lab: Model [Variant] [(Variant maker)]`

- **Lab** is the lab's display name in its own capitalisation: Qwen, DeepSeek, Z.ai, MiniMax,
  Xiaomi, Google, OpenAI, Meta, Mistral, OpenBMB, Tencent, TencentARC, Lightricks, Microsoft,
  HiDream. Where OpenRouter lists the same model, use OpenRouter's `name` verbatim.
- **Model** is words separated by spaces, in the lab's own capitalisation: `Qwen3.8 27B`,
  `DeepSeek V4.1 Flash`, `GLM 5.3 Flash`, `MiniCPM5 2B`, `Gemma 4 31B`.
- **Variant** is a capitalised word after the model: `Abliterated`, `Uncensored`.
- **Variant maker** goes in parentheses at the end, spelled as they write it: `(DealignAI)`.

Always declare `name`. An entry without one is named from the repository id as
`owner: Repo-Name`, which names the uploader and the repository's spelling rather than the
model.

### Precision, packaging and lineage

Quantisation and packaging describe an endpoint, not the model:

- `quantization`: the format the endpoint serves, one of `int4`, `int8`, `fp4`, `mxfp4`,
  `nvfp4`, `fp6`, `fp8`, `mxfp8`, `fp16`, `bf16`, `fp32`. Declare it whenever the engine
  quantises on load, since the repository can only state how the weights are stored.
- `hugging_face_id`: the exact repository the engine loads, case-sensitive as on
  huggingface.co. Never guessed; omit it when the weights are not published there.
- `heimdall.base_model_hugging_face_id`: the repository of the weights this build was made
  from. A requantisation or repack declares it, so that the family links the released weights.
- `heimdall.base_model` and `heimdall.base_model_name`: for a modified build (a fine-tune or
  an abliteration), the marketplace id and display name of the base it groups under. Never a
  Hugging Face repository id. A requantisation is the base itself and declares no `base_model`.
- `created`: the release date of the weights, in Unix seconds. Repository fill reads the date
  the loaded repository was created, which for a requantisation is the upload date of the copy,
  so a requantisation declares the base's release date.

### Wrong and right

| Wrong                                                                             | Right                                                                                          | Why                                                                                       |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| An abliterated DeepSeek build listed as `deepseek/deepseek-v4-flash-0731`         | `deepseek/deepseek-v4-flash-0731-abliterated`, `base_model` `deepseek/deepseek-v4-flash-0731`  | The base id publishes modified weights as the lab's release.                              |
| `qwen/qwen3.8-flash-next-abliterated-dealignai`                                   | `qwen/qwen3.8-flash-next-abliterated`, name `Qwen: Qwen3.8 Flash Next Abliterated (DealignAI)` | The maker appears only in the name, never in the id.                                      |
| `qwen/qwen3.8-flash-abliterated` for an abliteration of `Qwen/Qwen3.8-Flash-Next` | `qwen/qwen3.8-flash-next-abliterated`                                                          | OpenRouter's `qwen/qwen3.8-flash` is a different model; the base keeps the lab's slug.    |
| `someorg/minimax-m3-awq-int4`                                                     | `minimax/minimax-m3`, `"quantization": "int4"`                                                 | The uploader is not the author, and the precision belongs in `quantization`.              |
| `redhatai/qwen3.8-27b-int4`, name `RedHatAI: Qwen3.8-27B-INT4`                    | `qwen/qwen3.8-27b`, name `Qwen: Qwen3.8 27B`, `"quantization": "int4"`                         | The same weights at another precision are the same model.                                 |
| `qwen/qwen3.8-27b-<fleet>`                                                        | `qwen/qwen3.8-27b`                                                                             | Who serves the model is the provider, never part of the id.                               |
| `zai-org/glm-5.3-flash`, name `zai-org: GLM-5.3-Flash`                            | `z-ai/glm-5.3-flash`, name `Z.ai: GLM 5.3 Flash`                                               | The Hugging Face organisation is not the author slug, and the name is not the repository. |
| `DeepSeek: DeepSeek V4 Flash 0731 (abliterated)`                                  | `DeepSeek: DeepSeek V4 Flash 0731 Abliterated (cebeuq)`                                        | The variant is a capitalised word; the parentheses name its maker.                        |

## Examples

Each example is a complete document, admitted as written. Change the prices, windows,
parameters and capacity to what the engine actually serves.

### A chat model, as the lab released it

Declare a parameter in `supported_parameters` only when the engine honours it. `tools` and
`tool_choice` belong here only when the engine was started with tool calling (for vLLM,
`--enable-auto-tool-choice` and a `--tool-call-parser`); an engine without it declares
`"heimdall": { "disabled_parameters": ["tools"] }` instead, because tools are otherwise inferred
from the checkpoint's chat template. The marketplace sends `id` as the request's `model`, so
start the engine with `--served-model-name qwen/qwen3.8-27b` or declare the name it answers to
in `heimdall.serving_id`.

```json
{
  "data": [
    {
      "schema_version": "2.4",
      "id": "qwen/qwen3.8-27b",
      "name": "Qwen: Qwen3.8 27B",
      "created": 1785918179,
      "hugging_face_id": "Qwen/Qwen3.8-27B",
      "quantization": "bf16",
      "input_modalities": [
        {
          "type": "text",
          "supported_inputs": { "max_context_length": { "value": 262144, "unit": "token" } },
          "pricing": [{ "type": "prompt", "unit": "token", "cost_usd": "0.0000002" }]
        }
      ],
      "output_modalities": [
        {
          "type": "text",
          "max_length": { "value": 32768, "unit": "token" },
          "streaming": true,
          "supported_parameters": {
            "temperature": { "type": "range", "min": 0, "max": 2 },
            "top_p": { "type": "range", "min": 0, "max": 1 },
            "max_tokens": { "type": "integer", "min": 1, "max": 32768, "unit": "token" },
            "stop": { "type": "array", "items": { "type": "unknown" }, "max_items": 4 },
            "tools": { "type": "boolean" },
            "tool_choice": { "type": "unknown" }
          },
          "pricing": [{ "type": "completion", "unit": "token", "cost_usd": "0.0000008" }]
        }
      ]
    }
  ]
}
```

### A quantised build of a released model

The id and name are the base model's. `hugging_face_id` is the repository the engine loads,
`quantization` states the precision, `base_model_hugging_face_id` names the released weights,
and `created` is their release date. `serving_id` is the name the engine answers to.

```json
{
  "data": [
    {
      "schema_version": "2.4",
      "id": "qwen/qwen3.8-27b",
      "name": "Qwen: Qwen3.8 27B",
      "created": 1785918179,
      "hugging_face_id": "RedHatAI/Qwen3.8-27B-INT4",
      "quantization": "int4",
      "input_modalities": [
        {
          "type": "text",
          "supported_inputs": { "max_context_length": { "value": 131072, "unit": "token" } },
          "pricing": [{ "type": "prompt", "unit": "token", "cost_usd": "0.0000001" }]
        }
      ],
      "output_modalities": [
        {
          "type": "text",
          "max_length": { "value": 16384, "unit": "token" },
          "streaming": true,
          "supported_parameters": {
            "temperature": { "type": "range", "min": 0, "max": 2 },
            "max_tokens": { "type": "integer", "min": 1, "max": 16384, "unit": "token" }
          },
          "pricing": [{ "type": "completion", "unit": "token", "cost_usd": "0.0000004" }]
        }
      ],
      "heimdall": {
        "serving_id": "RedHatAI/Qwen3.8-27B-INT4",
        "base_model_hugging_face_id": "Qwen/Qwen3.8-27B"
      }
    }
  ]
}
```

### A modified build: abliterated or fine-tuned

The id is the base's id with a variant suffix, and the name is the base's name with the variant
and its maker. `hugging_face_id` is the repository the engine loads, `quantization` the format
it serves, and the `heimdall` base fields place the build in the base model's family. Another
maker's abliteration of the same base lists under the same id, with its own maker in its name.

```json
{
  "data": [
    {
      "schema_version": "2.4",
      "id": "qwen/qwen3.8-flash-next-abliterated",
      "name": "Qwen: Qwen3.8 Flash Next Abliterated (DealignAI)",
      "created": 1787889913,
      "hugging_face_id": "dealignai/Qwen3.8-Flash-Next-ABLITERATED-NVFP4",
      "quantization": "nvfp4",
      "input_modalities": [
        {
          "type": "text",
          "supported_inputs": { "max_context_length": { "value": 131072, "unit": "token" } },
          "pricing": [{ "type": "prompt", "unit": "token", "cost_usd": "0.0000002" }]
        }
      ],
      "output_modalities": [
        {
          "type": "text",
          "max_length": { "value": 32768, "unit": "token" },
          "streaming": true,
          "supported_parameters": {
            "temperature": { "type": "range", "min": 0, "max": 2 },
            "max_tokens": { "type": "integer", "min": 1, "max": 32768, "unit": "token" }
          },
          "pricing": [{ "type": "completion", "unit": "token", "cost_usd": "0.0000008" }]
        }
      ],
      "heimdall": {
        "base_model": "qwen/qwen3.8-flash-next",
        "base_model_name": "Qwen: Qwen3.8 Flash Next",
        "base_model_hugging_face_id": "Qwen/Qwen3.8-Flash-Next",
        "tags": ["abliterated"]
      }
    }
  ]
}
```

The same shape lists an abliteration of an OpenRouter-listed base under OpenRouter's id:

```json
{
  "data": [
    {
      "schema_version": "2.4",
      "id": "deepseek/deepseek-v4-flash-0731-abliterated",
      "name": "DeepSeek: DeepSeek V4 Flash 0731 Abliterated (cebeuq)",
      "created": 1785611388,
      "hugging_face_id": "cebeuq/DeepSeek-V4-Flash-0731-abliterated",
      "quantization": "fp8",
      "input_modalities": [
        {
          "type": "text",
          "supported_inputs": { "max_context_length": { "value": 131072, "unit": "token" } },
          "pricing": [{ "type": "prompt", "unit": "token", "cost_usd": "0.0000001" }]
        }
      ],
      "output_modalities": [
        {
          "type": "text",
          "max_length": { "value": 32768, "unit": "token" },
          "streaming": true,
          "supported_parameters": {
            "temperature": { "type": "range", "min": 0, "max": 2 },
            "max_tokens": { "type": "integer", "min": 1, "max": 32768, "unit": "token" }
          },
          "pricing": [{ "type": "completion", "unit": "token", "cost_usd": "0.0000004" }]
        }
      ],
      "heimdall": {
        "base_model": "deepseek/deepseek-v4-flash-0731",
        "base_model_name": "DeepSeek: DeepSeek V4 Flash 0731",
        "base_model_hugging_face_id": "deepseek-ai/DeepSeek-V4-Flash-0731",
        "tags": ["abliterated"]
      }
    }
  ]
}
```

### An embeddings model

An `embeddings` output is served at `<base URL>/embeddings` and is not streamed, so it declares
no `streaming`. Its price is per prompt token on the `text` input.

```json
{
  "data": [
    {
      "schema_version": "2.4",
      "id": "qwen/qwen3-embedding-8b",
      "name": "Qwen: Qwen3 Embedding 8B",
      "created": 1748961550,
      "hugging_face_id": "Qwen/Qwen3-Embedding-8B",
      "quantization": "bf16",
      "input_modalities": [
        {
          "type": "text",
          "supported_inputs": { "max_context_length": { "value": 32768, "unit": "token" } },
          "pricing": [{ "type": "prompt", "unit": "token", "cost_usd": "0.00000001" }]
        }
      ],
      "output_modalities": [
        {
          "type": "embeddings",
          "supported_parameters": {
            "encoding_format": { "type": "enum", "values": ["float", "base64"], "default": "float" }
          }
        }
      ]
    }
  ]
}
```

Image, video, speech, transcription, rerank and mesh entries need envelopes and parameters of
their own; the full contract and the worked example at
https://staging.heimdallm.com/docs/providers/example.md show each one.

## Before publishing

- [ ] Every entry carries `"schema_version": "2.4"`, and prices are decimal strings in USD per
      unit (`"0.0000004"` is $0.40 per million tokens), never numbers.
- [ ] The id's author is the lab that released the base, as OpenRouter spells it where
      OpenRouter lists the lab, and the model slug is OpenRouter's only where OpenRouter lists
      the same base model.
- [ ] The id holds no precision, format, uploader, variant maker, provider, fleet or
      datacenter token.
- [ ] A build with modified weights has a variant suffix, and `heimdall.base_model`,
      `base_model_name` and `base_model_hugging_face_id` name its base.
- [ ] A requantisation keeps the base's id and name, declares `quantization`,
      `heimdall.base_model_hugging_face_id` and the base's `created`.
- [ ] `name` is declared and reads `Lab: Model [Variant] [(Variant maker)]`, matching
      OpenRouter's name where OpenRouter lists the same model.
- [ ] `hugging_face_id` is the exact repository the engine loads, or absent.
- [ ] `created` is in seconds, not milliseconds.
- [ ] The `text` input declares the context window the engine actually serves.
- [ ] `supported_parameters` holds only parameters the engine honours, and `tools` only when it
      serves tool calls.
- [ ] The engine answers to `id` as its model name, or `heimdall.serving_id` names what it
      answers to.
- [ ] `heimdallm providers validate models.json --json` reports no errors.
- [ ] After publishing, the dashboard's latest pull shows each entry admitted and each endpoint
      reaching live through `pending_health`.
