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.
Sumber resmi diperiksa:
Data harga diperbarui:
Panduan terkait
- API Claude termurah? Bandingkan harga token sebenarnya
- API GPT termurah? Perbandingan harga token GPT
- Memanggil API GPT-6.1, Claude, dan Gemini dari Tiongkok daratan
- Perbandingan API pembuatan video: Kling, Seedance, dan 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
Harga publik saat ini
Bayar sesuai pemakaian dengan kredit prabayar. 200 kredit = US$1. Biaya kredit dibulatkan ke atas hingga dua desimal; ini bukan pembulatan USD. Pembuatan yang gagal tidak dikenai biaya; dana yang ditahan sementara bisa dilepas setelah gagal. Tinjau harga akhir sebelum mengirim. Tarif token per satu juta token, input / output; harga video adalah harga awal untuk konfigurasi yang tercantum.
| Model | ModelFold USD | Resmi (USD) | Satuan / konfigurasi |
|---|---|---|---|
| Gemini 3.8 Flash | 0.27 in / 1.35 out | Tidak diverifikasi secara independen | per 1M tokens |
| Gemini 3.7 Flash | 0.27 in / 1.35 out | Tidak diverifikasi secara independen | per 1M tokens |
| Gemini 3.6 Flash | 0.27 in / 1.35 out | Tidak diverifikasi secara independen | per 1M tokens |
| Gemini 3.1 Pro | 0.60 in / 4.20 out | Tidak diverifikasi secara independen | per 1M tokens |
| Gemini 3 Pro | 0.60 in / 4.20 out | Tidak diverifikasi secara independen | per 1M tokens |
Contoh API
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)Contoh hanya ilustrasi dan tidak dikirim ke model berbayar. Pasang OpenAI Python SDK secara terpisah. Untuk permintaan video dan gambar, ikuti parameter wajib di halaman tiap model; tugas video berjalan asinkron.
Pertanyaan yang sering ditanyakan
Jawaban langsung
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.
Apakah ModelFold selalu yang termurah?
Tidak. Bandingkan model, konteks, mode cache, dan perbandingan input/output yang sama. Biaya ditentukan oleh harga akhir dan pemakaian sebenarnya.
Apakah pembuatan yang gagal dikenai biaya?
Pembuatan yang gagal tidak dikenai biaya. Dana yang ditahan sementara bukan biaya akhir; cek log akun untuk penyelesaiannya.
Di mana saya menemukan ID model yang benar?
Gunakan GET /v1/models dan dokumentasi model terkait. Slug halaman situs tidak selalu sama dengan ID model API.
