API Reference
Draw the image for one proposed ad
Separate from the copy so the wizard can open on the copy alone: drawing takes far longer than writing, and one request per ad lets each card fill in as soon as its own picture is ready.
AuthorizationBearer <token>
In: header
Path Parameters
domainId*string
Public UUID of the domain the campaign will belong to
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/ads/creative-image" \ -H "Content-Type: application/json" \ -d '{ "brandName": "Nike", "promptText": "best running shoes for flat feet", "headline": "Support Built In", "description": "Stability shoes with a wider platform." }'{ "imageBase64": "iVBORw0KGgoAAAANSUhEUg...", "imageMimeType": "image/jpeg"}