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

# Supported Models

> Available models for Model Inference and their specifications

Model Inference supports models from Anthropic and OpenAI, all hosted within your [data plane](/concepts/primitives/data-planes). This reference lists available models and links to their official documentation.

## Available models

| Model ID                      | Provider  | Description                                             |
| ----------------------------- | --------- | ------------------------------------------------------- |
| `anthropic.claude-haiku-4.5`  | Anthropic | Fast, cost-effective model for simple tasks             |
| `anthropic.claude-sonnet-4.5` | Anthropic | Balanced model for most use cases                       |
| `anthropic.claude-sonnet-4.6` | Anthropic | Balanced model with improved reasoning                  |
| `anthropic.claude-sonnet-5.0` | Anthropic | Latest Sonnet generation                                |
| `anthropic.claude-opus-4.5`   | Anthropic | Highly capable model for complex reasoning              |
| `anthropic.claude-opus-4.6`   | Anthropic | Highly capable model with the newest Opus generation    |
| `anthropic.claude-opus-4.7`   | Anthropic | Latest Opus generation for the most demanding workloads |
| `anthropic.claude-opus-4.8`   | Anthropic | Latest Opus generation for the most demanding workloads |
| `openai.gpt-4.1`              | OpenAI    | Advanced reasoning and analysis                         |
| `openai.o4-mini`              | OpenAI    | Fast, efficient model                                   |
| `openai.gpt-oss-120b`         | OpenAI    | Open-source large language model                        |

<Note>
  Different Claude generations use different structured-output paths under the hood.
  Sonnet 5.0 and Opus 4.7 / 4.8 use the **forced-tool-use** path (schema conformance is
  enforced by client-side validation and these models do not accept `temperature` or
  `top_p`); all other models use **native** structured output. See
  [Structured Output](/concepts/model-inference/structured-output) for the differences.
</Note>

## Anthropic Claude models

Claude models excel at analysis, summarization, and following detailed instructions.

### Claude Haiku 4.5

**Model ID:** `anthropic.claude-haiku-4.5`

The fastest Claude model, optimized for high-throughput tasks where speed matters more than deep analysis.

**Best for:**

* Simple classification tasks
* Data extraction
* Quick summaries
* High-volume processing

**Official documentation:** [Claude Haiku](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-5-haiku)

### Claude Sonnet 4.5

**Model ID:** `anthropic.claude-sonnet-4.5`

A balanced model offering strong performance across most tasks with good efficiency.

**Best for:**

* Content analysis
* Code generation
* Multi-step reasoning
* General-purpose tasks

**Official documentation:** [Claude Sonnet](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-5-sonnet)

### Claude Sonnet 4.6

**Model ID:** `anthropic.claude-sonnet-4.6`

A Sonnet generation with improved reasoning and instruction following.

**Best for:**

* Content analysis
* Code generation
* Multi-step reasoning
* General-purpose tasks

**Official documentation:** [Claude Sonnet](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-5-sonnet)

### Claude Sonnet 5.0

**Model ID:** `anthropic.claude-sonnet-5.0`

The latest Sonnet generation. Uses the **forced-tool-use** structured-output path — the
platform enforces `output_format_schema` conformance with client-side validation instead
of native grammar constraints. This model **does not accept `temperature` or `top_p`**;
those sampling parameters are silently dropped from your request.

**Best for:**

* Content analysis
* Code generation
* Multi-step reasoning where the newest Sonnet capabilities are preferred

**Official documentation:** [Claude Sonnet](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-5-sonnet)

### Claude Opus 4.5

**Model ID:** `anthropic.claude-opus-4.5`

A highly capable Claude model for complex tasks requiring deep analysis and nuanced understanding.

**Best for:**

* Complex reasoning chains
* Nuanced analysis
* Research tasks
* High-stakes decisions

**Official documentation:** [Claude Opus](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-opus)

### Claude Opus 4.6

**Model ID:** `anthropic.claude-opus-4.6`

