Anthropic

anthropic/claude-sonnet-5

1M संदर्भ · $0.80 / M इनपुट टोकन · $4.00 / M आउटपुट टोकन

Claude Sonnet 5 Anthropic का most agentic Sonnet model है, जिसमें coding, agents और professional work में Opus से कम price पर frontier performance है।

API Key प्राप्त करें
24H स्थिति मॉनिटर

ऐतिहासिक अपटाइम डेटा समय के साथ एकत्र होता है। वर्तमान स्थिति नवीनतम स्वास्थ्य जांच को दर्शाती है।

मूल्य निर्धारण

उपयोग के अनुसार भुगतान

कोई अग्रिम लागत नहीं, केवल उतने के लिए भुगतान करें जितना आप उपयोग करते हैं

40% of official price
इनपुट$2.00 / M$0.80 / M टोकन
आउटपुट$10.00 / M$4.00 / M टोकन
कैश किया गया इनपुट$0.20 / M$0.08 / M टोकन
कैश लेखन$2.50 / M$1.00 / M टोकन

API उपयोग

API एक्सेस गाइड

बेस URLhttps://api.ourtoken.ai/v1
API एंडपॉइंटmessages
पूरा URLhttps://api.ourtoken.ai/v1/messages
मॉडल IDclaude-sonnet-5
API Key प्राप्त करें

कोड उदाहरण

इस मॉडल के लिए OurToken API endpoint का उपयोग करें। नीचे दिए गए उदाहरण direct HTTP requests और मॉडल परिवार के लिए recommended endpoint का उपयोग करते हैं।

curl https://api.ourtoken.ai/v1/messages \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
    "max_tokens": 256
  }'

Messages API संदर्भ

OurToken के माध्यम से Claude Messages-संगत response बनाएँ। यह format messages array, max_tokens, optional system prompts, tools, और thinking settings का उपयोग करता है।

प्राधिकरण

Content-Typeapplication/json
AuthorizationBearer YOUR_API_KEY

अनुरोध सामग्री

फ़ील्डप्रकारआवश्यकविवरण
modelstringआवश्यककॉल करने के लिए Model ID।
messagesarray<object>आवश्यकmodel को भेजे गए conversation messages।
systemstring | array<object>वैकल्पिकOptional system prompt।
max_tokensintegerआवश्यकoutput tokens की अधिकतम संख्या।
temperaturenumberवैकल्पिकSampling temperature।
top_pnumberवैकल्पिकNucleus sampling parameter।
top_kintegerवैकल्पिकTop-k sampling parameter।
streambooleanवैकल्पिकक्या streaming response लौटाना है।
stop_sequencesarray<string>वैकल्पिकgeneration रोकने वाली sequences।
toolsarray<object>वैकल्पिकmodel के लिए उपलब्ध tools।
tool_choiceobjectवैकल्पिकmodel tools कैसे चुनता है, इसे नियंत्रित करता है।
thinkingobjectवैकल्पिकsupported Claude models के लिए thinking configuration।
metadataobjectवैकल्पिकOptional request metadata।

प्रतिक्रिया सामग्री

फ़ील्डप्रकारआवश्यकविवरण
idstringआवश्यकunique message identifier।
type"message"आवश्यकMessages API द्वारा लौटाया गया object type।
role"assistant"आवश्यकलौटाए गए message की role।
contentarray<object>आवश्यकmodel द्वारा लौटाए गए content blocks की array।
content[].textstringवैकल्पिकलौटाए गए content block के अंदर text।
modelstringआवश्यकवह model जिसने response बनाया।
stop_reasonstringवैकल्पिकgeneration रुकने का कारण।
usageobjectवैकल्पिकmessage के लिए token usage information।
usage.input_tokensintegerवैकल्पिकInput token count।
usage.output_tokensintegerवैकल्पिकOutput token count।
usage.cache_creation_input_tokensintegerवैकल्पिकprompt cache में लिखे गए tokens।
usage.cache_read_input_tokensintegerवैकल्पिकprompt cache से पढ़े गए tokens।

