Anthropic

anthropic/claude-sonnet-4-6

200K context · $1.20 / M input tokens · $6.00 / M output tokens

Claude Sonnet 4.6 Anthropic का balanced frontier model है, जो Opus से कम cost पर strong reasoning और coding performance प्रदान करता है, high-volume production workloads के लिए ideal।

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

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

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

40% of official price
Input$3.00 / M$1.20 / M Tokens
Output$15.00 / M$6.00 / M Tokens

API उपयोग

API Access Guide

Base URLhttps://api.ourtoken.ai/v1
API Endpointmessages
Full URLhttps://api.ourtoken.ai/v1/messages
Model IDclaude-sonnet-4-6
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-4-6",
    "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 का उपयोग करता है।

Authorization

Content-Typeapplication/json
AuthorizationBearer YOUR_API_KEY

Request Body

फ़ील्डप्रकारआवश्यकविवरण
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।

Response Body

फ़ील्डप्रकारआवश्यकविवरण
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-4-6

Claude Sonnet 4.6 Anthropic का balanced frontier model है, जो Opus से कम cost पर strong reasoning और coding performance प्रदान करता है, high-volume production workloads के लिए ideal।

Claude Sonnet 4.6 200K token context window के साथ strong reasoning, coding और analysis capabilities देता है, quality at scale चाहने वाले production workloads के लिए optimized। $1.20 input / $6.00 output per million tokens (official price का 40%) पर, यह high-volume applications चलाने वाली teams के लिए सबसे cost-effective Claude 4 series model है।

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

  • Claude Opus 4.6/4.7 से काफी कम price पर strong reasoning और coding।
  • Long-form generation के लिए 64K तक output tokens के साथ 200K token context window।
  • Document understanding और multimodal workflows के लिए vision inputs support करता है।
  • Consistent output quality के साथ high-volume production use cases के लिए optimized।
  • Standard Anthropic price के 40% पर OurToken unified API के माध्यम से accessible।

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

  • Context Window: 200000 tokens
  • Max Output: 64000 tokens
  • Vision: Supported
  • Function Calling: Supported
  • Input: Text, Image
  • Output: Text

विशिष्टताएँ

ProviderAnthropic
Model TypeLarge Language Model (LLM)
ArchitectureTransformer (Frontier)
Context Window200000 tokens
Max Output64000 tokens
InputText, Image
OutputText
VisionSupported
Function CallingSupported

Developers के लिए Claude Sonnet 4.6 API Features

Strong reasoning, Claude Sonnet 4.6 pricing clarity, long output, coding workflows और production-scale access के लिए OurToken पर Claude Sonnet 4.6 API का उपयोग करें।

Strong Reasoning

Consistent production quality की जरूरत वाले complex analysis, planning और multi-step reasoning के लिए Claude Sonnet 4.6 API का उपयोग करें। Claude Sonnet 4.6 evaluate कर रही teams इसे अपना default balanced Anthropic model चुनने से पहले high-volume tasks पर test कर सकती हैं।

Production Coding

Claude Sonnet 4.6 को code generation, debugging, refactoring और customer-facing engineering pipelines पर apply करें। यह strong throughput वाला practical coding model खोज रही teams के लिए claude sonnet 4.6 api search intent को भी serve करता है।

Long Output

Detailed reports, long code files, extended responses और workflow steps के लिए 64K output window का उपयोग करें जिन्हें typical models से अधिक room चाहिए। Claude Sonnet 4.6 API उन tasks के लिए well suited है जिन्हें one pass में finish होना चाहिए।

Vision and Multimodal Input

Document understanding, screenshot analysis और multimodal product experiences के लिए text और image inputs भेजें। Claude Sonnet 4.6 API user-facing workflows handle कर सकता है जो text reasoning को visual context के साथ जोड़ते हैं।

Cost Efficiency

OurToken पर $1.20 input और $6.00 output per million tokens पर, Claude Sonnet 4.6 teams को cost और quality का practical balance देता है। इससे claude sonnet 4.6 pricing और claude sonnet 4.6 price comparisons evaluate करना आसान होता है।

Unified Anthropic API Access

