Developer field guide
Cheap AI API & cheap LLM API guide
Finding a reliable cheap AI API and cheap LLM API means looking past vanity per-token discounts and evaluating real end-to-end AI API cost—including output multipliers, cached coding reductions, minimum top-up thresholds, and 24-hour uptime. Below, we rank AngelAPI's lowest-cost LLM API models currently verified online alongside worked MYR and USD token calculations.
What makes an AI API and LLM API affordable in production
Real production LLM spend fails on two surprises: high output-to-input ratios when models write verbose boilerplates, and minimum top-ups or expiring credits on platforms charging card surcharges. AngelAPI avoids both traps: prepaid packs start at just RM1.12 (10M prepaid tokens) at one flat rate (RM0.112 per million units, ~US$0.0278/1M), settle locally via CHIP DuitNow QR / FPX or globally via crypto, and never charge extra per-token markups on small packs versus 1B packs.
Lowest-cost cheap AI API & cheap LLM API models live today
We filtered the live gateway catalogue strictly to chat models marked online right now (never inflating rankings with unavailable offline IDs) sorted by input multiplier:
| Model ID | Status | Context / Max out | Input mult (MYR / 1M) | Output mult (MYR / 1M) | Est. coding (MYR / 1M) |
|---|---|---|---|---|---|
gpt-6-luna | online | 1.1M / 128K | ×0.0474 (RM0.0053) | ×0.2371 (RM0.0266) | ×0.0348 (RM0.0039) |
deepseek-v4.1-flash (DeepSeek guide) | online | 1M / 384K | ×0.1659 (RM0.0186) | ×0.6638 (RM0.0743) | ×0.0917 (RM0.0103) |
glm-5.3-flash (GLM guide) | online | 1M / 128K | ×0.2766 (RM0.0310) | ×0.922 (RM0.103) | ×0.1316 (RM0.0147) |
deepseek-v4.1-flash-1017 (DeepSeek guide) | online | 1M / 384K | ×0.3308 (RM0.0370) | ×1.3232 (RM0.148) | ×0.1774 (RM0.0199) |
qwen3.8-omni-flash (Qwen guide) | online | 1M / 128K | ×0.8294 (RM0.0929) | ×2.5936 (RM0.290) | ×0.6213 (RM0.0696) |
kimi-k2.5 (Kimi guide) | online | 164K / 32K | ×0.9492 (RM0.106) | ×4.8539 (RM0.544) | ×0.9208 (RM0.103) |
gpt-5.6-luna | online | 1.1M / 128K | ×0.9588 (RM0.107) | ×5.7528 (RM0.644) | ×0.7725 (RM0.0865) |
minimax-m3.1-flash (MiniMax guide) | online | 1M / 512K | ×1.2345 (RM0.138) | ×4.921 (RM0.551) | ×0.6727 (RM0.0753) |
Low-cost image generation alongside your LLM API
Need cheap thumbnails, icons, or workflow visuals on the same prepaid key? These online image generators start at just 500K–550K units (~RM0.056–RM0.062 per image):
| Model ID | Type | Status | Tokens per unit | MYR per unit (RM0.112/1M) |
|---|---|---|---|---|
muse-image | Image | online | 500K / image | RM0.056 / image |
gpt-5.6-luna-image (GPT Image guide) | Image | online | 550K / image | RM0.062 / image |
gpt-5.6-sol-image (GPT Image guide) | Image | online | 550K / image | RM0.062 / image |
gpt-5.6-terra-image (GPT Image guide) | Image | online | 550K / image | RM0.062 / image |
| Pack | Prepaid tokens | MYR price | Rate per 1M units |
|---|---|---|---|
| 10M | 10M | RM1.12 | RM0.112 |
| 50M | 50M | RM5.59 | RM0.112 |
| 100M | 100M | RM11.18 | RM0.112 |
| 200M | 200M | RM22.35 | RM0.112 |
| 300M | 300M | RM33.53 | RM0.112 |
| 500M | 500M | RM55.88 | RM0.112 |
| 1B | 1B | RM111.77 | RM0.112 |
Comparing LLM API multipliers, cache rates & packs
Look closely at three numbers in the chat rate table above before picking a production model:
- High-throughput chatbots & RAG triage: Choose DeepSeek V4.1 Flash or GLM 5.3 Flash (both maintain 100% recent 24-hour uptime alongside 1M context windows for under RM0.035/1M raw input tokens).
- Budget multimodal & coding terminals: Pair Qwen 3.8 Omni Flash, MiniMax M3.1 Flash, or Mistral Large 4 inside OpenCode or Claude Code custom endpoints for sub-RM0.08/1M cached coding context.
- Protect margins with max_tokens caps: Output multipliers typically run 3× to 6× higher than input multipliers. Setting explicit
max_tokensbounds and requesting structured JSON diffs cuts unnecessary output draw immediately.
Quick-start code examples with low-cost LLM API routes
Run your first request on high-uptime deepseek-v4.1-flash (RM0.0186/1M raw input) using any OpenAI SDK:
curl https://api.angelapi.cc/v1/chat/completions \
-H "Authorization: Bearer $ANGELAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Classify support email urgency as low, medium, or high in valid JSON."}]
}'from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.angelapi.cc/v1",
api_key=os.environ["ANGELAPI_KEY"],
)
response = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Classify support email urgency as low, medium, or high in valid JSON."}],
)
print(response.choices[0].message.content)const res = await fetch("https://api.angelapi.cc/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.ANGELAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "deepseek-v4.1-flash",
messages: [{ role: "user", content: "Classify support email urgency as low, medium, or high in valid JSON." }],
}),
})
const data = await res.json()
console.log(data.choices[0].message.content)Related model APIs and developer guides
Frequently asked questions
What is the cheapest online LLM API model on AngelAPI today?
Among models currently online, gpt-6-luna leads on low unit cost, followed closely by deepseek-v4.1-flash (×0.1659 in) and GLM 5.3 Flash (×0.2766 in)—each costing only sen per million input tokens.
Does buying a smaller pack charge a higher per-million rate?
No. Every AngelAPI pack from 10M (RM1.12) up to 1B (RM111.77) shares the exact same RM0.112 per 1M prepaid unit rate.
How does an LLM API stay cheap during multi-turn coding sessions?
Tools like Claude Code and OpenCode re-send static codebase instructions each turn. Upstream context-cache multipliers (shown in Est. coding) reduce repeated prompt cost sharply.
Can international developers buy cheap packs in USD?
Yes. Outside Malaysia, checkout displays equivalent USD pack totals using the published exchange reference and processes crypto payments cleanly.
Related developer guides
- Cheap Claude Code API cost comparison
- Use Claude Code with a custom API
- GLM API Malaysia setup & MYR payment
- Claude Code alternative models & tools
- Claude Code vs Codex comparison
- Cursor vs Claude Code setup guide
- OpenCode API setup & comparison
- Kimi CLI setup with an AngelAPI key
- AI API pricing & ChatGPT API cost guide
- Free AI API & AI API key honest guide
- OpenRouter alternative (MYR & crypto)