Chat AIMô hìnhGiáTài liệuHướng dẫn

How to calculate AI API (token) costs in Rupiah

Cost = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price). At MaCloud AI prices are in Rupiah per 1 million tokens, input and output are charged separately, and the cost is deducted from your balance on every API call.

Updated · MaCloud AI

What is a token?

A token is a piece of text that an AI model reads or writes. For English text, one token is roughly 3–4 characters. Indonesian text and program code usually take more tokens per word, so exact numbers should always come from the usage log rather than guesses.

Input tokens and output tokens

  • Input: everything you send to the model, including the prompt, system instructions, conversation history and file contents.
  • Output: the answer the model writes. Output is usually several times more expensive than input.

The formula

Cost per call = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price)

An example with round numbers (not real prices): input Rp 20,000 and output Rp 100,000 per 1 million tokens. One chat with 2,000 input tokens and 500 output tokens:

PartCalculationCost
Input2,000 ÷ 1,000,000 × Rp 20,000Rp 40
Output500 ÷ 1,000,000 × Rp 100,000Rp 50
Total per chatRp 90
1,000 such chatsRp 90,000

Real prices now

Estimate per chat with 2,000 input and 500 output tokens, from the prices on the models page.

ModelPer chat1,000 chats
GEM 3.8 FlashRp 4Rp 4,434
TT-6 LunaRp 11Rp 10,642
TT-6.1 TerraRp 7Rp 7,263
HK-5.5Rp 3Rp 3,487
GEM 4 ArgonRp 85Rp 84,649
TT-6.1 SolRp 15Rp 14,526

Why do long conversations cost more?

AI models do not remember conversations. Every new message is sent together with the whole history, and all of it counts as input tokens. The 20th message in a conversation can carry tens of thousands of input tokens even if the question itself is short.

Keeping the bill low

  • Match the model to the task: small models for summaries and classification, large models for reasoning and hard code.
  • Limit the history you send, or start a new conversation when the topic changes.
  • Set max_tokens so answers are no longer than needed.
  • Check Usage in the console to see tokens and cost for each call.

Frequently asked questions

Q1Is there a monthly fee?
No. You pay only for the tokens you use, deducted from a prepaid balance. There is no subscription and no monthly minimum.
Q2What does a token cost on MaCloud AI?
Each model's price is on the models page, in Rupiah per 1 million tokens, with separate input and output prices.
Q3Where can I see my token usage?
In the console under Usage. Every call is logged with the model name, input and output tokens, and its cost.
Q4What happens when the balance runs out?
Further requests are rejected until you top up. After topping up, the API works again right away.

More guides