New version available

Refresh to update

Could not apply changes

Claude Sonnet 5

anthropic
anthropic/claude-sonnet-5

Anthropic model for coding, tool use, reasoning, and long-horizon professional work at lower cost than Opus-class models. Supports adaptive reasoning, vision, PDFs, and function calling with a 1M-token context window; routed through OpenRouter.

Quick start

TypeScript
cURL
import OpenAI from 'openai'

const openai = new OpenAI({
  apiKey: process.env.CODEPLATFORM_API_KEY,
  baseURL: 'https://ai.codeplatform.net/v1',
})

const response = await openai.chat.completions.create({
  model: 'anthropic/claude-sonnet-5',
  messages: [{
    role: 'user',
    content: 'Hello world',
  }],
})

API details

Send requests to the OpenAI-compatible /v1/chat/completions endpoint.

Capabilities

Pricing

Input tokens (per 1M)$2.00
Output tokens (per 1M)$10.00
Cached input (per 1M)$0.20

Limits

Context length1,000,000 tokens
Max output128,000 tokens