Image & Text generation

The various methods for Image and Text Generation Settings are listed below:

  1. Generate image from prompt
  2. Generate text from prompt
  3. Generative fill (outpaint)
  4. Background removal
  5. Trim and remove background

Generate Image from Prompt

Generates an image from a text prompt using the GenAI service.

Parameters

FieldData TypeRequirementDescription
promptstringMandatoryText prompt for image generation
widthintegerMandatoryWidth of the generated image in pixels
heightintegerMandatoryHeight of the generated image in pixels

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

Proxied JSON response from the GenAI service.

JSON
Copy

Generate Text from Prompt

Generates text (e.g. headlines, copy) from a text prompt.

Parameters

FieldData TypeRequirementDescription
promptstringMandatoryText prompt for image generation

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Generative fill (outpaint)

Extends or fills an image using generative AI (outpainting / generative fill).

Parameters

FieldData TypeRequirementDescription
imagestringMandatoryImage URL or base64-encoded image data
widthintegerMandatoryTarget width of the output image
heightintegerMandatoryTarget height of the output image
promptstringOptionalOptional text hint to guide the fill

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Background Removal

Removes the background from an image.

Parameters

FieldData TypeRequirementDescription
imagestringMandatoryImage URL or base64-encoded image data

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Trim and Remove Background

Trims whitespace/padding and removes the background from an image.

Parameters

FieldData TypeRequirementDescription
imagestringMandatoryImage URL or base64-encoded image data

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Feed Processing

Batch generative Fill

Runs generative fill on an entire feed column asynchronously.

Parameters

FieldData TypeRequirementDescription
userEmailstringOptionalEmail to notify on completion
adIdintegerMandatoryAd ID
adUnitIdintegerMandatoryAd unit ID
dataServiceIdintegerMandatoryData service (feed) ID.
columnstringMandatoryFeed column name containing image URLs
assetIdstringMandatoryAsset identifier
assetPropertystringMandatoryAsset property name (e.g. jvx_image)
filterarray of {key: value}OptionalRow filters to scope the batch
widthintegerMandatoryTarget width of the output image
heightintegerMandatoryTarget height of the output image

advId is injected server-side from the authenticated account.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

Proxied JSON response with job status.

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard