Spiral gives your agent every tool with one account. Browse the tools →

Codestral 2508 vs Gemini 3.1 Pro Preview Custom Tools (Comparative Analysis)

Loading comparison form...
Want to try out these models side by side?Sign up for Spiral

Overview

Codestral 2508 was released 6 months before Gemini 3.1 Pro Preview Custom Tools.
Codestral 2508Codestral 2508
Gemini 3.1 Pro Preview Custom ToolsGemini 3.1 Pro Preview Custom Tools
Model Provider
The organization behind this AI's development
Mistral logoMistral
Google logoGoogle
Input Context Window
Maximum input tokens this model can process at once
256K
tokens
1M
tokens
Output Token Limit
Maximum output tokens this model can generate at once
204.8K
tokens
65.5K
tokens
Release Date
When this model first became publicly available
August 1st, 2025
February 25th, 2026
Knowledge Cutoff
Latest training-data date reported by the provider
March 31, 2025
Not reported

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Codestral 2508
Gemini 3.1 Pro Preview Custom Tools
Input Types
Supported input formats
📝Text📁File
📝Text🎵Audio🖼️Image🎬Video📁File
Reasoning Controls
Defaults and configurable reasoning effort
Not reported
Always enabledEffort: High, Medium, LowDefault: Medium
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
MistralGemini
Key Features
Advanced capabilities
✓Function Calling✓Structured OutputReasoning ModeContent Moderation
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation

Pricing

Codestral 2508 is roughly 0.1x less expensive compared to Gemini 3.1 Pro Preview Custom Tools for input tokens and roughly 0.07x less expensive for output tokens.
Codestral 2508Codestral 2508
Gemini 3.1 Pro Preview Custom ToolsGemini 3.1 Pro Preview Custom Tools
Short Context Pricing
Base rates before a long-context threshold applies
Input Token Cost
Cost per million input tokens
$0.30
per million tokens
$2.00
per million tokens
Output Token Cost
Cost per million output tokens
$0.90
per million tokens
$12.00
per million tokens
Web Search Cost
Additional cost for each web search operation
Not specified
$0.014
per search
Cache Read Cost
Cost to reuse cached input tokens
$0.03
per million tokens
$0.20
per million tokens
Cache Write Cost
Cost to write input tokens to the cache
Not specified
$0.38
per million tokens
Reasoning Token Cost
Cost for internal reasoning tokens
Not specified
$12.00
per million tokens
Image Input Cost
Additional cost for each image input
Not specified
$0.000002
per image
Audio Input Cost
Additional cost for audio input
Not specified
$0.000002
per unit
Audio Cache Cost
Cost to reuse cached audio input tokens
Not specified
$0.20
per million tokens
Long Context Pricing
Rates for prompts with 200,000 or more tokens
Input Token Cost
Long-context input cost per million tokens
Not specified
$4.00
per million tokens
Output Token Cost
Long-context output cost per million tokens
Not specified
$18.00
per million tokens
Cache Read Cost
Long-context cache read cost per million tokens
Not specified
$0.40
per million tokens

Benchmarks

Compare relevant benchmarks between Codestral 2508 and Gemini 3.1 Pro Preview Custom Tools.
Codestral 2508Codestral 2508
Gemini 3.1 Pro Preview Custom ToolsGemini 3.1 Pro Preview Custom Tools
Best Design Arena Score
Highest human-preference Elo score across design arenas
1,053 Elo
(#137 in Website (37.8% win rate))
Benchmark not available.

At a Glance

Quick overview of what makes Codestral 2508 and Gemini 3.1 Pro Preview Custom Tools unique.
Mistral logoCodestral 2508 by Mistral can use external tools and APIs, generates structured data. It can handle standard conversations with its 256K token context window. Very affordable at $0.30/M input and $0.90/M output tokens. Released August 1st, 2025.
Google logoGemini 3.1 Pro Preview Custom Tools by Google understands both text and images, handles audio, analyzes video, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 1M token context window. Reasonably priced at $2.00/M input and $12.00/M output tokens. Released February 25th, 2026.

Explore More Comparisons

Compare your models with top performers across different categories