gemini-3-pro-preview pricing and API access

Run gemini-3-pro-preview through Code By AI for $0.20 per 1M input tokens and $1.20 per 1M output tokens. Google lists the same model at $2.00 and $12.00; you pay about 90% less than that, with no monthly subscription.

Official price

$2.00

per 1M tokens, USD

Your price

$0.20

per 1M tokens, USD

Δ

−90%

1/10 of official price

gemini-3-pro-previewOfficial priceYour price
Input$2.00$0.20
Cached input$0.20$0.02
Output$12.00$1.20

How to use gemini-3-pro-preview

Export GOOGLE_GEMINI_BASE_URL=https://www.codebyai.net/api/agent and GEMINI_API_KEY=sk-proj-xxxx, then launch the CLI, and use the model ID gemini-3-pro-preview. The Gemini guide walks through the full configuration.

export GOOGLE_GEMINI_BASE_URL="https://www.codebyai.net/api/agent"
export GEMINI_API_KEY="sk-proj-xxxx"
Read the Gemini setup guide

Compare other Gemini models

gemini-3-pro-preview FAQ

How much does gemini-3-pro-preview cost on Code By AI?
gemini-3-pro-preview costs $0.20 per 1M input tokens, $0.02 per 1M cached input tokens and $1.20 per 1M output tokens. Google lists the same model at $2.00 input and $12.00 output.
Is gemini-3-pro-preview the default Gemini model?
No. Requests to Gemini without a model parameter use the default model instead; set the model parameter to gemini-3-pro-preview to select this one.
How do I use gemini-3-pro-preview?
Export GOOGLE_GEMINI_BASE_URL=https://www.codebyai.net/api/agent and GEMINI_API_KEY in your shell, pass the model ID gemini-3-pro-preview, then launch the CLI. The Gemini guide covers the full configuration.