An Opus generation with strong capabilities for demanding inference workloads.

**Best for:**

* Complex reasoning chains
* Nuanced analysis
* Research tasks
* High-stakes decisions

**Official documentation:** [Claude Opus](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-opus)

### Claude Opus 4.7

**Model ID:** `anthropic.claude-opus-4.7`

A newer Opus generation for the most demanding inference workloads. Uses the
**forced-tool-use** structured-output path — the platform enforces `output_format_schema`
conformance with client-side validation. This model **does not accept `temperature` or
`top_p`**; those sampling parameters are silently dropped from your request.

**Best for:**

* Complex reasoning chains
* Nuanced analysis
* Research tasks

**Official documentation:** [Claude Opus](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-opus)

### Claude Opus 4.8

**Model ID:** `anthropic.claude-opus-4.8`

The latest Opus generation, the most capable Claude model available. Uses the
**forced-tool-use** structured-output path with client-side schema validation, and
**does not accept `temperature` or `top_p`**.

**Best for:**

* Complex reasoning chains where the latest capabilities are preferred
* Nuanced analysis
* Research tasks
* High-stakes decisions

**Official documentation:** [Claude Opus](https://docs.anthropic.com/en/docs/about-claude/models#claude-3-opus)

## OpenAI models

OpenAI models offer strong reasoning capabilities and broad knowledge.

### GPT-4.1

**Model ID:** `openai.gpt-4.1`

Advanced reasoning model with strong analytical capabilities.

**Best for:**

* Complex analysis
* Technical reasoning
* Multi-domain tasks

**Official documentation:** [GPT-4 Models](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo)

### o4-mini

**Model ID:** `openai.o4-mini`

Smaller, faster model optimized for efficiency.

**Best for:**

* Quick responses
* Simple tasks
* Cost-sensitive applications

**Official documentation:** [OpenAI Models](https://platform.openai.com/docs/models)

### GPT-oss-120b

**Model ID:** `openai.gpt-oss-120b`

Open-source large language model with broad capabilities.

**Best for:**

* General-purpose tasks
* Open-source requirements

## Choosing a model

| Consideration                | Recommendation          |
| ---------------------------- | ----------------------- |
| **Speed priority**           | Claude Haiku or o4-mini |
| **Balance of speed/quality** | Claude Sonnet           |
| **Complex reasoning**        | Claude Opus or GPT-4.1  |
| **Cost sensitivity**         | Claude Haiku or o4-mini |
| **High accuracy required**   | Claude Opus             |

For detailed guidance on model selection, see [Choosing the Right Model](/guides/sdk/choosing-inference-models).

## Usage example

```typescript theme={null}
import { NarrativeApi } from '@narrative.io/data-collaboration-sdk-ts';

const api = new NarrativeApi({
  apiKey: process.env.NARRATIVE_API_KEY,
});

// Use Claude Sonnet for balanced performance
const job = await api.runModelInference({
  data_plane_id: 'dp_your_data_plane_id',
  model: 'anthropic.claude-sonnet-4.5',
  messages: [
    {
      role: 'user',
      content: [{ type: 'text', text: 'Analyze this dataset...' }]
    }
  ],
  inference_config: {
    output_format_schema: {
      type: 'object',
      properties: {
        analysis: { type: 'string' }
      },
      required: ['analysis']
    }
  }
});
```

## Related content

<CardGroup cols={2}>
  <Card title="Choosing Models" icon="scale-balanced" href="/guides/sdk/choosing-inference-models">
    Detailed model selection guide
  </Card>

  <Card title="Running Inference" icon="play" href="/guides/sdk/running-model-inference">
    Submit inference requests
  </Card>

  <Card title="Model Inference API" icon="code" href="/reference/sdks/typescript/model-inference-api">
    Complete API reference
  </Card>

  <Card title="Model Inference Overview" icon="brain" href="/concepts/model-inference/overview">
    How inference works
  </Card>
</CardGroup>
