- anthropic/claude-sonnet-4-6
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।
मूल्य निर्धारण
उपयोग के अनुसार भुगतान
कोई अग्रिम लागत नहीं, केवल उतने के लिए भुगतान करें जितना आप उपयोग करते हैं
API उपयोग
API Access Guide
कोड उदाहरण
इस मॉडल के लिए 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-Type | application/json |
| Authorization | Bearer YOUR_API_KEY |
Request Body
| फ़ील्ड | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| model | string | आवश्यक | कॉल करने के लिए Model ID। |
| messages | array<object> | आवश्यक | model को भेजे गए conversation messages। |
| system | string | array<object> | वैकल्पिक | Optional system prompt। |
| max_tokens | integer | आवश्यक | output tokens की अधिकतम संख्या। |
| temperature | number | वैकल्पिक | Sampling temperature। |
| top_p | number | वैकल्पिक | Nucleus sampling parameter। |
| top_k | integer | वैकल्पिक | Top-k sampling parameter। |
| stream | boolean | वैकल्पिक | क्या streaming response लौटाना है। |
| stop_sequences | array<string> | वैकल्पिक | generation रोकने वाली sequences। |
| tools | array<object> | वैकल्पिक | model के लिए उपलब्ध tools। |
| tool_choice | object | वैकल्पिक | model tools कैसे चुनता है, इसे नियंत्रित करता है। |
| thinking | object | वैकल्पिक | supported Claude models के लिए thinking configuration। |
| metadata | object | वैकल्पिक | Optional request metadata। |
Response Body
| फ़ील्ड | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| id | string | आवश्यक | unique message identifier। |
| type | "message" | आवश्यक | Messages API द्वारा लौटाया गया object type। |
| role | "assistant" | आवश्यक | लौटाए गए message की role। |
| content | array<object> | आवश्यक | model द्वारा लौटाए गए content blocks की array। |
| content[].text | string | वैकल्पिक | लौटाए गए content block के अंदर text। |
| model | string | आवश्यक | वह model जिसने response बनाया। |
| stop_reason | string | वैकल्पिक | generation रुकने का कारण। |
| usage | object | वैकल्पिक | message के लिए token usage information। |
| usage.input_tokens | integer | वैकल्पिक | Input token count। |
| usage.output_tokens | integer | वैकल्पिक | Output token count। |
| usage.cache_creation_input_tokens | integer | वैकल्पिक | prompt cache में लिखे गए tokens। |
| usage.cache_read_input_tokens | integer | वैकल्पिक | 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
विशिष्टताएँ
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 तरीका पाता है।
01Model 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 रखें।
02Pricing 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 का उपयोग करें।
03Context और Output उपयोग करें
Relevant documents, code और task constraints provide करें, फिर detailed reports, long code generation और extended responses के लिए 64K output limit का लाभ लें। Claude Sonnet 4.6 API तब अच्छा काम करता है जब prompt में पर्याप्त structure हो।
04Tools Connect करें
केवल वही tools expose करें जिनकी आपके workflow को वास्तव में जरूरत है और बताएं कि हर tool कब उपयोग होना चाहिए। Claude Sonnet 4.6 API separate integration path के बिना tool-heavy workflows support कर सकता है।
05Opus 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 के साथ उत्तर देने में मदद मिलती है।
06Claude 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 के बारे में उत्तर।