Jalankan seluruh beban kerja AI Anda secara aman di satu platform netral, dengan model terbaik dan kecerdasan tertinggi per rupiah.
Forget pricey monthly subscriptions or steep official API bills. On TOP AI, pay strictly as you go — starting from Rp5 per request (save up to 90%). In Flat mode, 1M Input & Output tokens are FREE — just pay a tiny flat fee per call.
Simple, transparent prepaid balance — top up Rp10.000 and get 10.000 TP, enough for hundreds to thousands of frontier AI calls. Prices auto-convert to your selected currency and credits never expire.
On Per Request models, token counts (input, output, and cache) are not billed at all. Whether you send a massive 1,000,000-token codebase prompt and receive a super-long answer, you only pay a single flat price per prompt.
*Example illustration. Check exact tariffs for all 100+ models on the Pricing page.
Claude Opus 5
claude-opus-5
Input / 1M
3.900FREE
Output / 1M
19.300FREE
Claude Opus 4.8
claude-opus-4-8
Input / 1M
3.900FREE
Output / 1M
19.300FREE
Claude Opus 4.6
claude-opus-4-6
Input / 1M
3.900FREE
Output / 1M
19.300FREE
Claude Opus 4.7
claude-opus-4-7
Input / 1M
3.900FREE
Output / 1M
19.300FREE
Claude Sonnet 5
claude-sonnet-5
Input / 1M
2.300FREE
Output / 1M
11.600FREE
Claude Sonnet 4.6
claude-sonnet-4-6
Input / 1M
2.300FREE
Output / 1M
11.600FREE
Claude Fable 5
claude-fable-5
Input / 1M
7.700FREE
Output / 1M
38.700FREE
Claude Opus 5 Thinking
claude-opus-5-thinking
Input / 1M
3.900FREE
Output / 1M
19.300FREE
Claude Sonnet 5 Thinking
claude-sonnet-5-thinking
Input / 1M
2.300FREE
Output / 1M
11.600FREE
Point your app or IDE baseURL to TOP AI. Pick any model below to preview the exact request format and live billing headers.
https://topai.id/v1/chat/completionsimport OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://topai.id/v1",
apiKey: process.env.TOPAI_API_KEY,
});
const completion = await client.chat.completions.create({
model: "claude-sonnet-5-5",
messages: [
{ role: "user", content: "Rancang arsitektur gateway multi-model dalam 1 kalimat." }
],
});
console.log(completion.choices[0].message.content);{
"id": "chatcmpl-topai9x4",
"object": "chat.completion",
"model": "claude-sonnet-5-5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Arsitektur multi-model memisahkan logika aplikasi dari satu vendor sehingga latensi dan biaya selalu optimal."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 28,
"total_tokens": 47
},
"topai": {
"charged_tp": 50,
"balance_after": 4950,
"mode": "flat",
"upstream": "anthropic"
}
}/v1/chat/completions/v1/messages/v1/images/generations/v1/embeddingsStop juggling ten separate vendor bills, fragmented rate limits, or sudden single-provider outages.
Change one baseURL line. Official OpenAI, Anthropic, Vercel AI SDK, LangChain, Cursor, Cline, and Claude Code work out of the box.
No monthly contracts, no credit card required, and credits never expire.
Instant trial balance upon signup with no credit card required. Top up anytime globally via live FX → USDT (TRC20/BEP20/Polygon) or local methods.
One OpenAI & Anthropic compatible endpoint for 114+ frontier AI models with transparent pay-as-you-go pricing, global live FX to USDT top-up calculator, automatic failover routing, and zero monthly subscriptions. Expand any guide topic below to read in depth.
| Comparison Factor | TOP AI (topai.id)★ #1 | Monthly Plus/Pro Plans | Direct Vendor APIs | OpenRouter |
|---|---|---|---|---|
| Pricing Model | Pure pay-as-you-go (Per-Request flat or Per-Token), credits never expire | $20–$200/month recurring per vendor whether used or idle | Prepaid USD credit per separate provider with expiration rules | Pay-as-you-go in USD with platform top-up surcharges |
| Global & Local Payments | Live Global FX Calculator → USDT (TRC20/BEP20/Polygon) + QRIS & Bank VA | International Visa/Mastercard credit card mandatory | International credit card required separately for every vendor | Credit card or crypto without unified local FX fee preview |
| Model Catalog in 1 Key | 100+ models: Claude, GPT, Gemini, DeepSeek, Qwen, GLM, Kimi, Flux Image | Locked into a single vendor ecosystem | Must manage 5–8 separate dashboards, keys, and billing cycles | Multi-model OpenAI format only |
| SDK Compatibility | Native OpenAI (/v1/chat/completions) & Anthropic (/v1/messages) drop-in | Web chat UI only (no production API access) | Each provider requires different SDKs and message schemas | OpenAI-compatible format primarily |
| Failed Request Protection | 0 TP charged on upstream HTTP 503 failures + automatic Smart Router failover | Strict 3-hour message caps and throttling | Manual retry and fallback infrastructure required | Manual fallback configuration per request |
| Team & Client Quota Control | Built-in Customer Sub-Keys with isolated daily/monthly limits & CSV export | Not supported for API reselling or client isolation | Complex enterprise org setups per vendor | Limited key provisioning controls |
Per-Request vs Per-Token billing, real-time world currency conversion, and zero-charge upstream protection.
TOP AI is a high-performance multi-model AI API gateway that unifies over 100 leading artificial intelligence models—including Anthropic Claude, OpenAI GPT & o-series, Google Gemini, DeepSeek V4, Alibaba Qwen, Zhipu GLM, Moonshot Kimi, MiniMax, Mistral, NVIDIA, and Black Forest Labs Flux image generation—behind a single production endpoint at https://topai.id/v1. Engineering teams, SaaS founders, AI agencies, and independent developers no longer need to maintain half a dozen vendor accounts, separate billing cards, or brittle multi-SDK wrappers.
Instead of locking capital into $20 to $200 monthly chat subscriptions that expire whether you ship code or take a week off, TOP AI operates on pure pay-as-you-go TOP Points (TP) that never expire. Every model displays live conversion across 23 global currencies (USD, EUR, JPY, GBP, SGD, MYR, CNY, KRW, AUD, INR, and more), enabling international teams to benchmark exact per-call or per-million-token economics before deploying to production—often cutting monthly AI spend by 70% to 90%.
TOP AI gives builders full control over cost predictability by supporting two complementary billing architectures under a single balance. On Per-Request (Flat) models, you pay one fixed rate per API invocation while both input tokens and output tokens are completely FREE inside the model's context window. This eliminates surprise token blowups during long multi-file coding sessions in Cursor, Cline, Roo Code, or TOP Code, as well as large document reviews.
On Per-Token models, there is no flat call surcharge—you pay strictly for actual input tokens, output tokens, and cached prompt reads calculated per 1 million tokens with a minimal floor per call. Per-Token models such as deepseek-v4.1-flash-token are engineered for high-throughput automation, SaaS customer support bots, n8n workflows, classification pipelines, and structured JSON extraction. Image models bill transparently at a flat rate per generated image.
International builders across Europe, Japan, North America, East Asia, and Southeast Asia can select their preferred display currency (such as EUR, JPY, USD, GBP, SGD, MYR, KRW, or CNY) directly in the top-right selector. When opening Top Up Balance, TOP AI presents a live Global Exchange Calculator powered by real-time world foreign exchange rates.
Simply enter the amount you want to top up in your native currency—for example, ¥100,000 JPY or €1,000 EUR—and the calculator immediately breaks down: (1) the exact net USDT credited into your TOP Points balance, (2) the transparent payment provider & network processing fee (2.5%), and (3) the final total USDT amount to send via TRC-20, BEP-20, or Polygon. Once confirmed on-chain, your TOP Points balance updates automatically with zero credit card declines or cross-border bank surcharges.
Never. TOP AI enforces atomic post-response billing: credits are only deducted after the upstream AI provider returns a valid completion. If a provider suffers capacity spikes, returns HTTP 503 upstream_overloaded, or times out before generating tokens, the request is logged transparently as gagal_upstream with an exact charge of 0 TP.
During Server-Sent Events (SSE) streaming, if your application or IDE aborts a generation mid-stream, the transaction is logged as cancelled and billed solely for tokens actually produced up to that millisecond. Every single API response returns the x-topai-charge header and reconciles 1:1 with your immutable account ledger.
Migrate Python, TypeScript, Go, TOP Code, Cursor, Cline, Roo Code, Claude Code, and n8n in 60 seconds.
TOP AI is engineered as a full drop-in gateway for both major AI protocols. If your codebase uses the official OpenAI SDK (Python, Node.js/TypeScript, Go, PHP, Rust, Java), Vercel AI SDK, LangChain, or LlamaIndex, change only two lines: set baseURL to https://topai.id/v1 and pass your tp- API key. Tool calling, JSON schema outputs, vision attachments, embeddings, audio transcription, text-to-speech, and streaming work without rewriting business logic.
For native Anthropic workloads—including Anthropic's official SDKs and Claude Code CLI—point ANTHROPIC_BASE_URL to https://topai.id to call /v1/messages and /v1/messages/count_tokens directly. Extended thinking blocks, system prompts, and prompt caching remain fully preserved while consolidating billing into a single TOP Points wallet.
Modern agentic IDEs such as TOP Code Desktop, Cursor, Windsurf, Cline, Roo Code, Continue.dev, and OpenCode repeatedly pass large repository trees and tool calls on every turn. Combining Claude Sonnet / Opus on Per-Request flat pricing gives engineering teams frontier reasoning and clean multi-file diffs without fearing 100K-token context bills.
For high-frequency tasks—writing unit tests, scaffolding boilerplate, generating SQL migrations, or running automated PR reviews—DeepSeek V4 Flash/Pro, Qwen Coder, and GPT reasoning models deliver exceptional intelligence-per-dollar. Need hands-free resilience during peak traffic? Route requests through router-request (flagship failover) or router-token (lowest-cost failover).
Yes. In n8n, Make, Flowise, Dify, or custom Node/Python bot servers, configure any OpenAI-compatible credential with Base URL https://topai.id/v1 and your TOP AI key. Because TOP AI emits SSE keepalive heartbeats every 10 seconds during long reasoning responses, reverse proxies, load balancers, and serverless edge functions stay connected reliably.
Check your balance programmatically at zero cost anytime via GET https://topai.id/v1/balance (0 TP) to trigger automated Slack, Telegram, or email alerts inside your DevOps monitoring pipeline before your balance runs low.
Beyond chat and reasoning LLMs, TOP AI consolidates multimodal endpoints under one API key and one balance. Generate high-resolution visual assets via /v1/images/generations (or interactively inside the browser Image Studio at /studio), vectorize knowledge bases via /v1/embeddings for Retrieval-Augmented Generation (RAG), convert speech to text with /v1/audio/transcriptions, and synthesize natural audio with /v1/audio/speech.
Keeping text, vision, image generation, audio, and vector embeddings on one unified gateway drastically simplifies production secrets management, cost attribution, and compliance auditing for startups and digital agencies.
Isolated client budgets, smart failover routing, SHA-256 key hashing, and zero-drift financial ledgers.
Agencies and B2B software vendors frequently need to grant AI access to individual clients, staging environments, or engineering squads without handing over a master account key. TOP AI's Customer Keys (/dashboard/customer-keys) solve this natively by letting you mint isolated sub-keys with one-time, daily-reset, or monthly-reset TP quotas.
Each Customer Key can be restricted to an explicit allowlist of approved models, paused or resumed with one click without revoking integrations, monitored in real time, and exported to CSV for transparent client invoicing.
Relying on a single upstream AI vendor introduces single-point-of-failure outages during peak US/Asia traffic windows. TOP AI ships two managed virtual routers: router-request prioritizes top-tier flagship quality across premier models, while router-token optimizes maximum speed and cost efficiency.
When an upstream endpoint throttles or degrades, the router transparently fails over to the next healthy model in its priority chain so your end users experience continuous uptime without changing a single line of application code.
Every API key generated on TOP AI is displayed once at creation and stored strictly as an irreversible SHA-256 hash—never in plaintext. Upstream credentials and sensitive settings are encrypted at rest with AES-256-GCM. All payment callbacks require cryptographic HMAC signature verification before any TP balance is credited.
At the edge, TOP AI enforces Web Application Firewall (WAF) inspection against SQLi/XSS/SSRF/RCE payloads, strict Content-Security-Policy headers, per-key sliding-window rate limits (60 req/min default), disposable email blocking, and full audit logging across all account actions.
Earn 10% + 5% recurring commissions, KYC-verified referral links, 7-day attribution lock, and PWA mobile access.
Developers, technical educators, YouTubers, and community founders can monetize recommendations through TOP AI's 2-Tier Affiliate Program. Earn 10% commission on every paid top-up made by direct referrals (Tier 1) and 5% passive commission on paid top-ups from their sub-referrals (Tier 2), credited automatically as non-expiring TOP Points.
To keep the ecosystem fair and abuse-free, referral codes and affiliate links are activated automatically right after identity verification (KYC) is approved by Admin. Whenever a prospective member clicks your referral link, a dual Cookie + Browser Cache first-touch attribution lock secures your credit for a full 7 days.
Every page of TOP AI—from the public pricing catalog to the complete member dashboard, USDT FX calculator, API keys, usage charts, and support tickets—is audited for zero horizontal overflow on 390px smartphones.
Mobile visitors can install TOP AI directly to their phone's Home Screen as a lightweight Progressive Web App (PWA) shortcut—one tap on Android Chrome or Share → Add to Home Screen on iOS Safari—for instant app-like access without App Store downloads.
Sign up in 30 seconds, claim 5,000 TP free credits, and ship to Claude, GPT, Gemini, DeepSeek V4, and Flux with zero monthly lock-in.
Call router-request or router-token for automated multi-provider routing. If an upstream saturates, traffic shifts cleanly with zero downtime.
Issue tp-cust-* keys for clients or engineering teams with independent budgets, daily/monthly caps, and strict model allowlists.
Credits never expire. Every call records exact tokens, latency, and cost — failed 503 upstream requests are strictly billed 0 TP.
One unified key unlocks chat, reasoning, vision, embeddings, audio transcription, and Flux image generation.
Track real-time token consumption, separate regular vs reward wallets, and climb the weekly prize Leaderboard.
Total tokens processed
0
accumulated across all endpoints
Total requests served
0
recorded atomically on ledger
Active models online
114
chat, reasoning, vision, and Image Studio
Track active global builders and compete for 40,000 TP in weekly Leaderboard prizes.
View Leaderboard