OpenAI-compatible
Call Claude Sonnet 4 with the standard chat completions request shape.
Anthropic · Text & reasoning · Tool use · Reasoning
Call Claude Sonnet 4 with the same key and request shape as every other model in the catalog.

WHY IT FITS
Claude Sonnet 4 is an OpenAI-compatible chat model with a 200K token context window, priced per million input and output tokens. Point any OpenAI SDK at this endpoint, send the model id with a messages array, and the response carries token usage you can reconcile against the published rate.
Call Claude Sonnet 4 with the standard chat completions request shape.
$4.0500 per million input tokens and $20.2500 per million output tokens.
200K tokens of context for large prompts and documents.
Tool use is supported for Claude Sonnet 4.
Reasoning is supported for Claude Sonnet 4.
INTEGRATION
Open the dashboard, mint a server-side API key and top up a small balance.
Call GET /v1/models to confirm anthropic/claude-sonnet-4, its live specification and the per-token rate.
POST /v1/chat/completions with the model id and your messages, using any OpenAI-compatible client.
The reply comes back in the same response (or as a stream), with token usage and the USD cost.
CALLING
# OpenAI-compatible chat completions
curl https://apimany.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-4","messages":[{"role":"user","content":"Hello!"}],"max_tokens":512}'ONLINE TEST
The request runs against this site's own /v1/chat/completions using your signed-in balance, or an API key if you are not signed in. A pasted key stays in this browser tab and is never stored; the result is charged at the quoted USD price.
Or sign in to chat with your account balance.
GOOD TO KNOW
KEEP EXPLORING