Use AI coding agents like Claude Code, OpenClaw, and Codex to generate images programmatically. Zero-dependency Python script with 5 models, upscaling, background removal, and JSON output.
From API key to generated images in under a minute.
Sign up and grab your key from the dashboard.
platform.imaginepro.ai/dashboard/setup →export IMAGINEPRO_API_KEY="your-api-key-here"python3 imaginepro_api.py wait --prompt "a cyberpunk cityscape" --model fluxRun the Python script directly from your terminal. The wait command handles the async submit → poll → result workflow automatically.
Everything you need to integrate AI image generation into automated workflows.
Pure Python stdlib — no pip install required. Works anywhere Python 3.6+ is available, including CI/CD pipelines and sandboxed environments.
Midjourney, Flux, Nano Banana, Lumi Girl, and MJ Video — access all models through a single unified script.
Submit → poll → result, all handled automatically by the wait command. No webhook server needed for simple workflows.
Choose the right model for your use case. All models are accessible through the same Python script.
| Model | Endpoint | Credits | Best For |
|---|---|---|---|
| Midjourney (V6) | /midjourney/imagine | 10 (fast) / 5 (relax) | Artistic, photorealistic images |
| Flux | /flux/imagine | 6 | Fast general-purpose generation |
| Nano Banana | /universal/imagine | 6 | Reference image + text (try-on, mockup) |
| Lumi Girl | /universal/zimage |
Get started with Python or curl — both produce the same results.
# Generate an image and wait for result python3 imaginepro_api.py wait \ --prompt "a majestic eagle over mountains" \ --model flux # Generate with Midjourney (supports MJ params) python3 imaginepro_api.py wait \ --prompt "portrait of a warrior --ar 2:3 --v 7" # Enhance a prompt (free) python3 imaginepro_api.py enhance \ --prompt "a sunset" # Upscale an image (2x-4x) python3 imaginepro_api.py upscale \ --image "https://example.com/img.jpg" \ --scale 2 # Remove background python3 imaginepro_api.py removebg \ --image "https://example.com/photo.jpg"
# Generate with Flux
curl -X POST https://api.imaginepro.ai/api/v1/flux/imagine \
-H "Authorization: Bearer $IMAGINEPRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cyberpunk cityscape"}'
# Check status (works for all models)
curl https://api.imaginepro.ai/api/v1/midjourney/message/<id> \
-H "Authorization: Bearer $IMAGINEPRO_API_KEY"
# Enhance a prompt (free)
curl -X POST https://api.imaginepro.ai/api/v1/tools/prompt-extend \
-H "Authorization: Bearer $IMAGINEPRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cat"}'
# Upscale (2x-4x)
curl -X POST https://api.imaginepro.ai/api/v1/flux/upscale \
-H "Authorization: Bearer $IMAGINEPRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"image": "https://...", "scale": 2}'10 endpoints covering generation, post-processing, and status tracking.
| Method | Path | Purpose | Credits |
|---|---|---|---|
| POST | /midjourney/imagine | Midjourney image generation | 10 / 5 |
| POST | /flux/imagine | Flux image generation | 6 |
| POST | /universal/imagine | Nano Banana (reference image) | 6 |
| POST | /universal/zimage |
How developers and AI agents are using this skill in production.
Generate blog illustrations, social media graphics, and marketing visuals as part of your CI/CD or content workflow.
Let Claude Code, Cursor, or Codex generate images inline while building apps — no context switching required.
Process hundreds of prompts in automated batches for e-commerce product shots, game assets, or design variations.
Managing your own account with full API capabilities, unlimited generations and a management dashboard.
Free
Enjoy 50 credits with our free trial and explore all our features.
For individuals starting out with AI image generation. 1,600 credits per month.
For growing teams and businesses needing more credits. 8,000 credits per month.
Custom
Boost your large-scale business with dedicated infrastructure.
Disclaimer: MidJourney™ and Flux™ are trademarks of MidJourney and Flux, Inc. ImaginePro is not affiliated with, endorsed by, or sponsored by MidJourney and Flux.
Operations like Imagine/Upscale consume varying amounts of credits based on the selected mode. For more details, please visit our credits page
For developers who want to connect our system with their own Discord accounts. Unleash the full potential of ImaginePro with advanced features.
AI agents can invoke the script as a tool. The --json flag outputs machine-readable JSON for easy parsing. Agents on ClaWHub or OpenClaw can install this skill automatically.
Machine-readable JSON output with --json flag. Designed for AI agent consumption and pipeline integration.
Free prompt expansion turns short descriptions into detailed, high-quality prompts. Dramatically improves generation quality.
Upscale images up to 4x, remove backgrounds, and create variants — all from the same script.
| 6 |
| Character portraits, anime, stylized |
| MJ Video | /video/mj/generate | 10 | Video from start/end frames |
| Lumi Girl generation |
| 6 |
| POST | /video/mj/generate | Video generation | 10 |
| POST | /midjourney/button | Upscale / variant (Midjourney) | 5 |
| POST | /flux/upscale | Image upscale (any source) | 2 |
| POST | /tools/remove-bg | Background removal | 5 |
| POST | /tools/prompt-extend | Prompt enhancement | Free |
| GET | /midjourney/message/{id} | Check generation status | Free |
Add image generation capabilities to your chatbot or virtual assistant with simple script invocation.
Get your API key and start generating images with AI agents in minutes. Zero dependencies, 5 models, instant results.