# Claude Sonnet Latest — Use via Hanzo AI API

> This model always redirects to the latest model in the Claude Sonnet family... Call via Hanzo's OpenAI-compatible API. Context: 1M.

[Models](https://hanzo.ai/models)/[Anthropic](https://hanzo.ai/models/anthropic)/claude-sonnet-latest

Anthropic

# Claude Sonnet Latest

This model always redirects to the latest model in the Claude Sonnet family.

[Get API key](https://platform.hanzo.ai/api-keys)[Try in Chat](https://hanzo.ai/chat)

POST /v1/chat/completionsexample

{ "model": "~anthropic/claude-sonnet-latest",
"messages": [{ "role": "user", "content": "Who are you?" }] }

Claude Sonnet LatestThis model always redirects to the latest model in the Claude Sonnet family.

1Mtext

## Specifications

Context Window1M

Modalitiestext

Price…

Model ID~anthropic/claude-sonnet-latest

## Quick start

[Get an API key →](https://platform.hanzo.ai/api-keys)

TypeScript

Python

cURL

Go

TypeScript

```
import OpenAI from 'openai' const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: 'https://api.hanzo.ai/v1' }) const response = await client.chat.completions.create({ model: '~anthropic/claude-sonnet-latest', messages: [{ role: 'user', content: 'Hello!' }] }) console.log(response.choices[0].message.content)
```

Python

```
from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="~anthropic/claude-sonnet-latest", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
```

cURL

```
curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d '{ "model": "~anthropic/claude-sonnet-latest", "messages": [{"role": "user", "content": "Hello!"}] }'
```

Go

```
package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "~anthropic/claude-sonnet-latest", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) }
```

…

## More from Anthropic

[Claude Fable 51MClaude Fable 5 is a Mythos-class model from Anthropic, built for autonomous knowledge work and coding. It supports text, image, and file inputs with text output, with reasoning support and...](https://hanzo.ai/models/anthropic/claude-fable-5)

[Claude Fable 5.11MClaude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and knowledge work: long code refactors, front-end and visual...](https://hanzo.ai/models/anthropic/claude-fable-5.1)

[Claude Fable 5.1 (batch)1MClaude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and knowledge work: long code refactors, front-end and visual...](https://hanzo.ai/models/anthropic/claude-fable-5.1:batch)

[Claude Haiku 4.5200KClaude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4’s performance...](https://hanzo.ai/models/anthropic/claude-haiku-4.5)

[Claude Haiku 5.51MClaude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, subagents, and browser use. It succeeds Claude Haiku 4.5 with stronger coding, computer use, and...](https://hanzo.ai/models/anthropic/claude-haiku-5.5)

[Claude Haiku 5.5 (batch)1MClaude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, subagents, and browser use. It succeeds Claude Haiku 4.5 with stronger coding, computer use, and...](https://hanzo.ai/models/anthropic/claude-haiku-5.5:batch)

[View all Anthropic models →](https://hanzo.ai/models/anthropic)

## Use Claude Sonnet Latest via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get an API key](https://platform.hanzo.ai/api-keys)[Browse All Models](https://hanzo.ai/models)
