Google AI Studio
Fast Multimodal
Gemini 3 Flash (AI Studio)
Google AI Studio high-throughput multimodal preview model with low latency and strong cost efficiency
Context Length1M tokens
Output Length64K tokens
Model TypeMultimodal Large Language Model
ๅฎไปทไธ่งๆ ผ
๐ฐ ๅฎไปท
่พๅ
ฅ$0.5 / M tokens
่พๅบ$3 / M tokens
โ๏ธ ่งๆ ผ
Context Length1M tokens
Output Length64K tokens
Model TypeMultimodal Large Language Model
MultimodalText, images, audio, video
Training Cutoff DateJanuary 2025
API SupportGemini API / OpenAI API
ProviderGoogle AI Studio
API ่ฐ็จ็คบไพ
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.xairouter.com/v1"
)
response = client.chat.completions.create(
model="gemini-3-flash-preview",
messages=[
{"role": "user", "content": "Explain relativity in simple terms"}
]
)
print(response.choices[0].message.content)cURL (OpenAI API)
curl https://api.xairouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gemini-3-flash-preview",
"messages": [
{"role": "user", "content": "Explain relativity in simple terms"}
]
}'Developer Assist
# Install the latest version
npm install -g @google/gemini-cli@latest
# Note: Choose ONE of the following configurations, do NOT use both!
# ===== Pay-as-you-go Configuration =====
export GOOGLE_GEMINI_BASE_URL="https://api.xairouter.com"
export GEMINI_API_KEY="sk-Xvs..."
# ===== Monthly Subscription Configuration =====
# export CODE_ASSIST_ENDPOINT="https://api.xairouter.com"
# export GOOGLE_CLOUD_ACCESS_TOKEN="sk-Xvs..."
# export GOOGLE_GENAI_USE_GCA="true"
# Optional: Specify model version
export GEMINI_MODEL="gemini-3-flash-preview"
# Launch Gemini CLI
gemini