Skip to main content
Model Inference supports models from Anthropic and OpenAI, all hosted within your data plane. This reference lists available models and links to their official documentation.

Available models

Model IDProviderDescription
anthropic.claude-haiku-4.5AnthropicFast, cost-effective model for simple tasks
anthropic.claude-sonnet-4.5AnthropicBalanced model for most use cases
anthropic.claude-opus-4.5AnthropicMost capable model for complex reasoning
openai.gpt-4.1OpenAIAdvanced reasoning and analysis
openai.o4-miniOpenAIFast, efficient model
openai.gpt-oss-120bOpenAIOpen-source large language model

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

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

Claude Opus 4.5

Model ID: anthropic.claude-opus-4.5 The most 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

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

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

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

ConsiderationRecommendation
Speed priorityClaude Haiku or o4-mini
Balance of speed/qualityClaude Sonnet
Complex reasoningClaude Opus or GPT-4.1
Cost sensitivityClaude Haiku or o4-mini
High accuracy requiredClaude Opus
For detailed guidance on model selection, see Choosing the Right Model.

Usage example

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', text: 'Analyze this dataset...' }
  ],
  inference_config: {
    output_format_schema: {
      type: 'object',
      properties: {
        analysis: { type: 'string' }
      },
      required: ['analysis']
    }
  }
});