Back to Comparison Hub/Claude Sonnet 4.5 Pricing
Text to Text

Claude Sonnet 4.5 API Pricing

Claude Sonnet 4.5 is Anthropic's state-of-the-art model offering high intelligence, speed, and efficiency for code generation, writing, and logical analysis. Supports text and image inputs. Token-based pricing: $1.80/M input tokens, $9.00/M output tokens. Two endpoints: standard async (/claude-sonnet-4-5) and live streaming (/claude-sonnet-4-5/stream) via SSE.

Savings Alert40% ↓Cheaper than Anthropic (official)

About Claude Sonnet 4.5

Claude Sonnet 4.5 is Anthropic's state-of-the-art model offering high intelligence, speed, and efficiency for code generation, writing, and logical analysis. It strikes the perfect balance between reasoning depth and execution speed. Pricing: $1.80 per million input tokens and $9.00 per million output tokens.

Interactive Savings Calculator

Estimate monthly API spend and compare absolute developer savings.

Monthly API Generations10,000 runs
50025,00050,00075,000100,000+
MuAPI Monthly Cost

$18000.00

$1.80/M input tokens, $9.00/M output tokens
Anthropic (official) Cost

$30000.00

~$3.00/M input tokens, ~$15.00/M output tokens
Estimated Monthly Savings$12000.00
Annual Savings$144000.00

Detailed Pricing Breakdown

ProviderEstimated RateNotes
muapiapp$1.80/M input tokens, $9.00/M output tokensToken-based billing. Minimum $0.00035 per call. ~60% of official Anthropic pricing.
Anthropic (official)~$3.00/M input tokens, ~$15.00/M output tokensOfficial pricing via api.anthropic.com.
Fal.aiNot availableClaude Sonnet 4.5 is not available on Fal.ai.

Developer Integration Snippets

1import requests 2import time 3import json 4 5api_key = "YOUR_API_KEY" 6url = "https://api.muapi.ai/workflow/run/claude-sonnet-4-5" 7 8def poll_for_result(run_id): 9 url = f"https://api.muapi.ai/workflow/run/{run_id}/api-outputs" 10 headers = { 11 "Content-Type": "application/json", 12 "x-api-key": f"{api_key}", 13 } 14 while True: 15 response = requests.get(url, headers=headers) 16 result = response.json() 17 18 if result['status'] == 'completed': 19 return json.loads(result['outputs']) 20 21 if result['status'] == 'failed': 22 raise Exception(result.get('error', 'Generation failed')) 23 24 time.sleep(5) 25 26data = { 27 "schemas": { 28 "input_data": { 29 "x-order-properties": [ 30 "prompt", 31 "image_url", 32 "system_prompt" 33 ], 34 "type": "object", 35 "properties": { 36 "prompt": { 37 "type": "string", 38 "title": "Prompt", 39 "name": "prompt", 40 "description": "The user message or instruction.", 41 "examples": [ 42 "Review this code and suggest improvements for performance and readability." 43 ] 44 }, 45 "image_url": { 46 "type": "string", 47 "title": "Image URL", 48 "name": "image_url", 49 "description": "Optional image URL for multimodal requests.", 50 "field": "image", 51 "examples": [] 52 }, 53 "system_prompt": { 54 "type": "string", 55 "title": "System Prompt", 56 "name": "system_prompt", 57 "description": "Optional system-level instruction to guide model behavior.", 58 "examples": [ 59 "You are an expert software architect." 60 ] 61 } 62 }, 63 "title": "Text", 64 "required": [ 65 "prompt" 66 ], 67 "endpoint_url": "claude-sonnet-4-5" 68 }, 69 "output_data": { 70 "type": "object", 71 "properties": { 72 "text": { 73 "type": "string", 74 "title": "Text", 75 "description": "Generated text response.", 76 "examples": [ 77 "Here is a response..." 78 ] 79 } 80 }, 81 "title": "ClaudeSonnet45Output", 82 "required": [ 83 "text" 84 ] 85 } 86 } 87} 88 89headers = { 90 "Content-Type": "application/json", 91 "x-api-key": f"{api_key}", 92} 93 94response = requests.post(url, json=data, headers=headers) 95 96result = response.json() 97print("Queued:", result) 98 99outputs = poll_for_result(result["run_id"]) 100print("Completed:", outputs) 101

Model FAQ

Ready to scale your production?

Get instant access to developer keys. Integrate high-speed dynamic models in minutes with our robust SDKs.