Haimaker.ai Logo
Anthropic logo

Claude Sonnet 4

anthropic/claude-sonnet-4
Chat
Anthropic|
Function CallingVisionReasoning
Context Window
1M
tokens
Max Output
64K
tokens
Input Price
$3.00
/1M tokens
Output Price
$15.00
/1M tokens

Overview

Anthropic's Claude Sonnet 4, balancing intelligence and speed for coding, analysis, and enterprise tasks.

Features & Capabilities

Modechat
Context Window1M tokens
Max Output64K tokens
Function CallingSupported
VisionSupported
ReasoningSupported
Web Search-
Url Context-

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="anthropic/claude-sonnet-4",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Use Claude Sonnet 4 with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

More from Anthropic