Loading template…

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

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.

ModelModelFold USDOfficial USDUnit / configuration
Gemini 3.8 Flash0.27 in / 1.35 outNot independently verifiedper 1M tokens
Gemini 3.7 Flash0.27 in / 1.35 outNot independently verifiedper 1M tokens
Gemini 3.6 Flash0.27 in / 1.35 outNot independently verifiedper 1M tokens
Gemini 3.1 Pro0.60 in / 4.20 outNot independently verifiedper 1M tokens
Gemini 3 Pro0.60 in / 4.20 outNot independently verifiedper 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.

/api/gateway

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.

Comparison sources