Billing
Get credits
GET
Returns the authenticated account's purchased credit total and lifetime request usage as USD amounts.
ApiKeyAuthheader
Authorization<token>Credit summary.
application/json- response
data*curl -X GET 'https://api.ohmygpt.com/v1/credits'Example Response
{ "data": { "total_credits": 0.1, "total_usage": 0.1 }}Estimate request cost POST
Estimates the upper-bound request cost without sending a provider request or charging the account. The model string is resolved the same way a request is, and the estimate uses the most expensive of the routes that could serve it at the caller's effective price (including contract pricing), because the serving route depends on availability at request time. Time-window pricing (peak/off-peak) is resolved at the current UTC time, so the estimate uses the tier that a request would be billed at right now.
Get fixed currency-to-coins rates GET
Next Page