Overview
The Decart image models support optional settings to customize the generation behavior. These settings are passed to thegenerateImage() function alongside the model and prompt.
Supported Settings
aspectRatio
string
default:"undefined"
Controls the aspect ratio of the generated image. Only two values are supported:
"16:9"- Landscape orientation"9:16"- Portrait orientation
Landscape (16:9)
Ideal for wide scenes, panoramic views, and horizontal compositions:Portrait (9:16)
Ideal for vertical compositions, portraits, and tall subjects:seed
number
default:"undefined"
Sets a seed value for deterministic, reproducible image generation. When you use the same seed with the same prompt and settings, you’ll get the same image.
- Use any integer value
- Useful for A/B testing and iterative refinement
- Omit for random generation
Basic Usage
Reproducible Results
Generate the same image multiple times:Iterative Refinement
Test variations by changing only the seed:Unsupported Settings
The following AI SDK settings are not supported by Decart models and will generate warnings if used:
size
Thesize parameter is not supported. Use aspectRatio instead:
Implementation Details
Internal Conversion
When you specify anaspectRatio, it’s converted to an orientation value that’s sent to the Decart API:
"16:9"→"landscape""9:16"→"portrait"
decart-config.ts:14).
API Request Format
Settings are sent as form data to the Decart API:Complete Example
Next Steps
Models
Learn about lucy-pro-t2i capabilities
Examples
See real-world usage examples