मॉडल परिचय

Anthropic claude-sonnet-5

Claude Sonnet 5 Anthropic का most agentic Sonnet model है, जिसमें coding, agents और professional work में Opus से कम price पर frontier performance है।

Claude Sonnet 5 को अब तक का most agentic Sonnet model बनने के लिए बनाया गया है, जिसमें planning, tool use, coding और multi-step reasoning में लाभ हैं जो इसे कम price पर Opus 4.8 quality के करीब लाते हैं। यह 128K तक output tokens के साथ 1M token context window support करता है, साथ ही low से x-high तक selectable effort levels के साथ adaptive thinking।

यह बेहतरीन क्यों है

  • Coding, agents और professional work के लिए Anthropic का most agentic Sonnet model।
  • Large codebases, long documents और multi-step planning के लिए 1M token context window।
  • Low से x-high तक selectable effort levels के साथ adaptive thinking।
  • Opus से कम price पर frontier coding और agentic performance।
  • Standard Anthropic price के 40% पर OurToken unified API के माध्यम से accessible।

मुख्य विशेषताएँ

  • Context Window: 1M tokens
  • Max Output: 128K tokens
  • Vision: Supported
  • Function Calling: Supported
  • Adaptive Thinking: Supported
  • Input: Text, Image, PDF
  • Output: Text

विशिष्टताएँ

ProviderAnthropic
Model TypeLarge Language Model (LLM)
ArchitectureTransformer (Frontier)
Context Window1M tokens
Max Output128K tokens
InputText, Image, PDF
OutputText
VisionSupported
Function CallingSupported
Adaptive ThinkingSupported

Developers के लिए Claude Sonnet 5 API Features

Clear pricing, agentic coding workflows, Anthropic routing और long-context production development के लिए OurToken पर Claude Sonnet 5 API का उपयोग करें।

API Access

Familiar integration path बनाए रखते हुए OurToken के unified endpoint के माध्यम से Claude Sonnet 5 API call करें। Teams हर evaluation environment के लिए अलग Anthropic routing code maintain किए बिना provider behavior, token costs और production readiness compare कर सकती हैं।

Official Price Ratio

Current project data के आधार पर OurToken Claude Sonnet 5 को $0.80 input और $4.00 output per million tokens पर list करता है। इससे teams coding, agent या document workloads scale करने से पहले official API pricing का 40% पाती हैं।

Agentic Coding

Multi-file edits, bug investigation, test repair, migration planning, code review और architecture refactors के लिए Claude Sonnet 5 का उपयोग करें। claude sonnet 5 api खोजने वाले developers real repositories पर इसके tool use और long-context behavior evaluate कर सकते हैं।

Long Documents

Contracts, research reports, technical specifications और knowledge-base restructuring के लिए 1M token context window का लाभ उठाएं। जब किसी task को वास्तव में broader context चाहिए हो, तो Claude Sonnet 5 API chunking loss घटाता है।

Anthropic Workflows

जब आपके product को Sonnet pricing पर Opus-adjacent reasoning चाहिए हो, तब Anthropic Sonnet 5 requests को OurToken के माध्यम से route करें। एक API surface में Claude Sonnet 5 को Claude Opus 5 और Claude Opus 4.8 के विरुद्ध compare करें।

Structured Output

Document understanding, chart analysis और multimodal assistants के लिए text, image और PDF inputs भेजें। Claude Sonnet 5 API predictable downstream automation paths के लिए function calling और structured output patterns support करता है।

OurToken पर Claude Sonnet 5 API का उपयोग कैसे करें

API key बनाएं, Claude Sonnet 5 API चुनें, pricing compare करें, फिर agentic coding और long-context workflows test करें।

API Key Generate करें

OurToken API key बनाएं और उसे secure server-side environment variable में store करें। इससे आपका backend browser या client-side code में secrets expose किए बिना Claude Sonnet 5 API calls के लिए stable credential पाता है।

