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.
| Model | Input (IRR) | Output (IRR) |
|---|---|---|
| 2.06M | 10.3M | |
| 247K | 824K | |
| 549K | 1.1M | |
| 4.12M | 24.71M | |
| 2.06M | 10.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.