# Models

GET /v1/models, Noduma's models with each one's state and price.

Source: https://docs.noduma.dev/api/models/

`GET https://app.noduma.dev/v1/models`

Every model of Noduma's catalog, whether or not a PC serves it now, with its state and its price. A request for a model outside this list is refused.

**curl**

```sh
curl https://app.noduma.dev/v1/models -H "Authorization: Bearer $NODUMA_API_KEY"
```

**Python**

```python
for model in client.models.list():
    info = model.model_extra["noduma"]
    print(model.id, info["state"], info["price_per_1k_tokens"])
```

**JavaScript**

```js
const { data } = await client.models.list();
for (const model of data) console.log(model.id, model.noduma.state, model.noduma.price_per_1k_tokens);
```

## Answer

```json
{
  "object": "list",
  "data": [
    {
      "id": "qwen2.5-32b-instruct-q4_k_m",
      "object": "model",
      "owned_by": "noduma",
      "noduma": { "price_per_1k_tokens": 4000, "base_price_per_1k_tokens": 4000, "state": "not_available" }
    },
    {
      "id": "qwen2.5-14b-instruct-q4_k_m",
      "object": "model",
      "owned_by": "noduma",
      "tier": 2,
      "description": "Served by a group of contributors: several contributors' PCs process each request together, and each of them can read it.",
      "noduma": { "price_per_1k_tokens": 2500, "base_price_per_1k_tokens": 2000, "state": "ready" }
    }
  ]
}
```

| Field | Meaning |
|---|---|
| `id` | The name to send as `model` |
| `noduma.state` | `ready`: at least one PC serves it now. `not_available`: on the list, but no PC serves it now; a request gets `503 model_not_available` |
| `noduma.price_per_1k_tokens` | The price in force now, in credits per 1,000 tokens |
| `noduma.base_price_per_1k_tokens` | The model's price at a demand factor of 1 |
| `tier`, `description` | Present only while a group of PCs serves the model ([Tier 2](/concepts/tiers/)) |

The list is in the catalog's order, largest model first. Each model's size, source and kind are on its [model page](/models/). The price a request pays is the one in force when it is accepted; see [Credits](/concepts/credits/).
