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
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.
- Endpoint
- POST /chat/completions
- Starter model
- auto-fast
- Endpoint
- POST /v1/images/generations
- Starter model
- nano-banana
- Endpoint
- https://api.tokfai.com/v1
- Starter model
- auto-fast
How it works
From sign-up to your first API call in five steps.
- 1
Sign in
Create a Tokfai account or log in with your existing credentials.
- 2
Buy credits
Starter ¥29.9 — prepaid balance powers every API call.
- 3
Create API key
Issue a sk-tokfai_… key from the dashboard and store it securely.
- 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
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.
https://api.tokfai.com/v1sk-tokfai_...Starter ¥29 = 10,000 creditsSuccessful calls debit credits. Failed calls are not charged.Chat Playground supports chat models. Image Playground supports image models. Video models will use a separate playground later.Bearer sk-tokfai_xxx