Authorizations
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".
Body
Body
The resolution of the final output image. The allowed value is based on your subscription. Please refer to our pricing page for more details
512 <= x <= 1024
768
Provide the assets for photo editor
The name of image. This value is mainly used for your own identification of the image.
"Photo Editor image"
Deprecated: Please use .style.steps
instead. Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
3 <= x <= 6
Response
Success
Unique ID of the image. This value can be used in the get image project API to fetch additional details such as status
"cuid-example"
Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
10
The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
10