The Gemini API in Iran, priced in Rial

The Gemini models are made by Google and many accept images as well as text. IranRouter lets you call them from inside Iran with one ir- key, paid in Rial.

Models and today's Rial prices

5 models available now. Prices are per million tokens, read straight from the catalogue.

ModelInput (IRR)Output (IRR)
GoogleGoogle: Gemini 3.8 Flashgoogle/gemini-3.8-flash2.06M10.3M
GoogleGoogle: Gemma 4 26B A4Bgoogle/gemma-4-26b-a4b-it247K824K
GoogleGoogle: Gemma 4 31Bgoogle/gemma-4-31b-it549K1.1M
GoogleGoogle: Gemini 3.5 Flashgoogle/gemini-3.5-flash4.12M24.71M
GoogleGoogle: Gemini 3.7 Flashgoogle/gemini-3.7-flash2.06M10.3M

Google SDK or OpenAI SDK

Set the Google GenAI SDK's base URL to /genai, or call the same models with the OpenAI SDK by changing the model id. Gemini CLI works with the same address.

Which Gemini model

Flash models are built for fast, high-volume answers and Pro models for heavier work. The table below lists those available now, priced in Rial.

Keeping cost down

For high volume, start with a lighter model and keep max_tokens realistic: the lower it is, the smaller the amount held before each request.

Frequently asked questions

Does the Gemini API work from Iran?

Yes. With an ir- key you reach these models from inside Iran, no VPN.

Is the Google SDK supported?

Yes. Set the base URL to /genai and use your ir- key.

Do Gemini models take images?

Many do. Each model's inputs are listed on its page.

Get connected today

Create an account, top up your wallet and make your first request in minutes — no contract, no foreign card.

Create a free accounthttps://iranrouter.com/v1