v14

latestOpenAPI 3.0.3raw.githubusercontent.com2023-06-27173980.4 KB

Create Images from Text V3

post/api/ai/images/generate/v3

Request body

height512 | 768

Height of the image to be generated. You can only choose between 512 and 768. All other values will be ignored.

width512 | 768

Width of the image to be generated. You can only choose between 512 and 768. All other values will be ignored.

promptstring[]

The prompt to be used to generate the image.

image_stylestring

The image style to be used to generate the image.

output_type'url' | 'blob'

The output type of the image to be generated.

Response

Success

idstring

The unique identifier associated with the image generation process.

statusstring

The status of the image generation process.

timestampinteger

The timestamp when the image generation request was processed.

processing_countinteger

The number of times the image has been processed to generate the output.

Example response

{
  "id": "e24ecea4-df19-41ac-8261-1f9f4f241bfe",
  "status": "success",
  "timestamp": 1687805059532,
  "content": "https://worqhat.s3.amazonaws.com/outputs/1687805044148.png",
  "processing_count": 1
}