Docs
this payday so far—·credit out ≤ fees in
1.0Quickstart
Three steps. Five minutes. Same models, lower price.
2.0What is a token
A token is a piece of a word. About four letters.
Models read and write in tokens.
We bill both sides: input tokens × your input price + output tokens × your output price.
Your price is the official price minus your tier's discount.
Output counts every token the model writes, its thinking too.
3.0Code
Pick your tool. Copy the lines.
change these 2 lines
- The answer carries the model's own id.
- Model ids look like
—. Full list:GET /v1/models. - We add one hop. The bill is on every answer.
- We keep the bill. Never your prompts.
4.0Endpoints
Base URL —. Send your key as Authorization: Bearer sk-tokens-… or x-api-key: sk-tokens-….
Press a ticket. Try it builds the call for you.
The Chat page and Try it use your wallet, not a key: POST /v1/chat with the same model and messages. Same bill.
Wallet sign-in. Connecting your wallet never asks for a signature. The first time you spend (chat with credit, make a key, sell, cancel, plug, buy), your wallet signs one free message: POST /v1/auth/nonce → sign → POST /v1/auth/session → Authorization: Bearer sess_… for 24 h. It moves no funds.
Paying for credit. POST /v1/credit/buy returns a Solana Pay link. Pay in SOL or USDC from any wallet: scan the QR with your phone, or open the link. The credit lands when the payment is seen on chain.
5.0Prices
Per 1M output tokens. Official price, then yours by tier.
Input tokens are billed too, at their own price with the same discount. GET /v1/models lists both: price_in and price_out.
Your price · per 1M
—What $1 buys
—6.0Rate limits
By tier. Your tier is read from your bag at every payday.
| Tier | Bag | Requests / min | Keys | At once |
|---|
Bought credit with no bag counts as —. Limits are per wallet, not per key.
Also on the API: one wallet starts at most 60 requests per 10 s. One IP: 600 requests a minute, 32 at once. Body up to 4 MB. A 429 carries Retry-After (seconds).
7.0Errors
Plain JSON. One error.code, one error.message.
/v1/chat/completions answers in the OpenAI shape. /v1/messages answers in the Anthropic shape: { "type": "error", "error": { "type", "message", "code" } }.
8.0The one rule
Credit out ≤ fees in.
Every 10 minutes, that payday's trading fees become credit.
It is split by bag size.
No fees, no credit. Never a loan.
8.1FAQ
Is it the real model?
Yes. Your request goes to the model you named. The answer carries the model's own id.
Do you log my prompts?
No. We keep the bill: model, tokens, cost, time. Not your messages.
What if my credit runs out?
You get a 402. Buy credit on the Market, or wait for the next payday — under 10 minutes. Credit lands every 10 minutes.
Which SDKs work?
Anything that speaks the OpenAI or Anthropic API shape. Claude Code, the OpenAI SDK, the Anthropic SDK, plain curl.
Can my bot use it?
Yes. Make a key from a script with POST /v1/key (your wallet signs one free message). Then call the API like any OpenAI client. See the Solana bots tab in 3.0.
Can I sell credit I do not use?
Yes. Pick a discount on the Market. When a coder buys, you get paid in $TOKENS.
Connect your wallet to make a key. Connecting never asks for a signature.