Image & Text generation

AI Tools

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

Field

Data Type

Requirement

Description

prompt

string

Mandatory

Text prompt for image generation

width

integer

Mandatory

Width of the generated image in pixels

height

integer

Mandatory

Height of the generated image in pixels

Sample Request

POST https://jivoxapis.api.jivox.com/v2/accounts/:accountId/imageGen

Request Body

{ "prompt": "A modern product banner for a sports brand", "width": 728, "height": 90 }

Sample Response

Proxied JSON response from the GenAI service.

{ "imageUrl": "https://cdn.example.com/generated/img-001.png" }

Generate Text from Prompt

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

Parameters

Field

Data Type

Requirement

Description

prompt

string

Mandatory

Text prompt for image generation

Sample Request

POST https://jivoxapis.api.jivox.com/v2/accounts/:accountId/textGen

Request Body

{ "prompt": "Write a catchy headline for a summer sale" }

Sample Response

{ "text": "Beat the Heat — Summer Sale Up to 50% Off!" }

Generative fill (outpaint)

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

Parameters

Field

Data Type

Requirement

Description

image

string

Mandatory

Image URL or base64-encoded image data

width

integer

Mandatory

Target width of the output image

height

integer

Mandatory

Target height of the output image

prompt

string

Optional

Optional text hint to guide the fill

Sample Request

POST https://jivoxapis.api.jivox.com/v2/accounts/:accountId/outpaint

Request Body

{ "image": "https://cdn.example.com/original.jpg", "width": 300, "height": 250, "prompt": "Extend the background with a blurred outdoor scene" }

Sample Response

{ "imageUrl": "https://cdn.example.com/generated/outpaint-001.png" }

Background Removal

Removes the background from an image.

Parameters

Field

Data Type

Requirement

Description

image

string

Mandatory

Image URL or base64-encoded image data

Sample Request

POST https://jivoxapis.api.jivox.com/v2/accounts/:accountId/removeBg

Request Body

{ "image": "https://cdn.example.com/product.jpg" }

Sample Response

{ "imageUrl": "https://cdn.example.com/generated/no-bg-001.png" }

Trim and Remove Background

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

Parameters

Field

Data Type

Requirement

Description

image

string

Mandatory

Image URL or base64-encoded image data

Sample Request

POST https://jivoxapis.api.jivox.com/v2/accounts/:accountId/trimRemoveBg

Request Body

{ "image": "https://cdn.example.com/product-padded.jpg" }

Sample Response

{ "imageUrl": "https://cdn.example.com/generated/trimmed-001.png" }