Image Generation
Generate new images from text descriptions using AI image models
The --image-generate flag creates new images from text prompts using AI image generation models.
Quick Start
praisonai "A sunset over mountains with a lake reflection" --image-generateUsage
Basic Generation
praisonai "A futuristic city at night with neon lights" --image-generateExpected Output:
Image generated successfully!
URL: https://oaidalleapiprodscus.blob.core.windows.net/...With Specific Model
praisonai "A cat wearing a top hat" --image-generate --llm chatgpt-image-latestSupported Models
--llm accepts only these values today:
| Model | Status |
|---|---|
chatgpt-image-latest | Latest ChatGPT image model |
gpt-image-1.5, gpt-image-1-mini | GPT Image 1.x |
gpt-image-1 | Retired by OpenAI 2026-10-23 |
dall-e-3 | CLI default — retired by OpenAI 2026-05-12 |
dall-e-2 | Retired by OpenAI 2026-05-12 (still used by ImageAgent.variation()) |
Prompt Tips
Be Specific
# Good
praisonai "A golden retriever puppy playing in autumn leaves, warm sunlight, shallow depth of field" --image-generate
# Less specific
praisonai "A dog" --image-generateInclude Style
praisonai "A mountain landscape in the style of Bob Ross, oil painting" --image-generateSpecify Composition
praisonai "Close-up portrait of a robot, dramatic lighting, cyberpunk style" --image-generateUse Cases
Marketing
praisonai "Professional product photo of a coffee cup on marble surface, minimalist style" --image-generateCreative Projects
praisonai "Fantasy book cover with a dragon and castle, epic style" --image-generateConcept Art
praisonai "Sci-fi spaceship interior, clean design, blue accent lighting" --image-generateSocial Media
praisonai "Inspirational quote background, soft gradient colors, modern design" --image-generateCombine with Other Features
# With verbose output
praisonai "A serene Japanese garden" --image-generate --verbose