aiPhotoshoot

Text To Image

Generate image from text prompt using AI models (async).

Args: request: TextToImageRequestDTO with prompt, style, and model parameters background_tasks: FastAPI background tasks db: Database session user: User object

Returns: dict: Contains task ID for polling

post/api/v1/aiPhotoshoot/text-to-image

Request body

promptstring required
stylestring nullable
image_modelstring nullable
domain_idstring required
aspect_ratiostring nullable
stepsinteger nullable
seedinteger nullable
widthinteger nullable
heightinteger nullable
numSamplesinteger nullable
ignore_creditsboolean nullable
product_imagestring nullable
reference_image_urlstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/v1/aiPhotoshoot/text-to-image:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.