Multi-Modal Agent CLI
Command-line interface for multi-modal agents
Work with images, PDFs, and files from the command line.
Quick Start
- Simple Usage
bash praisonai-ts image analyze https://example.com/image.jpg --prompt "What do you see?" - With Configuration
bash praisonai-ts image analyze ./photo.png --model gpt-4o --prompt "Describe this image"
Commands
Analyze Image
# Analyze image from URL
praisonai-ts image analyze https://example.com/image.jpg \
--prompt "What do you see?"
# Analyze local image
praisonai-ts image analyze ./photo.png \
--prompt "Describe this image in detail"
# With specific model
praisonai-ts image analyze ./image.jpg \
--model gpt-4o \
--prompt "What objects are in this image?"Generate Image
# Generate image with DALL-E
praisonai-ts image generate "A sunset over mountains" \
--model dall-e-3 \
--size 1024x1024 \
--output ./sunset.png
# With quality setting
praisonai-ts image generate "Futuristic city" \
--quality hd \
--style vividProcess PDF
# Summarize PDF
praisonai-ts pdf summarize ./document.pdf
# Extract text
praisonai-ts pdf extract ./document.pdf --output text.txt
# Ask questions about PDF
praisonai-ts pdf query ./document.pdf \
--prompt "What are the main findings?"Options
| Option | Type | Default | Description |
|---|---|---|---|
--model | string | gpt-4o | Model to use |
--prompt | string | – | Analysis prompt |
--output | string | – | Output file path |
--size | string | 1024x1024 | Image size |
--quality | string | standard | Image quality |
--json | boolean | false | JSON output |
Examples
Batch Image Analysis
# Analyze multiple images
praisonai-ts image analyze ./images/*.jpg \
--prompt "Categorize this image" \
--output results.json \
--jsonCompare Images
# Compare two images
praisonai-ts image compare ./image1.jpg ./image2.jpg \
--prompt "What are the differences?"Interactive Vision Chat
# Start vision chat session
praisonai-ts chat --vision \
--model gpt-4o \
--instructions "You are a helpful image analyst"Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes | For GPT-4o and DALL-E |
ANTHROPIC_API_KEY | For Claude | Claude vision |
Related Commands
praisonai-ts image list-models– List vision modelspraisonai-ts image history– View generation history