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

bash
praisonai "A sunset over mountains with a lake reflection" --image-generate

Usage

Basic Generation

bash
praisonai "A futuristic city at night with neon lights" --image-generate

Expected Output:

Image generated successfully!
URL: https://oaidalleapiprodscus.blob.core.windows.net/...

With Specific Model

bash
praisonai "A cat wearing a top hat" --image-generate --llm chatgpt-image-latest

Supported Models

--llm accepts only these values today:

ModelStatus
chatgpt-image-latestLatest ChatGPT image model
gpt-image-1.5, gpt-image-1-miniGPT Image 1.x
gpt-image-1Retired by OpenAI 2026-10-23
dall-e-3CLI default — retired by OpenAI 2026-05-12
dall-e-2Retired by OpenAI 2026-05-12 (still used by ImageAgent.variation())

Prompt Tips

Be Specific

bash
# Good
praisonai "A golden retriever puppy playing in autumn leaves, warm sunlight, shallow depth of field" --image-generate

# Less specific
praisonai "A dog" --image-generate

Include Style

bash
praisonai "A mountain landscape in the style of Bob Ross, oil painting" --image-generate

Specify Composition

bash
praisonai "Close-up portrait of a robot, dramatic lighting, cyberpunk style" --image-generate

Use Cases

Marketing

bash
praisonai "Professional product photo of a coffee cup on marble surface, minimalist style" --image-generate

Creative Projects

bash
praisonai "Fantasy book cover with a dragon and castle, epic style" --image-generate

Concept Art

bash
praisonai "Sci-fi spaceship interior, clean design, blue accent lighting" --image-generate

Social Media

bash
praisonai "Inspirational quote background, soft gradient colors, modern design" --image-generate

Combine with Other Features

bash
# With verbose output
praisonai "A serene Japanese garden" --image-generate --verbose