AI image generation
Generate images from a text prompt or use existing workspace assets as visual references. Model capabilities, accepted settings, and pricing vary, so discover the model before submitting a job.
1. Choose a model and capability
Replace MODEL_ID with an ID from the catalog. The model detail describes its
fields and any available pricing metadata. Check the supported aspect ratios and
required inputs rather than assuming every model accepts the same settings.
2. Generate a first image
Choose values supported by the selected model. --wait keeps the command running
until the job completes or the client reaches its waiting limit. A successful
wait returns an array of image results containing asset identifiers and URLs.
Generation can consume workspace credits; use a single image while refining a prompt.
3. Use a reference image
Upload your reference, wait until it is ready, and copy its asset UUID. Then discover a reference-capable model and submit:
Use comma-separated UUIDs for multiple_images. These inputs are asset IDs,
not file paths or public image URLs.
4. Refine supported settings
The CLI exposes --negative-prompt, --seed, and comma-separated style slugs
through --properties, in addition to aspect ratio and count. Their effect
depends on the model. A seed can help compare variations on models that support
it; it is not a guarantee of identical output across providers or model updates.
5. Track a longer job
Omit --wait when you want to submit now and check later:
Save the response, especially art_variation_id, then poll:
Image generation uses job_status values such as DONE and FAILED. With
--wait, the CLI polls every three seconds for up to 180 seconds. A client timeout
does not prove that the remote job failed; check the existing variation before
submitting another job.
6. Put the image to work
Review the result, then use its URL in a social draft or an image-editing command. Keep the asset ID when you need to retrieve a fresh URL or use the image as a later generation reference.
