Skip to main content
POST
Generate AI image ad creatives for the team. Kicks off an async batch (Inngest) and returns a batchId immediately — poll get_generation_status for results. Charges credits: image cost per generation (aspect ratio × variation). Requires reference images or detailed instructions.

Authorizations

Authorization
string
header
required

AdStellar API key (ast_live_...)

Body

application/json
aspectRatios
enum<string>[]
required

One or more aspect ratios — one generation per ratio × variationCount.

Required array length: 1 - 10 elements
Available options:
1:1,
4:5,
9:16,
16:9
instructions
string

Detailed creative direction. Required when no referenceAssetIds are given.

Maximum string length: 4000
variationCount
integer

Variations per aspect ratio (default 1).

Required range: 1 <= x <= 10
referenceAssetIds
string<uuid>[]

Media asset ids to use as visual references (from search_assets).

Maximum array length: 5
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
brandKitId
string<uuid>

Brand kit to ground the creative in.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
productId
string<uuid>

Product to feature (resolves brand kit + assets).

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
renderMode
enum<string>

Quality/speed tradeoff (default express).

Available options:
express,
studio
workspaceId
string<uuid>

Workspace to generate in (must be one this credential can access). Omit for the primary workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Tool result