claude-sonnet-5 vs gpt-5.4

gpt-5.4 is about 38% cheaper per 1M input tokens on CaMeL Hub.

claude-sonnet-5gpt-5.4
ProviderAnthropicOpenAI
per 1M input tokens$3.00$1.875
per 1M output tokens$15.00$11.25
Context window1000000 tokens1050000 tokens
Capabilitiesstreaming, vision, function-callingstreaming, vision, function-calling

When to use which

claude-sonnet-5

Claude Sonnet 5 is Anthropic's balanced flagship: near-Opus coding and agent quality at Sonnet speed. Call it on CaMeL Hub with any OpenAI-compatible SDK β€” set base_url to https://api.camel-hub.com/v1 β€” at $3 per 1M input tokens and $15 per 1M output tokens. The Anthropic-native Messages format is supported on the same key, so Claude Code and the official Anthropic SDK work unchanged.

  • Agentic coding assistants β€” connect Cursor, Cline, or your own agent loop through the OpenAI-compatible endpoint for near-Opus code quality at Sonnet cost
  • Whole-repository or long-document analysis β€” contracts, papers, and multi-file codebases fit inside the 1M-token context window in a single request
  • Function-calling backends that translate natural-language requests into structured tool calls against internal APIs
  • Screenshot and document-image understanding β€” extract data from UI captures, scanned forms, and charts via vision input

Full details β†’

gpt-5.4

gpt-5.4 is OpenAI's flagship general-purpose model with a 1,050,000-token context window. On CaMeL Hub it costs $1.875 per 1M input tokens and $11.25 per 1M output tokens β€” call it with any OpenAI SDK by pointing base_url to https://api.camel-hub.com/v1 and setting model to "gpt-5.4".

  • Repo-scale coding agents: load a whole service's source into the 1M-token window for cross-file refactors and bug hunts
  • Long-document analysis: summarize and cross-reference contract bundles, filings, or research reports in a single request
  • Vision workflows: extract data from screenshots, dashboards, scanned invoices, and architecture diagrams
  • Tool-driven agents: multi-step function calling against internal APIs, databases, and search backends

Full details β†’

Try both with one key