claude-sonnet-4-6 vs gemini-3.1-pro

gemini-3.1-pro is about 11% cheaper per 1M input tokens on CaMeL Hub.

claude-sonnet-4-6gemini-3.1-pro
ProviderAnthropicGoogle
per 1M input tokens$2.25$2.00
per 1M output tokens$11.25$12.00
Context window1000000 tokens1048576 tokens
Capabilitiesstreaming, vision, function-callingstreaming, vision, reasoning, function-calling, web-search

When to use which

claude-sonnet-4-6

Claude Sonnet 4.6 is Anthropic's fast, 1M-token-context Sonnet-tier model for coding, agents, and vision. Call it on CaMeL Hub via the OpenAI-compatible API (base_url https://api.camel-hub.com/v1, model claude-sonnet-4-6) at $2.25 per 1M input tokens and $11.25 per 1M output tokens — streaming, function calling, and image input all work out of the box.

  • Whole-repo code review and refactoring assistants — load a mid-sized codebase directly into the 1M-token context instead of building a chunking pipeline
  • Long-document analysis: contracts, financial filings, technical specs, or discovery material processed in a single request with citations back to the source
  • Agentic workflows with function calling — customer-support triage, data-extraction pipelines, and multi-step tool loops where Opus-tier pricing would be overkill
  • Vision tasks such as reading screenshots, dashboards, scanned forms, and charts, then returning structured JSON via tool calls

Full details →

gemini-3.1-pro

Gemini 3.1 Pro is Google's flagship reasoning model with a 1M-token context window, available on CaMeL Hub at $2.00 per 1M input tokens and $12.00 per 1M output tokens through one OpenAI-compatible endpoint — set base_url to https://api.camel-hub.com/v1 and call it with the SDK you already use. Prompts longer than 200K tokens bill at the long-context tier of $4.00 in / $18.00 out per 1M.

  • Whole-repository code review and refactor planning — load an entire codebase into the 1M-token window and ask for cross-file analysis
  • Agentic coding assistants that chain function calls: run tests, read files, apply patches in a loop
  • Contract and compliance review across complete document sets (hundreds of pages in one request)
  • Multimodal analysis of screenshots, charts, and UI mockups combined with text instructions

Full details →

Try both with one key