Compare
Anthropic Claude vs Gemini 3.1 Pro Preview Custom Tools
This page is context-first: how much text each model can take in one request. Full specs adds capabilities and limits; the pricing matrix below is only about $/million tokens from hosts that list both models.
Model
Gemini 3.1 Pro Preview Custom Tools
Context window
1.0M
1,048,576 tokens · ~786K words
Context window · side by side
Bar length is relative to the larger of the two windows (100% = max of this pair). This is not pricing.
Gemini 3.1 Pro Preview Custom Tools has about 10.5× the context window of the other in this pair.
Gemini 3.1 Pro Preview Custom Tools has 948% more context capacity (1048K vs 100K tokens). Gemini 3.1 Pro Preview Custom Tools is 75% cheaper on input.
Quick verdicts
Short takeaways — validate with your own workloads.
Long document processing
Use Gemini 3.1 Pro Preview Custom Tools. Its 1048K context fits entire documents without chunking (vs 100K).
RAG / high-volume retrieval
Use Gemini 3.1 Pro Preview Custom Tools. Input tokens are 75% cheaper — critical when sending large retrieved contexts.
Long output (reports, code files)
Use Gemini 3.1 Pro Preview Custom Tools. Its 65K max output lets you generate complete artifacts in one request.
Full specs
Context, output, capabilities, and dates. Green highlights the favorable value where we compute a winner.
| Spec | Anthropic Claude | Gemini 3.1 Pro Preview Custom Tools |
|---|---|---|
| Context window | 100,000 tokens (100K) | 1,048,576 tokens (1048K) |
| Max output tokens | 8,191 tokens (8K) | 65,536 tokens (65K) |
| Speed tier | Balanced | Fast |
| Vision | No | Yes |
| Function calling | No | Yes |
| Extended thinking | No | Yes |
| Prompt caching | No | Yes |
| Batch API | Yes | No |
| Release date | N/A | Feb 2026 |
Pricing matrix
Dollar rates only: hosts that list both models, per 1M tokens. For how much text fits, use the context section above — not this table.
| Provider | Anthropic Claude in | Anthropic Claude out | Gemini 3.1 Pro Preview Custom Tools in | Gemini 3.1 Pro Preview Custom Tools out |
|---|---|---|---|---|
| Aws Bedrock | $8.00/M | $24.00/M | — | — |
| — | — | $2.00/M | $12.00/M | |
| Google Vertex | — | — | $2.00/M | $12.00/M |
Frequently asked questions
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model