Skip to content
  • Models
  • Rankings
  • Ori
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status
  • AI Site Map

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

Claude Opus 4.7 vs Gemini 3.1 Pro Preview

Compare Claude Opus 4.7 from Anthropic and Gemini 3.1 Pro Preview from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for anthropic
Claude Opus 4.7
Favicon for google
Gemini 3.1 Pro Preview
Favicon for anthropic
Claude Opus 4.7
Favicon for google
Gemini 3.1 Pro Preview

Overview

Claude Opus 4.7
Author
Anthropic
Gemini 3.1 Pro Preview
Author
Google
Claude Opus 4.7
Context length
1Mtokens
Gemini 3.1 Pro Preview
Context length
1.05Mtokens
Claude Opus 4.7
Reasoning
Gemini 3.1 Pro Preview
Reasoning
Claude Opus 4.7
Input modalities
Gemini 3.1 Pro Preview
Input modalities
Claude Opus 4.7
Output modalities
Gemini 3.1 Pro Preview
Output modalities

Claude Opus 4.7 vs Gemini 3.1 Pro Preview: side-by-side summary

Claude Opus 4.7 and Gemini 3.1 Pro Preview are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Claude Opus 4.7, from Anthropic, has a 1,000,000-token context window and is priced at $5/M tokens input, $25/M tokens output on OpenRouter.

Gemini 3.1 Pro Preview, from Google, has a 1,048,576-token context window and is priced at $2/M tokens input, $12/M tokens output on OpenRouter.

Context window
  • Claude Opus 4.7: 1,000,000 tokens
  • Gemini 3.1 Pro Preview: 1,048,576 tokens
Price
  • Claude Opus 4.7: $5/M tokens input, $25/M tokens output
  • Gemini 3.1 Pro Preview: $2/M tokens input, $12/M tokens output
Provided by
  • Claude Opus 4.7: Anthropic
  • Gemini 3.1 Pro Preview: Google
model details, providers and pricing
model details, providers and pricing
Claude Opus 4.7
Gemini 3.1 Pro Preview

Claude Opus 4.7 vs Gemini 3.1 Pro Preview at a glance

Claude Opus 4.7 vs Gemini 3.1 Pro Preview comparison
Claude Opus 4.7Gemini 3.1 Pro Preview
Input price$5/M tokens$2/M tokens
Output price$25/M tokens$12/M tokens
Context window1,000,000 tokens1,048,576 tokens
Intelligence IndexNot available29.7
Coding Index73.668.8
Agentic Index38.68.2
Latency (p50)1.71 s94.91 s
Throughput (p50)50.0 tok/s18.0 tok/s

Sep 20, 2026

Which has the longer context window, Claude Opus 4.7 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview has the longer context window at 1,048,576 tokens, compared with 1,000,000 tokens for Claude Opus 4.7.

Which is faster, Claude Opus 4.7 or Gemini 3.1 Pro Preview?

Claude Opus 4.7 is faster on OpenRouter, generating a median 50.0 tokens per second compared with 18.0 tokens per second for Gemini 3.1 Pro Preview.

Which scores higher on coding, Claude Opus 4.7 or Gemini 3.1 Pro Preview?

Claude Opus 4.7 scores higher on coding, with an Artificial Analysis Coding Index of 73.6 compared with 68.8 for Gemini 3.1 Pro Preview.

Attribute
Benchmark data updated
Frequently asked questions