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

# The model object

> The model object describes one catalog model, its kinds, operations, limits, accepted parameters and prices, as GET /v1/models returns it.

The model object describes one model of the catalog: what it does, how large a request may be, which optional fields it accepts and what each unit costs. Your code reads it to pick a model and check what the model supports before a request.

## Where it appears

[`GET /v1/models`](https://docs.naga.ac/api-reference/models/list-models) returns one model object per model, in its `data` array. The list needs no key; called with a key, it holds only the models that key may use, as [Models](https://docs.naga.ac/get-started/models.md#list-models-in-code) explains.

## Attributes

**id** `string` *required*

The model's id: the publisher's slug, a slash and the model name, such as `anthropic/claude-sonnet-5.5`. The `model` field of every response holds this value.

**object** `string` *required*

Always `model`.

**created** `integer` *required*

When the model entered the catalog, in Unix seconds.

**owned\_by** `string | null`

The publisher's slug, the part of `id` before the slash.

**display\_name** `string | null`

The model's name for people, such as `Claude Sonnet 5.5`.

**description** `string | null`

What the publisher says the model does.

**kinds** `array\<string\>` *required*

What kind of model it is. See [Kinds](#kinds). A chat model that can also answer with pictures is `chat`. Filter on this field.

**primary\_operation** `string | null`

The operation the model is chiefly for, as the catalog states it. `null` when no provider serves that operation right now.

**operations** `array\<object\>` *required*

What the model does, one entry per job that the catalog states and a provider serves right now.

**properties**

**operation** `string`

The job. See [Operations and endpoints](#operations-and-endpoints).

**kind** `string`

The kind of the job.

**endpoints** `array\<string\>`

Every endpoint name that serves the job. `chat` lists all three chat endpoints.

**limits** `object`

How large one request may be. See [Limits](#limits). A limit the catalog doesn't record is omitted.

**parameters** `object`

The optional request fields the job accepts, keyed by name. See [Parameters](#parameters).

**pricing** `array\<object\>` *required*

One row per meter and condition. Empty when the model isn't on sale. See [Pricing rows](#pricing-rows).

**architecture** `object` *required*

`input_modalities` lists what the model accepts: `text`, `image`, `audio`, `file`. A request with another input type fails with `400` before it reaches a provider. `output_modalities` lists what it returns.

**aliases** `array\<string\>`

Other names the model answers to. The first is the bare model name. See [Use an alias or a dated id](https://docs.naga.ac/get-started/models.md#aliases-and-dated-ids).

**deprecates\_at** `integer`

When the model stops answering, in Unix seconds. After it, requests return `410 model_deprecated`.

**precision** `array\<string\>`

The weight precisions the model's providers publish they serve it in, such as `["bf16", "fp8"]`, each once, and in alphabetical order. Absent when no provider publishes one. A request without [`routing.precision`](https://docs.naga.ac/guides/require-a-precision) may be served in a precision not listed here.

### Kinds

`kinds` and `operations[].kind` take one of `chat`, `image`, `video`, `speech`, `transcription`, `embeddings`, `moderation` and `rerank`.

### Operations and endpoints

Each `operation` is served by the endpoint names in this table.

| `operation` | `endpoints` |
| - | - |
| `chat` | `responses`, `chat.completions`, `messages` |
| `image_generation` | `images.generations` |
| `image_edit` | `images.edits` |
| `video_generation` | `videos.generations` |
| `speech` | `audio.speech` |
| `transcription` | `audio.transcriptions` |
| `translation` | `audio.translations`: transcription into English |
| `embeddings` | `embeddings` |
| `moderation` | `moderations` |
| `rerank` | `rerank` |

### Limits

`operations[].limits` holds the keys of this table that apply to the operation.

| Key | Meaning |
| - | - |
| `context_window` | On `chat`, the token budget for prompt and answer together. On `embeddings` and `moderation`, the token budget of each input. |
| `max_inputs` | On `embeddings` and `moderation`, how many inputs one request may carry. |
| `max_images` | On `image_generation` and `image_edit`, the largest `n`. |
| `max_wait_seconds` | On `video_generation`, how long a job may run before it fails with `timeout`. |
| `max_output_megapixels` | On `video_generation`, the largest frame the model delivers, in megapixels of 1,048,576 pixels. |
| `max_input_characters` | On `speech`, the longest `input`. |
| `max_file_bytes` | On `transcription` and `translation`, the largest audio file. |
| `max_documents` | On `rerank`, the most `documents`. |

### Parameters

Each value in `operations[].parameters` describes one optional request field in a subset of JSON Schema (`type`, `enum`, `default`, `minimum`, `maximum`, `maxItems`, `maxLength`, `items`, `properties`), plus `x-support`:

| `x-support` | Meaning |
| - | - |
| `native` | NagaAI passes the field as sent. |
| `limited` | The field takes only the values the other keys allow, such as `"maxItems": 1` on `stop`. |

The values include those NagaAI converts for the provider. A `reasoning_effort` level the provider lacks goes as its nearest level. A `temperature`, `top_p` or penalty outside the provider's range goes as the nearest value in it. A JSON schema in `response_format` goes into the prompt.

Names come from a fixed list per operation: the fields NagaAI checks when it picks a provider. A name appears when at least one provider of the model accepts it, and the description accepts every value that at least one of them accepts. NagaAI sends a value only to a provider that accepts it; see [Differences from OpenAI and Anthropic](https://docs.naga.ac/build/compatibility.md#unknown-and-unsupported-fields).

### Pricing rows

Each row of `pricing` has the keys in this table.

| Key | Meaning |
| - | - |
| `meter` | What NagaAI counts, such as `input_text_token`, `output_audio_hour`, `output_video_second` or `output_video_megapixel_second`. `input_token`, `output_token` and `token` price whatever has no row of its own. `request` is a fee one request pays once, on top of its other rows. |
| `unit` | The unit `price` is per, such as `token` or `request`. |
| `price` | Credits per `unit`, as a decimal string. One credit is one US dollar, so `"0.000001"` per `input_token` is \$1 per million tokens. |
| `conditions` | The request values the row applies to, such as `resolution` on a video row. Empty when the row always applies. With `operation` in it, the row applies to that operation only and there replaces the row of the same `meter` without it. |
| `minimum` | When present, the least one request costs under the row, however few units it uses. |
| `max_price` | When present, the most one unit costs. The rate then depends on the provider that serves the request; see [Limit the price of a request](https://docs.naga.ac/guides/limit-the-price.md). |

## Example object

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-dimmed"}}
{
  "id": "anthropic/claude-sonnet-5.5",
  "object": "model",
  "created": 1790618686,
  "owned_by": "anthropic",
  "display_name": "Claude Sonnet 5.5",
  "kinds": ["chat"],
  "primary_operation": "chat",
  "operations": [
    {
      "operation": "chat",
      "kind": "chat",
      "endpoints": ["chat.completions", "messages", "responses"],
      "limits": {"context_window": 1000000},
      "parameters": {
        "reasoning_effort": {"x-support": "native"},
        "response_format": {"x-support": "native"},
        "temperature": {"x-support": "native"},
        "tools": {"x-support": "native"}
      }
    }
  ],
  "pricing": [
    {"meter": "input_token", "unit": "token", "price": "0.000001", "conditions": {}},
    {"meter": "cached_input_token", "unit": "token", "price": "0.00000005", "conditions": {}},
    {"meter": "output_token", "unit": "token", "price": "0.000005", "conditions": {}}
  ],
  "architecture": {
    "input_modalities": ["text", "image", "file"],
    "output_modalities": ["text"]
  },
  "aliases": ["claude-sonnet-5.5"]
}
```

## Errors

A request that goes past the model object's limits fails before it reaches a provider:

| Status and code | Cause |
| - | - |
| `400 invalid_request_error` | The request is above `max_inputs`, `max_input_characters`, `max_file_bytes` or `max_documents`; the message names the limit. Or it sends an input type that isn't in `input_modalities`. |
| `410 model_deprecated` | The request came after `deprecates_at`. Pick another model from the list. |

For any other status, see [Errors](https://docs.naga.ac/build/error-handling.md).

## See also

* [Models](https://docs.naga.ac/get-started/models.md): list models in code and pick one.
* [The routing object](https://docs.naga.ac/api-reference/routing-object.md): cap the price per meter and require a precision.
* [Billing](https://docs.naga.ac/build/billing.md): how meters add up to the price of a request.


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