Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Image & Text generation
The various methods for Image and Text Generation Settings are listed below:
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
Request Body
Sample Response
Proxied JSON response from the GenAI service.
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
Request Body
Sample Response
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
Request Body
Sample Response
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
Request Body
Sample Response
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
Request Body
Sample Response