Skip to main content

1. Create your app

Sign up at tokengift.ai and create an app from the dashboard. You get:
API keys are shown once and stored hashed. Treat them like passwords — never ship them in client-side code.

2. Make your first request

TokenGift is OpenAI-compatible. If your app already uses an OpenAI SDK, change two lines:
Every response tells you where you stand:
Today we support POST /v1/chat/completions (streaming and non-streaming) with a curated model list — see Models & pricing. We say exactly what we support instead of claiming “full compatibility”.

3. Let users fund your app

Put your top-up link anywhere — a button, your README, your app’s settings page:
Users see a gift-card style page with clean amounts only (5/5 / 10 / 25/25 / 50). A 10purchaseputsexactly10 purchase puts **exactly 10.00** in your wallet — no fees, no shrinkage.

4. Handle an empty wallet

When the wallet can’t cover a request you get an actionable 402 — the error itself is your funding prompt. See Handle an empty wallet.