Developers

Torki Platform & the Torki API

2 min read · Checked against the product on 3 November 2026

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

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.