Using Gemini 3 Flash on Vercel AI Gateway
Implementation guide · Gemini 3 · Google DeepMind
Serverless
Vercel AI Gateway exposes Gemini 3 Flash through model ID google/gemini-3-flash. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-06-29. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
google/gemini-3-flash— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
google/gemini-3-flashcreator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="google/gemini-3-flash",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.50 |
| Output tokens | $3.00 |
| Query | $14.00 |
Capabilities
VisionMultimodalJSON / Tool useCode ExecutionAudio
About Gemini 3 Flash
Gemini 3 Flash is Google's speed-optimized Gemini 3 model, available in public preview via the Gemini API and Vertex AI. It supports text, image, audio, and video inputs with a 1M token context window and is priced at $0.50 per 1M input tokens and $3.00 per 1M output tokens.
Model Specs
Released2025-12-17
Context1m
ArchitectureDecoder Only
Knowledge cutoff2025-01