google logo 95% off

Gemini 3.8 Flash API

Google·Vision· 99.9% success (7d)

Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning.

1.0M Context 65.5K out $2,049.88 capacity 118.7K req/24h $26.72 24h volume
Input
Text Image File Audio Video
Output
Text

Pricing

Cheapest live price, per 1 million tokens.

Input / 1M tokens

$0.01995% off

$0.375 OpenRouter

Output / 1M tokens

$0.09495% off

$1.88 OpenRouter

Cache read / 1M

$0.00304

Repeated prompt prefixes

Cache read is the discounted rate for repeated prompt prefixes (system prompts, agent context).

Capabilities · 11

Vision Reasoning Effort: low / medium / high Tool calling JSON mode JSON schema Web search File input PDF Streaming Seed

Specifications

Context window
1.0M
Max output
66K
Type
Vision
Creator
Google
Live sellers
93
Requests / 24h
118,657

Price history · 60 days

Sep 5 — Oct 28▼ 93.67% vs last week
Compare all top models

Estimated monthly cost

30 days at the cheapest live price.

AI Chatbot
1,000 req/day · 2K in · 0.5K out
$2.54/mo
$50.63 OpenRouter
Coding Copilot
500 req/day · 8K in · 2K out
$5.08/mo
$101.25 OpenRouter
AI Agent
100 req/day · 50K in · 5K out
$4.23/mo
$84.38 OpenRouter

Quick start

OpenAI-compatible — change the base URL and key. Get a key from the dashboard.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.qubax.ai/v1",
    api_key="YOUR_QUBAX_API_KEY",
)

response = client.chat.completions.create(
    model="gemini-3.8-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)

About Gemini 3.8 Flash

Gemini 3.8 Flash is a multimodal language model developed by Google. It's particularly well-suited for analyzing images, screenshots, and visual content, tackling complex, multi-step reasoning problems, orchestrating tool-using agents that call APIs and external services, grounding responses in real-time web search results, producing structured outputs for reliable data extraction and handling large contexts of up to 1.0M tokens. Its 1.0M-token context window means you can pass in entire documents, codebases, or conversation histories without losing context. It can write up to 66K tokens in a single response.

As of Oct 28, 2026, Gemini 3.8 Flash costs $0.019 per 1M input tokens and $0.094 per 1M output tokens on Qubax, versus $0.375 / $1.88 on OpenRouter (95% less on input). A typical 1,000 chat requests (2K tokens in, 500 out) come to about $0.08. Measured availability over the last 7 days: 99.9%. 93 independent compute providers currently serve it, so requests fail over automatically. It handled 118,657 requests on Qubax in the last 24 hours. Pay with USDC, USDT, BTC, ETH or 350+ other coins — no credit card required.

Visual Analysis
Analyze images, screenshots, diagrams, and visual content
Complex Reasoning
Multi-step problem solving, math, and logical analysis
Function Calling
Build agents and tool-using applications
Long Documents
Process entire codebases, books, or lengthy conversations
Chat & Conversation
Build AI chatbots and conversational assistants

Similar-priced alternatives

Frequently asked questions

How much does the Gemini 3.8 Flash API cost?

On Qubax, Gemini 3.8 Flash costs $0.019 per 1M input tokens and $0.094 per 1M output tokens. This is 95% cheaper than OpenRouter's price of $0.375 per 1M input tokens.

Is the Gemini 3.8 Flash API compatible with OpenAI?

Yes. Qubax provides an OpenAI-compatible API. You can use Gemini 3.8 Flash as a drop-in replacement by changing your base URL to https://api.qubax.ai/v1 and using your Qubax API key. It works with Cline, Cursor, OpenCode, Hermes Agent, and any tool that supports OpenAI APIs.

Why is Gemini 3.8 Flash cheaper on Qubax than OpenRouter?

Qubax sources AI inference from an open compute marketplace on the Base blockchain where GPU providers compete on price. We pass the savings to you — 95% cheaper than OpenRouter's price for Gemini 3.8 Flash.

How do I pay for Gemini 3.8 Flash API usage?

Qubax uses prepaid crypto credits. Top up with USDC, USDT, BTC, ETH, SOL or 350+ other coins and your balance is deducted as you use the API. No credit card or KYC required.

What is the context window of Gemini 3.8 Flash?

Gemini 3.8 Flash supports a context window of 1.0M tokens, allowing you to process large documents, codebases, or long conversations in a single request.

What can I build with Gemini 3.8 Flash?

You can use Gemini 3.8 Flash to analyze images and visual content, tackle complex multi-step reasoning tasks, build autonomous agents that call external tools and APIs, answer questions with real-time web search, generate structured JSON output for data pipelines and process long documents and entire codebases. Because it's served through Qubax's OpenAI-compatible API, integration into existing apps, agents, or workflows takes just a few lines of code.

How fast and reliable is Gemini 3.8 Flash on Qubax?

Measured time to first token (p95) on Qubax is 24.1s. Its 7-day success rate is 99.9%. Responses stream token by token. 93 sellers serve it, so if one is slow or down the request moves to the next.

Gemini 3.8 Flash vs GPT 5 Mini: which should I choose?

Gemini 3.8 Flash by Google and GPT 5 Mini by OpenAI are both strong models in a similar price tier. Gemini 3.8 Flash excels at complex reasoning and supports vision/image inputs. GPT 5 Mini comes from a different lab and may have different strengths depending on your workload. On Qubax, Gemini 3.8 Flash starts at $0.019/1M input tokens versus GPT 5 Mini's $0.026/1M — making Gemini 3.8 Flash the more cost-effective option for high-volume workloads. Both are available on Qubax with crypto payments and OpenAI-compatible APIs, so you can try each and switch freely.

Can I use Gemini 3.8 Flash for commercial projects?

Yes. Gemini 3.8 Flash on Qubax can be used for commercial purposes. You own the outputs you generate. Qubax provides the API infrastructure — you bring your use case.

Why use Gemini 3.8 Flash on Qubax?

95% cheaper

Providers compete on price — you get the cheapest healthy seller.

Pay with crypto

350+ coins (BTC, ETH, SOL, USDT, USDC). No card, no KYC.

OpenAI & Anthropic compatible

Drop-in base URL. Works with Cline, Cursor, Claude Code, OpenAI and Anthropic SDKs.

Get started free →

More from Google

Browse 380+ other AI models

GPT, Claude, Gemini, Llama, DeepSeek & more.

See all models →

Gemini 3.8 Flash

$0.019 in · $0.094 out

Get API key