Tokfai

OpenAI-compatible image & chat API

One API for chat and image — plug into Cursor, Cherry Studio, the OpenAI SDK, or your own app.

Same endpoints and request shapes as OpenAI. Buy prepaid credits, create an sk-tokfai_… key, and start calling models in minutes.

Works with

CursorCherry StudioOpenAI SDKCustom App

https://api.tokfai.com/v1

Core use cases

Three API surfaces — chat, image, and desktop client integration — all on the same OpenAI-compatible base URL.

Chat API
Send messages via POST /chat/completions. Stream or batch responses with models like gpt-5.4.
Endpoint
POST /chat/completions
Starter model
auto-fast
Chat API docs
Image API
Generate images with text-to-image or image-to-image via POST /v1/images/generations.
Endpoint
POST /v1/images/generations
Starter model
nano-banana
Image API docs
Developer tools integration
Point Cursor or Cherry Studio at api.tokfai.com/v1 with your sk-tokfai_… key — no code changes required.
Endpoint
https://api.tokfai.com/v1
Starter model
auto-fast
Integration guide

How it works

From sign-up to your first API call in five steps.

  1. 1

    Sign in

    Create a Tokfai account or log in with your existing credentials.

  2. 2

    Buy credits

    Starter ¥29.9 — prepaid balance powers every API call.

  3. 3

    Create API key

    Issue a sk-tokfai_… key from the dashboard and store it securely.

  4. 4

    Call the API

    Point OpenAI SDK, Cursor, Cherry Studio, or your app at api.tokfai.com/v1. Test chat in Chat Playground and images in Image Playground.

  5. 5

    Monitor usage

    Watch requests, credits charged, and ledger entries update in real time.

Developer quick reference

Swap your base URL and Authorization header — keep the rest of your OpenAI-compatible code unchanged.

Base URLhttps://api.tokfai.com/v1
API key formatsk-tokfai_...
StarterStarter ¥29 = 10,000 credits
BillingSuccessful calls debit credits. Failed calls are not charged.
PlaygroundChat Playground supports chat models. Image Playground supports image models. Video models will use a separate playground later.
Authorization exampleBearer sk-tokfai_xxx
Chat Playground/dashboard/playground