Claude Sonnet 5: AI Large Language Models

Generate text and analyze images with Claude Sonnet 5. High-performance reasoning, coding, and workflow automation. Try free, pay per generation.

📝

Overview

About this model

Claude Sonnet 5 is Anthropic's flagship balanced model, delivering state-of-the-art reasoning, expert-level coding assistance, and advanced multimodal image-plus-text analysis. Built with an adaptive thinking engine and a 1-million-token context window, it excels at complex logic, agentic automation, and massive documentation workflows. Experience elite performance at a fraction of the cost: standard async (/claude-sonnet-5) and streaming (/claude-sonnet-5/stream) endpoints are billed per token, saving you up to 40% compared to typical enterprise rates.

1Software Engineering: Write, debug, explain, and refactor code across large file contexts.
2Data Extraction: Parse unstructured diagrams, screenshots, PDFs, and tables into clean JSON.
3Agentic Workflows: Power autonomous tools and multi-step reasoning loops with reliable tool calling.
4Prose & Copywriting: Generate essays, marketing materials, and long-form documents with style.
💰

Pricing & Value

Cost analysis

muapiapp$3.00/M input tokens, $15.00/M output tokens

Token-based billing. Minimum $0.0004 per call. Up to 40% cheaper than direct enterprise subscriptions.

Anthropic (official)$3.00/M input tokens, $15.00/M output tokens

Standard retail pricing tier.

Fal.aiNot available

Claude Sonnet 5 is not hosted on Fal.ai.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

The user message or instruction.

Default ValueDraft a high-quality article about agentic coding workflows.
Image URLstring

Optional image URL for multimodal requests.

Default Valueundefined
System Promptstring

Optional system-level instruction to guide model behavior.

Default ValueYou are a professional copywriter.
📖

Implementation Guide

Developer documentation

Claude Sonnet 5 Integration Guide

Submit text and multimodal prompts using standard async or real-time streaming Server-Sent Events (SSE).

1. Standard (Async) Endpoint

POST /api/v1/claude-sonnet-5

Returns a request_id immediately. Poll /api/v1/predictions/{id}/result for completion status and output.

curl -X POST https://muapi.ai/api/claude-sonnet-5 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Optimize this Python function for memory usage.",
    "system_prompt": "You are a senior compiler engineer."
  }'

2. Streaming (SSE) Endpoint

POST /api/v1/claude-sonnet-5/stream

Returns a chunked Content-Type: text/event-stream stream. SSE deltas match the format data: {"choices":[{"delta":{"content":"..."}}]}, ending with data: [DONE].

Common Questions

Frequently asked

What is the token context window of Claude Sonnet 5?

Claude Sonnet 5 supports a context window of up to 1 million input tokens and supports up to 8,192 output tokens per call.

Does Claude Sonnet 5 support image inputs?

Yes, Claude Sonnet 5 is a multimodal model. You can supply an optional image_url along with your prompt to ask questions about diagrams, document layout, screenshots, and visual assets.

How is the pricing calculated for Claude Sonnet 5 on Muapi?

Billing is token-based: input tokens cost $3.00 per million, and output tokens cost $15.00 per million. The minimum cost per request is $0.0004. Credits are automatically deducted from your account wallet balance once the token count is returned.

What is the difference between standard and streaming routes?

The standard route /api/v1/claude-sonnet-5 runs asynchronously and is ideal for backend tasks, scheduling, and agent scripts. The streaming route /api/v1/claude-sonnet-5/stream sends Server-Sent Events (SSE) in real-time, making it best for chat interfaces and interactive writing applications.

Does this model support system prompts?

Yes. You can optionally include a system_prompt parameter in the request payload to instruct the model on role, tone, restrictions, and format instructions prior to processing the main prompt.