Credits
- Your account holds a single credit balance, shared by all of your API keys.
- Credits are denominated in USD.
- Add credits from your Deepshi dashboard. Top-ups apply immediately.
- Failed requests (4xx) are not billed.
How usage is priced
Pricing is per model, shown on deepshi.ai in USD. Text models are priced per token, with separate input and output rates per 1M tokens. Image models are priced per generated image or per megapixel, and for some models the rate depends on the resolution or quality you request. Video models are priced per second of output, and music models per track or per minute. Every response reports the exact amount inusage.cost.total_cost, shown below.
Knowing exactly what a request cost
Every successful response includes ausage object. Deepshi adds usage.cost.total_cost, the exact USD amount the request deducted from your balance:
usage object, including cost. Standard OpenAI SDKs ignore the extra cost field, so it doesn’t break compatibility.
Checking your balance
Your current balance, spend, and per-request history are in the dashboard. Usage is metered in near real time; the displayed balance may lag actual usage by a few seconds under heavy load.Running out of credits
When your balance is exhausted, requests fail with402:
Next steps
Errors & status codes
Handle
402 and the other status codes in code.Models
Browse every model and how each one is priced.