Supported providers के लिए उपयोग होने वाले उसी OurToken endpoint के माध्यम से Claude Sonnet 4.6 API requests route करें। anthropic 4.6 api access खोजने वाले developers integration behavior, price और production quality को एक जगह compare कर सकते हैं।

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

API key बनाएं, Claude Sonnet 4.6 API चुनें, pricing compare करें, फिर coding, long output, structured output और production quality test करें।

API Key Generate करें

OurToken API key बनाएं और उसे secure server-side environment variable में store करें। इससे आपका backend client-side code में credentials expose किए बिना Claude Sonnet 4.6 API call करने का stable तरीका पाता है।

01

Model ID Select करें

Chat completions requests भेजते समय model value के रूप में claude-sonnet-4-6 का उपयोग करें। Claude Sonnet 4.6, Claude Sonnet 4.6 API या anthropic 4.6 api access खोजने वाले developers के लिए अपनी documentation clear रखें।

02

Pricing Compare करें

Production rollout से पहले Claude Sonnet 4.6 pricing को expected request volume, prompt size और output length के विरुद्ध compare करें। Coding, document और automation costs estimate करने के लिए displayed Claude Sonnet 4.6 price का उपयोग करें।

03

Context और Output उपयोग करें

Relevant documents, code और task constraints provide करें, फिर detailed reports, long code generation और extended responses के लिए 64K output limit का लाभ लें। Claude Sonnet 4.6 API तब अच्छा काम करता है जब prompt में पर्याप्त structure हो।

04

Tools Connect करें

केवल वही tools expose करें जिनकी आपके workflow को वास्तव में जरूरत है और बताएं कि हर tool कब उपयोग होना चाहिए। Claude Sonnet 4.6 API separate integration path के बिना tool-heavy workflows support कर सकता है।

05

Opus 4.6 से Compare करें

सही quality-cost tradeoff खोजने के लिए अपने hardest tasks पर Claude Sonnet 4.6 vs Opus 4.6 benchmark करें। इससे sonnet 4.6 vs opus 4.6 searches का practical production guidance के साथ उत्तर देने में मदद मिलती है।

06

Claude Sonnet 4.6 API FAQ

Claude Sonnet 4.6 API access, Claude Sonnet 4.6 pricing, long output, Anthropic 4.6 API usage और production workflows के बारे में उत्तर।

01

Claude Sonnet 4.6 API क्या है?

Claude Sonnet 4.6 API applications में Anthropic के Claude Sonnet 4.6 model का उपयोग करने का API route है, जहां strong reasoning, coding support, image input, function calling और structured output की जरूरत होती है। OurToken पर teams access, pricing और production behavior को साथ में evaluate कर सकती हैं।
02

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

OurToken पर Claude Sonnet 4.6 pricing current project data का पालन करती है: $1.20 per million input tokens और $6.00 per million output tokens, original pricing $3.00 और $15.00 के रूप में दिखाई गई है। Scale करने से पहले spend estimate करने के लिए Claude Sonnet 4.6 price का उपयोग करें।
03

क्या Claude Sonnet 4.6 API long output workflows के लिए उपयोगी है?

हां। Claude Sonnet 4.6 API 64K तक output tokens support करता है, जिससे यह detailed reports, long code generation और extended responses के लिए उपयोगी होता है। यही एक कारण है कि teams claude sonnet 4.6 pricing की तुलना Opus से करती हैं।
04

मैं OurToken पर Anthropic 4.6 API access कैसे करूं?

OurToken API key बनाएं, unified endpoint का उपयोग करें, और model value के रूप में claude-sonnet-4-6 भेजें। इससे developers को anthropic 4.6 api workflow मिलता है, जबकि provider access, pricing और production testing एक जगह रहते हैं।
05

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

यह OurToken page project के current Claude Sonnet 4.6 data का उपयोग करता है: 200K token context window और 64K तक output tokens। अपनी integration plan करते समय किसी competitor page के बजाय current project data का उपयोग करें।
06

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

Claude Sonnet 4.6 API availability, latency, reliability, price, structured output support, vision behavior और tool calling के आधार पर providers compare करें। Production के लिए, अपने prompts test करें क्योंकि Anthropic 4.6 API performance workload और routing path के अनुसार vary कर सकती है।