Skip to main content
GET
Estimate image credits

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".

Query Parameters

tool
enum<string>
required

The create endpoint to price, named by its path. For example ai-image-editor for POST /v1/ai-image-editor.

Available options:
ai-image-generator,
ai-image-editor,
ai-image-upscaler,
body-swap,
head-swap,
face-swap-photo,
ai-clothes-changer,
ai-face-editor,
ai-gif-generator,
ai-headshot-generator,
ai-meme-generator,
ai-qr-code-generator,
image-background-remover,
photo-colorizer
Example:

"ai-image-editor"

model
string

The model of the create request. Used by ai-image-generator, ai-image-editor.

Example:

"nano-banana-2.1"

resolution
string

The resolution of the create request. Used by ai-image-generator, ai-image-editor, body-swap. One of 640px, 1k, 2k, 4k.

Example:

"2k"

image_count
integer

The image_count of the create request. Used by ai-image-generator, ai-image-editor. Defaults to 1.

Example:

4

scale_factor
number

The scale_factor of the create request. Used by ai-image-upscaler. One of 2, 4.

mode
string

The style.mode of the create request. Used by ai-image-upscaler. One of preserve, balanced, creative. Defaults to balanced.

Response

Success

Success

estimated_credits
integer
required

Credits a create request with these fields charges.

Example:

150