Felo API PlatformFelo API Platform
Back to models

Claude Sonnet 5 API

Free API trial Limited time

Claude Sonnet 5 is a chat model by Anthropic, available through Felo API. Its context window is 1,000,000 tokens.

MODEL ID

claude-sonnet-5
Input / Output
$2 / $10/ 1M tokens
Released
Context
1M
Max output
128K
Recommended API
messages
Input
Text / Image / File
Output
Text
Claude Sonnet 5: a pelican riding a bicycle

See this model’s pelican

See what Claude Sonnet 5 created from the same prompt.

Providers

Best price
3 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$2$10$0.2
$2$0.8$10$4$0.2$0.08
$2$1.2$10$6$0.2$0.12

What $10 buys

Input
5M tokens
Output
1M tokens

Estimated from current input and output prices, before discounts.

Reasoning

Default effort
high
Enabled by default
Yes
Always enabled
No
Available effort levels
max / xhigh / high / medium / low / none

Quick Start

Drop-in code to call this model with Felo API Platform compatible APIs.

1

Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"
2

Make your first request

Use this model ID with the Felo API Platform endpoint. Optional request headers such as X-Request-Id can help troubleshooting.

claude-sonnet-5

This model is reasoning-capable. If your selected protocol and model route expose reasoning controls, preserve the returned reasoning metadata when continuing a conversation.

MessagesPOST https://openapi.felo.ai/api/v1/messages

const response = await fetch("https://openapi.felo.ai/api/v1/messages", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FELO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "claude-sonnet-5",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Using third-party SDKs

Use compatible SDKs by setting baseURL to https://openapi.felo.ai/api/v1. Use the Anthropic-compatible base URL for Claude-style clients. https://openapi.felo.ai/api.

3

Enable streaming

Add stream: true to receive responses as server-sent events.

curl -N https://openapi.felo.ai/api/v1/messages \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-5",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": true
}'

Parameters

NameTypeDefaultDescription
modelstringclaude-sonnet-5Public model ID to call.
max_tokensinteger—Maximum generated tokens.
messagesarray—Conversation messages for Chat Completions.
stop———
toolsarray—Tool calling definitions following compatible schema.
reasoning———
verbosity———
tool_choicestring or object—Controls whether a tool should be called.
response_formatobject—Request structured output when supported.
reasoning_effort———
include_reasoning———
structured_outputs———
max_completion_tokens———

Frequently asked questions

What is Claude Sonnet 5?

Claude Sonnet 5 is a chat model by Anthropic, available through Felo API. Its context window is 1,000,000 tokens.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

Related models

Claude Fable 5.2

Anthropicclaude-fable-5-2

Claude Fable 5.2 is Anthropic's Mythos-class multimodal model with a 1 million token context, built for long-horizon agentic work, coding, and research.

Complex agentic workflowsMulti-source research pipelinesLarge-codebase code generationEdge-case customer agents

Context

1M

Max output

128K

Input tokens

$8 / 1M tokens

Output tokens

$40 / 1M tokens

Claude Fable 5.2 (batch)

Anthropicclaude-fable-5.2:batch

Anthropic's most capable generally available model, built for long-horizon agentic engineering, scientific research and large-scale batch processing with a 1 million token context.

Open-ended coding projectsScientific researchQuantitative finance analysisLong-horizon agentic work

Context

1M

Max output

128K

Input tokens

$4 / 1M tokens

Output tokens

$20 / 1M tokens

Claude Haiku 5.5

Anthropicclaude-haiku-5-5

Claude Haiku 5.5 is Anthropic's smallest, fastest and cheapest Claude 5.5 model, offering a 1,000,000-token context window, image and PDF input, and an adjustable effort setting.

Live customer supportClassification requestsSummarizationDatabase queries

Context

1M

Max output

128K

Input tokens · Base rate

$0.1 / 1M tokens

Output tokens · Base rate

$0.5 / 1M tokens

Claude Sonnet 5.5

Anthropicclaude-sonnet-5-5

Claude Sonnet 5.5 is Anthropic's fast, low-cost workhorse model in the Claude 5.5 family, offering a 1,000,000-token context window, image input, and benchmark results close to Claude Opus 5.5.

Scoped agentic tasksBug fixesDocument creationPresentation and deck building

Context

1M

Max output

128K

Input tokens

$2 / 1M tokens

Output tokens

$10 / 1M tokens

Claude Opus 5.5

Anthropicclaude-opus-5-5

Anthropic's Claude Opus 5.5 tops the Artificial Analysis Intelligence Index across all five reasoning effort levels, from low through max.

Complex multi-step reasoningDeep analytical workTop-tier intelligence tasksAdjustable-effort workloads

Context

1M

Max output

128K

Input tokens

$4 / 1M tokens

Output tokens

$20 / 1M tokens

Claude Fable 5.1

Anthropicclaude-fable-5-1

Claude Fable 5.1 is Anthropic's highest-tier model, offering a 1-million-token context, 128K-token output, and state-of-the-art coding and knowledge work.

Demanding reasoning tasksLong-horizon agentic workScientific discoveryEnterprise document workflows

Context

1M

Max output

128K

Input tokens

$10 / 1M tokens

Output tokens

$50 / 1M tokens