§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": "gk-4.5", "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="gk-4.5",
messages=[{"role": "user", "content": "Hi! Who are you?"}],
)
print(r.choices[0].message.content)
Model name: gk-4.5Full 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 26 |
| 100 chats200.000 in + 80.000 out | Rp 2.600 |
| Read 1 million tokens (≈ 1,500 pages of text)1.000.000 in | Rp 5.972 |
| A minimum Rp 50.000 top-up coversestimated per chat | ≈ 1.923 chats |
§03
Other Grok models
- GK-4.6Rp 6.270 / Rp 16.721
- GK-4.7Rp 7.900 / Rp 23.702
- GK-4-20Rp 40.607 / Rp 121.703
- GK-4.3Rp 4.300 / Rp 8.480
- GK-Build 0.1Rp 20.304 / Rp 40.607
§04
FAQ
Q1How much does the GK-4.5 API cost?
Input Rp 5.972 and output Rp 17.915 per 1 million tokens. A typical chat costs about Rp 26.
Q2How do I use GK-4.5 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 gk-4.5.
Q3Do I need a credit card?
No. You pay in Rupiah by QRIS or bank transfer. That is the whole point of this service.