Skip to main content
The Deepshi API is prepaid and usage-based. You add credits to your account, and each request draws down your balance based on what it uses.

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.
Because every key shares one balance, you can issue separate keys per app or environment without splitting your credits across them.

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 in usage.cost.total_cost, shown below.

Knowing exactly what a request cost

Every successful response includes a usage object. Deepshi adds usage.cost.total_cost, the exact USD amount the request deducted from your balance:
When streaming, the final chunk carries the same 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 with 402:
Top up your balance to resume. See Errors & status codes for handling this in code.

Next steps

Errors & status codes

Handle 402 and the other status codes in code.

Models

Browse every model and how each one is priced.