Tokfai

AI API relay for developers and small teams

One key for GPT, Gemini, and image generation — OpenAI-compatible Base URL, credit ledger, usage logs, and failed-request checks.

Tokfai is a small-team API service you can actually buy and run. Start with the ¥99 trial pack to verify Base URL, API key, model calls, and billing — then scale if it fits. Ecommerce and UAV scenarios live on dedicated use-case pages.

https://api.tokfai.com

What you get

Text/code, image generation (async task_id), and client wiring — same Tokfai Base URL. Video is reserved / coming soon.

Text & code
GPT / Gemini via POST /v1/chat/completions or /v1/responses — scripts, tools, assistants, and copy drafts.
Endpoint
POST /chat/completions
Recommended model
auto-fast
Chat API docs
Image generation
Nano Banana via POST /v1/images/generations — submit returns task_id; poll for results. Success billed; failure/timeout usually not charged.
Endpoint
POST /v1/images/generations
Recommended model
nano-banana
Image API docs
Desktop client wiring
Point Cursor or Cherry Studio at api.tokfai.com/v1 with your sk-tokfai_… key — use Tokfai text models only in chat clients.
Endpoint
https://api.tokfai.com/v1
Recommended model
auto-fast
Integration guide

How it works

Sign up → top up ¥99 → create a key → set Base URL → call /v1/models and chat → check Usage / Credits.

  1. 1

    Sign up

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

  2. 2

    Top up ¥99

    Buy the ¥99 trial pack first — enough to verify the API without a large prepaid balance.

  3. 3

    Create an API key

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

  4. 4

    Wire Base URL and smoke-test

    Point your client at https://api.tokfai.com/v1, call GET /v1/models, then run a short chat (or Image Workbench for Nano Banana).

  5. 5

    Check Usage / Credits

    Confirm charged requests, failed-request behavior, and ledger entries before you scale spend.

Who it's for

Cherry Studio / Cursor setup · small tools, scripts, and side projects · ecommerce titles, detail copy, and image prompts · engineering materials, logs, and document tidy-up · start with ¥99 to verify the API, latency, and cost before you scale.

Who it's not for

Million-RPM workloads · model distillation · training-data supply · large-scale scraping · grey-market or illegal use · large buyers that need a formal SLA first · personal privacy / sensitive data processing as a self-serve offer.

Tokfai is in early public beta — start with a small top-up. If integration, billing, image tasks, or usage logs look wrong, email junpengpanchina@gmail.com for a human review.

Developer quick reference

Swap Base URL and Authorization — keep the rest of your OpenAI-compatible code.

Base URLhttps://api.tokfai.com/v1
API key formatsk-tokfai_...
Starter¥99 trial pack recommended (¥1 = 10,000 credits)
BillingSuccessful calls debit compute credits. Failed calls and image timeouts are usually not charged; Usage and Credits ledger are authoritative.
PlaygroundChat Playground is for text models only. Image Workbench is for Nano Banana image models via async tasks.
Authorization exampleBearer sk-tokfai_xxx
Chat Playground/dashboard/playground

Use-case pages

OpenAI-compatible API, ecommerce AI credits, and UAV engineering AI — dedicated landing pages.