Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DecartAI/ai-sdk-provider/llms.txt
Use this file to discover all available pages before exploring further.
Available Models
Decart provides one high-quality image generation model through the AI SDK Provider:lucy-pro-t2i
Thelucy-pro-t2i model is a state-of-the-art text-to-image generation model that produces high-quality, photorealistic images from text prompts.
Model Capabilities
Supported Aspect Ratios
Thelucy-pro-t2i model supports two aspect ratios:
Landscape orientation - Ideal for wide scenes, landscapes, and horizontal compositions
Portrait orientation - Ideal for vertical compositions, portraits, and tall subjects
Model Limitations
Images Per Call
Images Per Call
The model generates one image per API call (
maxImagesPerCall = 1). To generate multiple images, make multiple calls to generateImage().Size Parameter
Size Parameter
The
size parameter from the AI SDK is not supported. Use aspectRatio instead to control image dimensions.If you pass a size parameter, you’ll receive a warning:Aspect Ratio Constraints
Aspect Ratio Constraints
Only
16:9 and 9:16 aspect ratios are supported. Other ratios will generate a warning:Model Selection
Create an image model using the.image() factory method:
Response Format
The model returns images in binary format with metadata:The image format is determined by the API response. Use libraries like
image-type to detect the format programmatically.Next Steps
Settings
Learn about aspectRatio and seed settings
Examples
See complete code examples