POST /api/v1/campaigns/generate. You describe what to change; the backend applies your instructions while preserving the parts of the image you want to keep.
You can also chain edits: set source_job_id to a previously completed edit job (campaign_ad_edit) to iterate on a prior edit.
Endpoint
Authentication
Request parameters
UUID of a completed
campaign_ad_generation job to use as the image source. You can also pass the UUID of a completed campaign_ad_edit job to chain edits.Instruction describing what to change in the image. Be specific about what should and should not change. Maximum 5,000 characters.
Up to 6 reference images to guide the edit. Each item can be an HTTPS URL, a data URL (
data:image/...;base64,...), or a raw base64 string.UUID of a stored Brand DNA record. Reinforces brand consistency during the edit.
Output controls. All subfields are optional.
Your own correlation ID for workflow or agent tracing. Maximum 200 characters.
String map echoed into the job payload and webhook delivery. Maximum 16 keys; each value up to 500 characters.
Example request
Response
Returns202 Accepted immediately.
Request identifier (e.g.
req_pi_...).Always
"job".Initial status:
"queued".Unix timestamp of when the request was created.
UUID of the background edit job. Pass this as
source_job_id to chain a subsequent edit.Polling for the result
completed:
data.ad.image_url— the edited image URL (when you useexpand=ad)data.payload.image_url— same URL available directly on the job payload