Skip to main content
POST
Generate ad images at an aspect ratio

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

The scene to generate.

Maximum string length: 2000
aspect_ratio
enum<string>
required

1:1 feed, 4:5 Instagram and Facebook feed, 9:16 Stories and Reels, 1.91:1 link and landscape placements.

Available options:
1:1,
4:5,
9:16,
1.91:1
product_id
integer

Optional. A product of this company whose images and details the images are based on.

reference_image_url
string

Optional https image to base the images on.

count
integer
default:1
Required range: 1 <= x <= 4

Response

Accepted. The generation is queued; poll it with GET.

generation
object
status
integer
meta
object