v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Media

Generate photo

Generates a new photo using a text prompt and returns the image URL. This action costs credits.

post/v0/assistant/photo/generate

Request body

promptstring required

Text prompt for image generation.

aspect_ratiostring nullable

Aspect ratio of the generated image.

output_formatstring nullable

Format of the output image.

output_qualityinteger nullable

Quality of the output image (1-100).

safety_tolerancenumber nullable

Safety tolerance for generation.

prompt_upsamplingboolean nullable

Whether to use prompt upsampling.

Response

Successful Response

infostring required