Memuat templat…

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

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.

ModelModelFold USDResmi (USD)Satuan / konfigurasi
Gemini 3.8 Flash0.27 in / 1.35 outTidak diverifikasi secara independenper 1M tokens
Gemini 3.7 Flash0.27 in / 1.35 outTidak diverifikasi secara independenper 1M tokens
Gemini 3.6 Flash0.27 in / 1.35 outTidak diverifikasi secara independenper 1M tokens
Gemini 3.1 Pro0.60 in / 4.20 outTidak diverifikasi secara independenper 1M tokens
Gemini 3 Pro0.60 in / 4.20 outTidak diverifikasi secara independenper 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.

/api/gateway

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.

Sumber perbandingan