Developers
Torki Platform & the Torki API
Overview
The Torki API lets your own code call the four Torki models — torki-pulse, torki-orbit, torki-stellar and torki-cosmos — through an OpenAI-compatible interface. It is open to every Torki account: keys, credit, usage and the Playground live in Torki Platform, at platform.torkiai.com.
Get started
1. Sign in to Torki Platform
Use your Torki account; there is nothing to request. From the Torki app, go to Settings → API and click Open Torki Platform.
2. Add credit
The API is prepaid and new accounts start at $0: open Settings → Billing and buy a pack under Add funds. API credit is separate from your Torki app plan and from app usage credits.
3. Create a key and call the API
Create a key on API keys (it starts with tk_live_ and is shown only once), point any OpenAI SDK at https://platform.torkiai.com/v1 and pick a model. The full walkthrough, with code, is in Getting Started with the Torki API.
Torki API articles
- Getting Started with the Torki API — sign in, add credit, create a key, first request.
- Torki API Models and Pricing — the four models, prices per token and what is charged.
- API Credit, Billing and Invoices — packs in USD and INR, tax invoices, spend limits.
- API Keys, Organizations, Workspaces and Members — roles, invitations, service accounts.
- Usage Tiers and Rate Limits — tiers, per-minute limits and 429s.
- Images, Video and Object Detection — what the models can read, and what it costs.
- Thinking Models: Stellar and Cosmos — thinking budgets, reasoning tokens and timeouts.
- Streaming, Tool Calls and JSON Output — supported request fields.
- API Errors and How to Fix Them — every error code and what to do.
- Usage, Cost and Logs in Torki Platform — tracking tokens, spend and requests.
- API Privacy, Data and Content Moderation — what is kept and what is screened.
- API Request Limits and What Is Coming — request limits, Files and the Batch API.
The complete API reference is in Torki Platform under Docs, also at torkiai.com/platform/docs.
FAQ
Why does the API answer 402?
Your API credit has run out, or you haven't added any yet. Add credit in Torki Platform → Settings → Billing.
Is API credit the same as usage credits in the app?
No. They are separate balances with different packs, and one cannot pay for the other.
Do I need the API for Torki Code?
No. Torki Code uses your ordinary Torki account.