Studio: generate image
studio_generate_imageGenerate a single image via the Studio model catalog (call list_studio_models for keys/pricing). SYNC — the asset URL comes back in the result. SPENDS CREDITS (per-model, see creditCost). Reference images can be passed as URLs (use import_asset_from_url / create_upload first if needed). negativePrompt applies only to models whose capabilities include supportsNegativePrompt (e.g. NOT BytePlus/Seedream); on other models it is ignored, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| modelKey | No | ||
| aspectRatio | No | ||
| referenceMode | No | ||
| thinkingLevel | No | P-Image Ideogram reasoning effort; omit for other image models | |
| negativePrompt | No | Ignored on models without supportsNegativePrompt (see list_studio_models). | |
| referenceImages | No | Reference image URLs |