Skip to main content
GET
Returns the credits a top-up of amount USD would buy, using the workspace’s current plan rate. Use it to show a live preview for a custom amount. Nothing is charged and no state changes. The server always computes credits. Clients never send a credit amount.
Only the workspace owner can call this endpoint. It is protected by the billing:manage permission.

Request

Headers

string
required
Bearer token (JWT or API key)

Query Parameters

number
required
Top-up amount in USD. Must be between 10 and 1000.

Response

number
The amount you asked to quote
integer
Credits this amount buys, rounded down
number
Credits per $1 at the current plan rate
string
Plan used for the rate (creator or pro)

Errors