One OpenAI-Compatible API Key for GPT, Claude, DeepSeek, Gemini and Qwen

Singapore startups and indie developers rarely stick to one model. You might use GPT for one feature, Claude for long documents, DeepSeek for cost-sensitive batch jobs and Qwen or Gemini for comparison. Doing that directly means a separate account, billing setup and key for each vendor.

TokenSpark gives you one OpenAI-compatible API key and one base_url for all of them, billed from a single prepaid balance. This guide covers setup, billing and the command-line tool.

What OpenAI-compatible means

You send requests in the same format as the OpenAI API. Existing code only needs a new base_url and API key; after that, you switch between GPT, Claude, DeepSeek, Gemini and Qwen by changing the model name.

  • base_url: https://api.tokenspark.app/v1
  • Works with the OpenAI SDK and Cursor.
  • The full model list and request details are in /docs.

How to get your API key

Usage is deducted from a prepaid balance, so you only pay for what you call.

  1. Open tokenspark.app and choose an API plan or TokenSpark Credits. Prices are shown on the product page.
  2. Pay with Visa/Mastercard, USDT/USDC, Alipay or WeChat Pay.
  3. Check your email for a redemption code and your order number.
  4. Enter the code at /redeem. Due to high order volume, delivery usually takes 1–2 business days.
  5. Add your API key to your code or tools.

Setting it up in the OpenAI SDK and Cursor

In the OpenAI SDK, create the client with your TokenSpark key as api_key and https://api.tokenspark.app/v1 as base_url. Then set model to whichever model you want to call.

In Cursor, open the model settings, enter your key as the OpenAI API key and override the base URL with https://api.tokenspark.app/v1.

Use it from the terminal with the TokenSpark CLI

If you want to try models without writing code, use the CLI. It needs Node.js 18 or later.

  1. Install on macOS or Linux: curl -fsSL https://tokenspark.app/dl/install.sh | sh
  2. On Windows, run: npx -y https://tokenspark.app/dl/tokenspark-cli.tgz
  3. Log in with your key: tokenspark login sk-...
  4. Chat with a model: tokenspark chat "Hello" -m model-name
  5. List models with tokenspark models and check your balance with tokenspark balance.

Why this suits Singapore startups

A single key keeps experiments cheap and admin light.

  • No separate vendor accounts: one key, one balance, many models.
  • Prepaid pay-as-you-go: top up what you need and avoid surprise invoices.
  • Easy model comparison: change one string to test another model.
  • Pay by card, USDT/USDC, Alipay or WeChat Pay.

Good to know

Per-model rates are listed in /docs and on the product page and may change. TokenSpark is not affiliated with OpenAI, Anthropic, Google, DeepSeek or Alibaba. Track orders at /track and contact /help for support.

Which models can I call with one key?

GPT, Claude, DeepSeek, Gemini and Qwen. See /docs or run tokenspark models for the full list.

What base_url should I use?

https://api.tokenspark.app/v1, which works with the OpenAI SDK and Cursor.

How am I billed?

Usage is deducted from your prepaid balance per call. Rates are in /docs and on the product page.

How long until my key is ready?

Due to high order volume, delivery usually takes 1–2 business days. Track progress at /track.

Do I need accounts with each AI vendor?

No. One TokenSpark key covers all supported models.