Anthropic โมเดล

Claude Sonnet 4

Anthropic: Claude Sonnet 4 เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง image understanding, multimodal chat. $0.564 / 1M tokens / $2.82 / 1M tokens. 1M tokens.

AnthropicPlatform curatedCatalog
StreamingTool callingVisionLong context
ราคา input$0.564 / 1M tokens
ราคา output$2.82 / 1M tokens
ความยาว context1M tokens
เอาต์พุตสูงสุด8.2k tokens

Claude Sonnet 4 ใน NextModel คืออะไร?

Anthropic: Claude Sonnet 4 เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง image understanding, multimodal chat. $0.564 / 1M tokens / $2.82 / 1M tokens. 1M tokens.

use case ที่เหมาะ

  • image understanding
  • multimodal chat

ตัวอย่างโค้ดที่เข้ากันได้กับ OpenAI

คงรูปแบบ OpenAI SDK เดิม ชี้ base_url ไปที่ NextModel และใช้ ID จากแคตตาล็อก anthropic--claude-sonnet-4.

Python
from openai import OpenAI

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

resp = client.chat.completions.create(
    model="anthropic/claude-sonnet-4",
    messages=[{"role": "user", "content": "Hello from NextModel"}]
)

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

ทางเลือกที่คล้ายกัน

AnthropicCatalog

Claude 3 Haiku is Anthropic's fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance. See the launch announcement and benchmark results [here](https://www.anthropic.com/news/claude-3-haiku) #multimodal

$0.048 / 1M tokensInput$0.236 / 1M tokensOutput200kContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingVisionLong context
Platform curatedNextModel gateway catalog (Go origin)
View details
AnthropicCatalog

Claude 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...

$1.45 / 1M tokensInput$7.23 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVision
Platform curatedNextModel gateway catalog (Go origin)
View details
AnthropicCatalog

Claude 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...

$0.145 / 1M tokensInput$0.723 / 1M tokensOutput200kContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVision
Platform curatedNextModel gateway catalog (Go origin)
View details

FAQ

Anthropic: Claude Sonnet 4 FAQ