§01
Code sample
Replace sk-... with the API key from your console.
curl https://api.macloudai.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gem-3.5-flash-lite", "messages": [{"role": "user", "content": "Halo"}]}'
from openai import OpenAI
client = OpenAI(
base_url="https://api.macloudai.com/v1",
api_key="sk-...",
)
r = client.chat.completions.create(
model="gem-3.5-flash-lite",
messages=[{"role": "user", "content": "Hi! Who are you?"}],
)
print(r.choices[0].message.content)
Model name: gem-3.5-flash-liteFull docs →
§02
What it costs, roughly
Estimated from the prices above. Actual charges follow each call's tokens.
| 1 chat2.000 in + 800 out | Rp 31 |
| 100 chats200.000 in + 80.000 out | Rp 3.100 |
| Read 1 million tokens (≈ 1,500 pages of text)1.000.000 in | Rp 3.882 |
| A minimum Rp 50.000 top-up coversestimated per chat | ≈ 1.612 chats |
§03
Other Google models
- GEM 3.8 FlashRp 985 / Rp 4.927
- GEM 4 ArgonRp 18.811 / Rp 94.054
- GEM 3.5 FlashRp 9.435 / Rp 56.432
- GEM 3.1 ProRp 12.541 / Rp 75.243
- GEM 3.7 FlashRp 2.568 / Rp 12.660
- GEM 3.6 FlashRp 1.493 / Rp 7.405
- GEM 3 ProRp 80.618 / Rp 480.720
- GEM 3.1 FlashRp 776 / Rp 4.658
§04
FAQ
Q1How much does the GEM 3.5 Flash Lite API cost?
Input Rp 3.882 and output Rp 28.425 per 1 million tokens. A typical chat costs about Rp 31.
Q2How do I use GEM 3.5 Flash Lite in Indonesia?
Sign up, top up in Rupiah by QRIS or bank transfer, create an API key, set the base URL to https://api.macloudai.com/v1 and model to gem-3.5-flash-lite.
Q3Do I need a credit card?
No. You pay in Rupiah by QRIS or bank transfer. That is the whole point of this service.