AI Claude APIDevelopersPricing

Claude API for beginners: pricing, models and your first call

Everything you need to start building with Claude: the models, what they cost and how a first request works.

UUIUX Studio Editorial Team 5 min read
AI
Claude API for beginners: pricing, models and your first call
Getting started with the Claude API
First call
One request, one answer
Send a message to a model and read the response in your app.
MESSAGES APIStep 1
Key
Request
Response
Log
Open
Cost
Pay per token
Choose the smallest model that does the job, then cache and batch to cut costs further.
MONTHLY ESTIMATE
10m input tokens
2m output tokens
model: sonnet 5.5
Within budget
THE SHORT ANSWER

The Claude API lets developers send text, documents and images to Claude models and receive responses in their own apps. In October 2026 the main models are Haiku 5.5 ($0.10 input and $0.50 output per million tokens for prompts up to 100,000 tokens), Sonnet 5.5 ($2 and $10), Opus 5.5 ($4 and $20) and Fable 5.1 ($10 and $50). You create an API key in the Claude Console, send a request to the Messages API and pay per token used.

KEY TAKEAWAYS
  • ✓Pay per million tokens, with output costing five times input
  • ✓Haiku 5.5 for volume, Sonnet 5.5 as the default, Opus 5.5 and Fable 5.1 for the hardest work
  • ✓Prompt caching and the Batch API cut costs significantly
  • ✓Start in the Console, then use the official SDKs
  • ✓Set spend limits before you go live

What is the Claude API?

The Claude API is Anthropic’s developer interface to its models. Instead of chatting in the Claude app, your software sends a request with a prompt, and optionally documents, images or tool definitions, and receives Claude’s response. Businesses use it to add AI features to products, automate document processing, power support tools and build agents. It is also available through Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry.

Which model should you choose?

Output price per million tokens (USD)
USD per million output tokens
Haiku 5.5$0.50
Sonnet 5.5$10
Opus 5.5$20
Fable 5.1$50
Input prices: $0.10, $2, $4 and $10. Haiku 5.5 rates apply to prompts up to 100,000 tokens.
Model
Use it for
Haiku 5.5
High-volume, fast tasks: classification, extraction, routing
Sonnet 5.5
The everyday default: chat, drafting, analysis, most coding
Opus 5.5
Long-running agentic coding and complex knowledge work
Fable 5.1
The most demanding reasoning and long-horizon agent work

Prices are from Anthropic’s pricing page as summarised in October 2026 by DEV Community. Our comparison of Opus, Sonnet and Haiku and our guide to Fable and Mythos explain the trade-offs.

What is a token?

A token is a small chunk of text, often part of a word. You pay for input tokens (what you send) and output tokens (what Claude writes back). Output costs five times as much as input on current models, so asking for concise answers saves money. Long documents add input tokens on every request unless you use prompt caching.

How do you make your first call?

  1. 1
    Create an account and key
    Sign up for the Claude Console, add billing and create an API key. Keep it secret.
  2. 2
    Try the Workbench
    Test prompts in the Console before writing code.
  3. 3
    Install an SDK
    Use the official Python or TypeScript SDK, or call the HTTP endpoint directly.
  4. 4
    Send a message
    Choose a model, set a maximum number of output tokens and send a user message.
  5. 5
    Read and log the response
    Store the answer and the token usage reported with it.
  6. 6
    Set limits
    Configure spend limits and alerts in the Console.

A first request contains just three things: the model name, a maximum output length and a list of messages. Everything else, such as system instructions, tools and images, can be added later.

How do you keep costs down?

P
Pick the smallest model that works
Test Haiku 5.5 or Sonnet 5.5 before reaching for larger models.
P
Prompt caching
Reuse long, repeated context; cache reads cost a fraction of normal input.
B
Batch API
Half price for jobs that can wait for results.
S
Shorter outputs
Ask for concise formats and set sensible output limits.
50%
Discount on the Batch API for non-urgent jobs
Anthropic pricing
0.1×
Typical cache read price relative to base input
Anthropic pricing
5×
Output price relative to input on current models
Anthropic pricing
Mashreq NEO case study
Case study · Mashreq NEO Executive dashboards and an AI assistant One view of bank performance for leadership, plus an AI assistant that answers questions from internal documents.
1View of bank performance
Power BIReporting
AzureAI platform
View case study →

What else can the API do?

  • Tool use: let Claude call your functions and APIs
  • Vision: read images, charts and scanned documents
  • PDF support: send documents directly
  • Long context: up to a million tokens on current models
  • Structured output: ask for JSON that matches a schema
  • MCP: connect to tools through the Model Context Protocol

How do you estimate monthly cost?

Multiply your expected monthly input tokens by the model’s input price and your output tokens by its output price, both per million. A simple chatbot handling 10 million input tokens and 2 million output tokens a month would cost about $40 on Sonnet 5.5 and around $2 on Haiku 5.5 before caching, according to worked examples by Growthcab. Agent workloads use far more tokens per task, because each step resends context, so test with realistic sessions and use caching from the start.

Two ways to pay for Claude
ASubscription (Pro, Max, Team)
  • Flat monthly price per person
  • For people using the Claude apps
  • Includes Claude Code within usage limits
BAPI (pay as you go)
  • ✓Billed per token used
  • ✓For software you build
  • ✓Scales with usage; set spend limits

What should a first project be?

Pick a narrow, internal task where mistakes are cheap: summarising support tickets, tagging customer feedback or extracting fields from invoices. Build a small evaluation set of 20 to 50 real examples with known correct answers, and test each prompt and model against it. That habit, more than any single prompt trick, is what separates reliable AI features from demos.

What should you get right before launch?

  • Never put your API key in front-end code
  • Validate and limit user input
  • Set spend limits and monitor usage
  • Log prompts and responses with care for personal data
  • Test with realistic and awkward inputs
  • Have a fallback if the API is slow or unavailable

To compare providers, read OpenAI, Claude and Gemini APIs compared; to keep bills down, see how to cut LLM API costs.

How UIUX Studio helps

Our product engineering team builds AI features on the Claude API, from model choice and prompt design to cost controls and monitoring. If you prefer to work in a coding agent, see our Claude Code beginner’s guide.

Frequently asked questions

No. It is pay-as-you-go per token, though new accounts may receive trial credit.

Haiku 5.5, at $0.10 input and $0.50 output per million tokens for prompts up to 100,000 tokens.

No. Pro and Max plans cover the Claude apps; the API is billed separately per token.

Official SDKs exist for Python and TypeScript, and any language can call the HTTP API.

Yes. Claude models are available on Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry.

U
Written by UIUX Studio Editorial Team
Design & engineering leads, Dubai · India · Australia

For Ambitious Founders

Startup Strategy Session Discuss Your Project with Our Senior Experts

  • No Obligation
  • Expert Insights
  • Tailored Guidance