Skip to main content

Overview

The Decart image models support optional settings to customize the generation behavior. These settings are passed to the generateImage() 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
If not specified, the model uses its default aspect ratio.

Landscape (16:9)

Ideal for wide scenes, panoramic views, and horizontal compositions:

Portrait (9:16)

Ideal for vertical compositions, portraits, and tall subjects:
Unsupported Aspect RatiosOnly 16:9 and 9:16 are supported. Other aspect ratios (e.g., 1:1, 4:3, 21:9) will generate a warning and fall back to the default behavior:

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

The size parameter is not supported. Use aspectRatio instead:
Warning output:

Implementation Details

Internal Conversion

When you specify an aspectRatio, it’s converted to an orientation value that’s sent to the Decart API:
  • "16:9""landscape"
  • "9:16""portrait"
This conversion is handled automatically by the provider (see 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