For the complete documentation index, see llms.txt. This page is also available as Markdown.

Credits

Blotato credits pay for AI generations such as videos and images. Use these endpoints to check your remaining credit balance, see current pricing, and buy more credits. Two endpoints:

Credits belong to a single account and are non-transferable. Confirm the account email from Get Credit Balance before you buy, so the credits land on the account you intend.


Get Credit Balance

Endpoint

Base URL: https://backend.blotato.com/v2

URL: /credits

Method: GET

Description

Returns your remaining credits, the email of the account the API key belongs to, and current purchase pricing.

Response

Status Code: 200 OK

Field
Type
Description

creditsRemaining

integer

Credits left on the account.

accountEmail

string

Email of the account the API key belongs to.

purchaseQuantityRange

object

Allowed purchase range, with min and max credits per purchase.

pricePer1000CreditsUsd

number

Price in US dollars per 1,000 credits.

Example response:

Errors

Status
Reason

401

Missing or invalid API key.

500

Server error.


Buy Credits

Endpoint

URL: /credits

Method: POST

Description

Creates a Stripe Checkout link to buy credits. Creating the link does not charge anything. The account owner opens the link in a browser and completes payment there, and the purchased credits land on this account. Buy between 1,000 and 10,000 credits per request.

Confirm the account email from Get Credit Balance first, since credits are non-transferable between accounts.

Request Body

Field
Type
Required
Description

quantity

integer

Yes

Credits to buy. Between 1,000 and 10,000.

referral

string

No

Optional referral code.

Response

Status Code: 201 Created

Field
Type
Description

checkoutUrl

string

Stripe Checkout URL. Open it in a browser to complete payment. No charge happens until checkout completes.

Example response:

Errors

Status
Reason

400

The quantity is outside the 1,000 to 10,000 range, or the request body is invalid.

401

Missing or invalid API key.

429

Rate limit exceeded (10 requests per hour).

500

Server error.


Pricing

Credits cost $6.00 per 1,000 credits. Read the current price from Get Credit Balance (pricePer1000CreditsUsd), since pricing changes over time.

Last updated