01

Model ID Select करें

Chat completions requests भेजते समय model value के रूप में claude-sonnet-5 का उपयोग करें। Claude Sonnet 5 API access, Anthropic providers और environments में production routing options compare कर रहे developers के लिए model ID स्पष्ट रूप से document करें।

02

Unified API Call करें

अपने OpenAI-compatible client के साथ OurToken के unified API endpoint के माध्यम से requests भेजें। यह Claude Sonnet 5 Anthropic access, pricing review और model comparison को अलग provider-specific code paths के बजाय एक integration में रखता है।

03

Pricing Compare करें

Traffic scale करने से पहले OurToken price को official API pricing और expected token volume के विरुद्ध compare करें। Real production workloads के लिए Claude Sonnet 5 API cost estimate करने हेतु current $0.80 input और $4.00 output rates का उपयोग करें।

04

Agentic Coding Test करें

Multi-file edits, bug investigation, test repair और migration planning जैसे representative Claude Sonnet 5 tasks run करें। Files, failing tests, coding conventions और acceptance criteria शामिल करें ताकि model practical constraints पर reason कर सके।

05

Production Fit Validate करें

Production route चुनने से पहले accuracy, latency, token usage, structured output behavior और tool-call reliability measure करें। Track करें कि practice में Sonnet 5 workflows smaller या cheaper models की तुलना में review cycles घटाते हैं या नहीं।

06

Claude Sonnet 5 FAQ

Claude Sonnet 5 API pricing, agentic coding workflows, Anthropic access, context limits और Claude 3.5 Sonnet के साथ comparison के बारे में उत्तर।

01

Claude Sonnet 5 API क्या है?

Claude Sonnet 5 API applications में Anthropic के Sonnet 5 model का उपयोग करने का API route है, जहां agentic coding, tool use, image input, function calling और structured output की जरूरत होती है। OurToken पर developers model access, current pricing और production evaluation guidance एक जगह review कर सकते हैं।
02

OurToken पर Claude Sonnet 5 pricing की cost कितनी है?

OurToken पर Claude Sonnet 5 API pricing current project data का पालन करती है: $0.80 per million input tokens और $4.00 per million output tokens। Page original pricing $2.00 और $10.00 के रूप में दिखाता है, जिससे teams workloads carefully plan करने के लिए official API pricing का 40% पाती हैं।
03

Claude Sonnet 5, Claude 3.5 Sonnet से कैसे compare करता है?

Claude Sonnet 5, Claude 3.5 Sonnet का substantially अधिक agentic successor है, जिसमें coding, agents और professional work में frontier performance है। Claude Sonnet 5 को claude 3.5 sonnet के विरुद्ध compare करने वाली teams को long-context tool use, multi-step reasoning और current pricing पर focus करना चाहिए।
04

क्या Claude Sonnet 5 API agentic coding workflows के लिए उपयोगी है?

हां। Claude Sonnet 5 planning, tool use, coding और multi-step reasoning के लिए बनाया गया है। Developers इसे agentic pipelines में multi-file edits, bug investigation, test repair, migration planning और code review के लिए use करते हैं जो long tool-call chains में task state preserve करते हैं।
05

Claude Sonnet 5 यहां कौन सा context window उपयोग करता है?

यह OurToken page project के current Claude Sonnet 5 data का उपयोग करता है: 1M token context window और 128K तक output tokens। कुछ competitor pages अलग limits describe कर सकते हैं, इसलिए अपनी integration plan करते और production के लिए prompt size estimate करते समय current project data का उपयोग करें।
06

मुझे Claude Sonnet 5 API providers कैसे evaluate करने चाहिए?

Availability, latency, reliability, price, image input, structured output और tool calling के आधार पर Claude Sonnet 5 Anthropic access compare करें। OurToken teams को एक unified API के माध्यम से Anthropic Sonnet 5 को अन्य supported models के साथ test करने में मदद करता है, लेकिन production decisions पहले अपने prompts और traffic patterns से करें।