Skip to main content

Overview

Decart image models support standard AI SDK image generation settings with some limitations. This page describes the supported and unsupported settings.

Supported Settings

prompt

string
required
Text description of the image to generate.The prompt guides the image generation process and should be descriptive and specific.

seed

number
Random seed for reproducible image generation.Using the same seed with the same prompt will produce the same image.

aspectRatio

'16:9' | '9:16'
Aspect ratio of the generated image.Only two aspect ratios are supported:
  • "16:9" - Landscape orientation
  • "9:16" - Portrait orientation
Other aspect ratios will produce a warning and be ignored.

Unsupported Settings

The following settings are not supported and will produce warnings:

size

{ width: number; height: number }
Not supported. Specifying this parameter will produce a warning of type unsupported-setting.Use aspectRatio instead to control image dimensions.

n (number of images)

number
Limited support. Decart image models always generate exactly one image per call (maxImagesPerCall = 1).To generate multiple images, make multiple calls.

Handling Warnings

When using unsupported settings, the model returns warnings in the response:

Standard Request Options

In addition to model-specific settings, you can also use standard AI SDK request options:

headers

Record<string, string>
Custom HTTP headers to include with the request.

abortSignal

AbortSignal
AbortSignal to cancel the request.