AI ChatModelsPriceDocsGuides

How to use the GPT API (OpenAI format) and pay by QRIS

Use the OpenAI SDK as usual; just change base_url to https://api.macloudai.com/v1 and use your MaCloud AI API key. The balance is topped up in Rupiah by QRIS from any bank or e-wallet app, so you need no credit card to use GPT or any other model with one key.

Updated · MaCloud AI

Topping up by QRIS

  1. Sign up and open the console.
  2. Choose Top-up, enter an amount from Rp 50,000 and pick QRIS.
  3. Scan the QRIS code with your bank or e-wallet app and pay.
  4. The balance is added automatically once paid; the console page updates on its own.

QRIS is Bank Indonesia's national QR code standard, so it can be paid from any bank or e-wallet app that supports QRIS. For large amounts (above Rp 10 million per transaction), use bank transfer by virtual account.

Code example: Python

from openai import OpenAI

client = OpenAI(base_url="https://api.macloudai.com/v1", api_key="sk-...")
r = client.chat.completions.create(
    model="gem-3.8-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

Code example: Node.js

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.macloudai.com/v1", apiKey: process.env.API_KEY });
const r = await client.chat.completions.create({
  model: "gem-3.8-flash",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);

Example: curl with streaming

curl https://api.macloudai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gem-3.8-flash", "messages": [{"role": "user", "content": "Hello"}], "stream": true}'

Setup in tools that use the OpenAI format

ToolWhat to fill in
CursorSettings → Models: enter the OpenAI API Key, turn on Override OpenAI Base URL with https://api.macloudai.com/v1, then add the model name.
LobeChatSettings → Language model → OpenAI: API key and API proxy URL https://api.macloudai.com/v1.
Cherry StudioModel service → add, type OpenAI, API Host https://api.macloudai.com, then add the model name.

One key for many models

One API key can call GPT, Claude, Gemini, DeepSeek and other models. Just change model in the request; there is no separate account or key per AI company. Every model's name and price is on the models page.

Frequently asked questions

Q1Can I pay for the OpenAI API by QRIS?
Yes, through MaCloud AI. Top up a Rupiah balance by QRIS, then use the OpenAI-format API as usual with the base URL https://api.macloudai.com/v1.
Q2Can every bank app scan the QRIS code?
QRIS is Bank Indonesia's national standard, so any bank or e-wallet app that supports QRIS can pay it.
Q3Does the balance expire?
No. The balance does not expire while the account is active and only goes down with token usage.
Q4Is streaming supported?
Yes. Add stream: true to the request, as with the OpenAI API.

More guides