Available Models
lucy-pro-t2i
Text-to-image (Pro quality)
lucy-pro-i2i
Image-to-image (Pro quality)
Model Specifications
| Model | Default Resolution | Supported Resolutions | Processing Mode |
|---|---|---|---|
lucy-pro-t2i | 720p (1280x704) | 720p, 480p | Sync + Async |
lucy-pro-i2i | 720p (1280x704) | 720p, 480p | Sync + Async |
Usage
Accessing Models
Use themodels.image() factory function to access image model definitions:
Model Definition Properties
Input Requirements
lucy-pro-t2i (Text-to-Image)
Generate images from text prompts.- prompt: Detailed description of the desired image (1-1000 characters)
- seed: Random seed for reproducible results (optional)
- resolution: Output resolution - “720p” (1280x704) or “480p” (default: “720p”)
- orientation: Image orientation (optional)
lucy-pro-i2i (Image-to-Image)
Transform existing images with prompts.- prompt: Description of desired transformation (1-1000 characters)
- data: Input image in various formats (File, Blob, ReadableStream, URL, string URL)
- seed: Random seed for reproducible results (optional)
- resolution: Output resolution - “720p” (1280x704) or “480p” (default: “720p”)
- enhance_prompt: Let AI enhance your prompt for better results (optional)
File Input Types
Image models accept multiple file input formats:Synchronous Processing
Image models support instant synchronous processing via the process API:Asynchronous Processing
For longer processing times or background jobs, use the queue API:Examples
Text-to-Image Generation
Image-to-Image Transformation
Using Local Files
Batch Processing with Seeds
Using URL Inputs
React Native Example
Type Definitions
Performance Considerations
- Sync vs Async: Use sync (process API) for immediate results, async (queue API) for background jobs
- Resolution: 720p provides highest quality, 480p is faster and uses less bandwidth
- Prompt Quality: Detailed, specific prompts (50-200 chars) yield best results
- Seeds: Use same seed for reproducible results across generations
- Enhance Prompt: Enable for I2I transformations to improve interpretation
Best Practices
-
Choose the right API:
- Use
client.process()for interactive applications needing instant results - Use
client.queue.submit()for batch processing or background jobs
- Use
-
Optimize prompts:
- Be specific and descriptive (e.g., “sunset over ocean” → “vibrant orange sunset over calm ocean with distant sailboats”)
- Include style keywords (e.g., “photorealistic”, “watercolor”, “anime style”)
- Use 50-200 characters for optimal results
-
Use seeds effectively:
- Set fixed seed when iterating on prompts to isolate prompt changes
- Generate variations by changing seed while keeping prompt constant
- Document seeds for reproducible results
-
Handle resolution appropriately:
- Use 720p for production/final output
- Use 480p for prototyping or when bandwidth is limited
-
Leverage prompt enhancement:
- Enable
enhance_promptfor I2I to improve transformation quality - Useful when working with simple or vague prompts
- Enable
Error Handling
Queue API Error Handling
Resolution Details
720p Resolution
- Dimensions: 1280x704 pixels
- Aspect Ratio: ~16:9
- Best for: Production use, high-quality output
- File size: Larger (~2-5MB)
480p Resolution
- Dimensions: ~853x480 pixels
- Aspect Ratio: ~16:9
- Best for: Prototyping, previews, bandwidth-limited scenarios
- File size: Smaller (~500KB-2MB)
Related
Real-time Models
Real-time streaming models
Video Models
Video generation models
Process Client
Process client API reference
Queue Client
Queue client API reference
Image Generation Guide
Image generation guide