Start a Fashio generation job
create_generationLaunch an AI fashion generation job with image inputs and model settings. Get a processing status immediately and poll for the finished output.
Instructions
Starts an AI fashion generation job. Deducts diamonds from the account that owns the API key. Call list_models first for valid toolId values and what each needs in images. Returns immediately with status 'processing' — poll get_generation for the result. Pass templateSetId to reuse a saved style (see list_template_sets) instead of picking fashion_model/venue/pose by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pose | No | A pose id from list_poses. | |
| ratio | No | 1:1 | 9:16 | 16:9 | 4:3 | 3:4 | 4:5 | auto | |
| images | No | Keys depend on toolId (e.g. garment_photo, fashion_model, venue, user_photo, jewelry_image). Values are URLs from upload_image / list_fashion_models / list_venues, or your own hosting. fashion_model and venue also accept a catalog id directly. | |
| toolId | No | See list_models. Required unless templateSetId is given. | |
| duration | No | ai_videos only, seconds (default 5). | |
| shotType | No | pro_studio only. | |
| jewelryType | No | jewelry_on_model only. | |
| stylePreset | No | pro_studio only. | |
| targetRatio | No | photo_reframe only — the output aspect ratio. | |
| customPrompt | No | Free-text instruction. Required for photo_edit. | |
| motionPrompt | No | ai_videos only — describes the motion. | |
| templateSetId | No | A saved style from create_template_set/list_template_sets. Fills in fashion_model/venue/pose/shotType/stylePreset/ratio; only the new garment's images are still required. | |
| backgroundColor | No | jewelry_on_model only, optional solid studio background. |