Call the Gemini API from mainland China
Call listed Gemini chat models with a ModelFold API key at https://modelfold.ai/v1/chat/completions; use the API model ID, not the page slug, and mainland reachability is not guaranteed.
Speech models are separate audio products and are not in this chat table. The prices are ModelFold public input and output rates per million tokens. This does not replace a Google Cloud account’s other products.
Official sources checked:
Price snapshot updated:
Related guides
- Cheapest Claude API? Compare actual token prices
- Cheapest GPT API? GPT token pricing compared
- Calling GPT-6.1, Claude and Gemini APIs from mainland China
- Video generation APIs compared: Kling, Seedance and Veo
- Use Claude Code with a mainland-reachable API base URL
- Point Codex CLI at a third-party API
- Cheaper Cursor setup with your own API key
- Kling, Veo and Seedance API prices on ModelFold
- Nano Banana and GPT Image API prices
- Call the Gemini API from mainland China
- DeepSeek vs Claude: coding API price on ModelFold
- AI API pay as you go versus a subscription
- Call every listed model with one API key
Current public prices
Pay as you go with prepaid credits. 200 credits = US$1. Credit charges round up to two decimal places; this is not USD rounding. Failed generations are not charged; a temporary hold may be released after failure. Review the final quote before submitting. Token rates are per one million tokens, input / output; video prices are starting prices for the listed configuration.
| Model | ModelFold USD | Official USD | Unit / configuration |
|---|---|---|---|
| Gemini 3.8 Flash | 0.27 in / 1.35 out | Not independently verified | per 1M tokens |
| Gemini 3.7 Flash | 0.27 in / 1.35 out | Not independently verified | per 1M tokens |
| Gemini 3.6 Flash | 0.27 in / 1.35 out | Not independently verified | per 1M tokens |
| Gemini 3.1 Pro | 0.60 in / 4.20 out | Not independently verified | per 1M tokens |
| Gemini 3 Pro | 0.60 in / 4.20 out | Not independently verified | per 1M tokens |
API examples
curl https://modelfold.ai/v1/models -H "Authorization: Bearer $MODELFOLD_API_KEY"curl https://modelfold.ai/v1/chat/completions \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3-8-flash","messages":[{"role":"user","content":"Hello"}]}'import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["MODELFOLD_API_KEY"], base_url="https://modelfold.ai/v1")
response = client.chat.completions.create(
model="gemini-3-8-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Examples are illustrative and were not sent to a paid model. Install the OpenAI Python SDK separately. Video and image requests follow each model page for required parameters; video jobs are asynchronous.
Frequently asked questions
Direct answer
Call listed Gemini chat models with a ModelFold API key at https://modelfold.ai/v1/chat/completions; use the API model ID, not the page slug, and mainland reachability is not guaranteed.
Do I use Google’s own base URL?
No. Use ModelFold’s OpenAI-compatible base https://modelfold.ai/v1 and an API model ID from the table.
Are Gemini speech models in this table?
No. This page lists chat models only. Speech has its own audio price and endpoint.
Will every mainland network connect?
No. It depends on the network, the service terms and model status.
Is ModelFold always the cheapest?
No. Compare the same model, context, cache mode and input/output mix. Final quotes and actual usage determine the charge.
Are failed generations charged?
Failed generations are not charged. A temporary reservation is not a final charge; check account logs for settlement.
Where do I find the correct model ID?
Use GET /v1/models and the linked model documentation. A website page slug is not always the API model ID.
