[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JGJJM0JVCJR5K75F1BM48":3,"skill-same:01M77JGJJM0JVCJR5K75F1BM48":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M77JGJJM0JVCJR5K75F1BM48","imaginepro-api",null,"Generate AI images via ImaginePro API (Midjourney, Flux, Nano Banana, Lumi Girl, video)","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fi\u002Fimaginepro-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: imaginepro-api\ndescription: Generate AI images via ImaginePro API (Midjourney, Flux, Nano Banana, Lumi Girl, video)\nversion: 1.0.0\nmetadata:\n  openclaw:\n    requires:\n      env:\n        - IMAGINEPRO_API_KEY\n      bins:\n        - python3\n        - curl\n    primaryEnv: IMAGINEPRO_API_KEY\n    homepage: https:\u002F\u002Fplatform.imaginepro.ai\u002Fai-agent-skill\n    emoji: \"\\U0001F3A8\"\n---\n\n# ImaginePro AI Image Generation API\n\nGenerate stunning AI images, videos, and edits using the ImaginePro API. This skill wraps the full ImaginePro backend and supports 5 generation models, image upscaling, background removal, prompt enhancement, and video generation.\n\n## Quick Start\n\n```bash\n# Set your API key (get one at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard\u002Fsetup)\nexport IMAGINEPRO_API_KEY=\"your-api-key-here\"\n\n# Generate an image with Flux (fastest)\npython3 imaginepro_api.py wait --prompt \"a cyberpunk cityscape at sunset\" --model flux\n\n# Generate with Midjourney\npython3 imaginepro_api.py wait --prompt \"portrait of a warrior queen, cinematic lighting --ar 2:3\"\n\n# List available models and costs\npython3 imaginepro_api.py models\n```\n\n## Authentication\n\nAll requests require a Bearer token obtained from the ImaginePro Platform dashboard:\n\n1. Sign up at https:\u002F\u002Fplatform.imaginepro.ai\n2. Purchase credits from https:\u002F\u002Fplatform.imaginepro.ai\u002Fpricing\n3. Get your API key at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard\u002Fsetup\n4. Set the environment variable: `export IMAGINEPRO_API_KEY=\"your-key\"`\n\n**Base URL:** `https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1`\n\n**Header:** `Authorization: Bearer \u003CIMAGINEPRO_API_KEY>`\n\n## Available Models\n\n| Model | Endpoint | Credits | Best For |\n|-------|----------|---------|----------|\n| Midjourney (alpha v6) | `\u002Fmidjourney\u002Fimagine` | 10 (fast) \u002F 5 (relax) | Artistic, photorealistic images |\n| Flux | `\u002Fflux\u002Fimagine` | 6 | Fast general-purpose generation |\n| Nano Banana | `\u002Funiversal\u002Fimagine` | 6 | Reference image + text (try-on, mockup, staging) |\n| Lumi Girl | `\u002Funiversal\u002Fzimage` | 6 | Character portraits, anime, stylized |\n| MJ Video | `\u002Fvideo\u002Fmj\u002Fgenerate` | 10 | Video generation from start\u002Fend frames |\n\n## API Reference\n\n### Image Generation\n\n#### POST `\u002Fmidjourney\u002Fimagine` — Midjourney Generation\n\nThe flagship model. Supports Midjourney parameters in the prompt string (e.g., `--ar 16:9`, `--style raw`, `--relax`).\n\n**Request:**\n```json\n{\n  \"prompt\": \"a majestic eagle soaring over mountains --ar 16:9\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- Append `--relax` to the prompt for relax mode (5 credits instead of 10, slower).\n- Supports all standard Midjourney prompt parameters: `--ar`, `--style`, `--chaos`, `--no`, `--seed`, `--q`, etc.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 10 (fast mode) \u002F 5 (relax mode)\n\n---\n\n#### POST `\u002Fflux\u002Fimagine` — Flux Generation\n\nFast, high-quality generation. Supports batch generation.\n\n**Request:**\n```json\n{\n  \"prompt\": \"a cozy cabin in the woods, watercolor style\",\n  \"n\": 1,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `n` (optional, default 1): Number of images to generate (credits multiply by n).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6 per image\n\n---\n\n#### POST `\u002Funiversal\u002Fimagine` — Nano Banana (Reference Image Generation)\n\nMulti-modal generation using text + reference images. Ideal for virtual try-on, product mockups, interior staging, and style transfer.\n\n**Request:**\n```json\n{\n  \"contents\": [\n    { \"type\": \"text\", \"text\": \"Image creation: woman wearing this dress in a garden\" },\n    { \"type\": \"image\", \"url\": \"https:\u002F\u002Fexample.com\u002Fdress.jpg\" }\n  ],\n  \"model\": \"nano-banana-2\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `contents`: Array of content items. First item should be `type: \"text\"` with the prompt prefixed by `\"Image creation: \"`. Subsequent items can be `type: \"image\"` with a `url` field for reference images.\n- `model`: Must be `\"nano-banana-2\"`.\n- Supports multiple reference images (e.g., a person photo + a garment photo for virtual try-on).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6\n\n---\n\n#### POST `\u002Funiversal\u002Fzimage` — Lumi Girl\n\nSpecialized model for character portraits and stylized images. Supports aspect ratio via `--ar` in the prompt.\n\n**Request:**\n```json\n{\n  \"prompt\": \"anime girl with silver hair in a moonlit forest --ar 3:4\",\n  \"steps\": 4,\n  \"width\": 768,\n  \"height\": 1024,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `steps`: Always 4 (fixed).\n- `width` \u002F `height`: Max 1024 per dimension, must be divisible by 8. If `--ar W:H` is in the prompt, dimensions are auto-calculated from the ratio (max dimension = 1024).\n- Default: 1024x1024 if no aspect ratio specified.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6\n\n---\n\n#### POST `\u002Fvideo\u002Fmj\u002Fgenerate` — MJ Video\n\nGenerate a video from start and end frame images.\n\n**Request:**\n```json\n{\n  \"prompt\": \"smooth camera pan with cinematic motion\",\n  \"startFrameUrl\": \"https:\u002F\u002Fexample.com\u002Fstart.jpg\",\n  \"endFrameUrl\": \"https:\u002F\u002Fexample.com\u002Fend.jpg\",\n  \"timeout\": 900,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `startFrameUrl` (required): URL of the starting frame image.\n- `endFrameUrl` (required): URL of the ending frame image.\n- `prompt` (optional, default \"smooth motion transition\"): Motion description.\n- `timeout` (optional, default 900): Max processing time in seconds.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 10\n\n---\n\n### Post-Processing\n\n#### POST `\u002Fmidjourney\u002Fbutton` — Midjourney Upscale \u002F Variant\n\nUpscale or create variants of Midjourney-generated images.\n\n**Request:**\n```json\n{\n  \"messageId\": \"original-task-message-id\",\n  \"button\": \"U1\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `messageId`: The `messageId` (task ID) from the original Midjourney generation.\n- `button`: Action to perform. `U1`-`U4` for upscaling quadrants, `V1`-`V4` for variants.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-upscale-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 5\n\n---\n\n#### POST `\u002Fflux\u002Fupscale` — Flux Upscale\n\nUpscale any image (not limited to Flux-generated).\n\n**Request:**\n```json\n{\n  \"image\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\",\n  \"scale\": 2,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `image` (required): URL of the image to upscale.\n- `scale` (required): Upscale factor, must be between 2 and 4 (inclusive).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-upscale-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 2\n\n---\n\n#### POST `\u002Ftools\u002Fremove-bg` — Background Removal\n\nRemove the background from an image.\n\n**Request:**\n```json\n{\n  \"image\": \"https:\u002F\u002Fexample.com\u002Fphoto.jpg\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-removebg-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 5\n\n---\n\n#### POST `\u002Ftools\u002Fprompt-extend` — Prompt Enhancement (Free)\n\nExpand a short prompt into a detailed, high-quality prompt.\n\n**Request:**\n```json\n{\n  \"prompt\": \"a sunset\"\n}\n```\n\n**Response:**\n```json\n{\n  \"prompt\": \"a breathtaking sunset over the Pacific Ocean, golden hour light casting warm amber and coral tones across scattered cumulus clouds, silhouetted palm trees in the foreground...\"\n}\n```\n\n**Credits:** Free\n\n---\n\n### Status & History\n\n#### GET `\u002Fmidjourney\u002Fmessage\u002F{messageId}` — Check Generation Status\n\nPoll this endpoint to check the progress of any generation task (works for all models, not just Midjourney).\n\n**Response (in progress):**\n```json\n{\n  \"prompt\": \"a simple red circle on white background\",\n  \"status\": \"PROCESSING\",\n  \"progress\": 0,\n  \"messageId\": \"2346e0bc-c3c3-48ea-adec-3a21609fd288\",\n  \"createdAt\": \"2026-02-22T07:43:37+00:00\",\n  \"updatedAt\": \"2026-02-22T07:43:37+00:00\"\n}\n```\n\n**Response (completed):**\n```json\n{\n  \"prompt\": \"a simple red circle on white background\",\n  \"status\": \"DONE\",\n  \"images\": [\"https:\u002F\u002Fcdn-new.imaginepro.ai\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcdn\u002F2346e0bc-c3c3-48ea-adec-3a21609fd288.png\"],\n  \"uri\": \"https:\u002F\u002Fcdn-new.imaginepro.ai\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcdn\u002F2346e0bc-c3c3-48ea-adec-3a21609fd288.png\",\n  \"progress\": 100,\n  \"messageId\": \"2346e0bc-c3c3-48ea-adec-3a21609fd288\",\n  \"createdAt\": \"2026-02-22T07:43:37+00:00\",\n  \"updatedAt\": \"2026-02-22T07:43:49+00:00\"\n}\n```\n\n**Response (failed):**\n```json\n{\n  \"status\": \"FAIL\",\n  \"error\": \"Description of what went wrong\"\n}\n```\n\n**Statuses:** `SUBMITTED` → `PROCESSING` → `DONE` | `FAIL`\n\n**Credits:** Free (polling is free)\n\n---\n\n## Async Workflow\n\nAll generation endpoints are **asynchronous**. The workflow is:\n\n1. **Submit** a generation request → receive a `messageId`\n2. **Poll** `GET \u002Fmidjourney\u002Fmessage\u002F{messageId}` every 3-5 seconds\n3. Wait for `status` to be `DONE` (images ready) or `FAIL` (error)\n4. **Download** the result from the `uri` or `images` array\n\nThe helper script's `wait` command automates this entire flow.\n\n## Credit Cost Summary\n\n| Operation | Credits |\n|-----------|---------|\n| Midjourney Imagine (fast) | 10 |\n| Midjourney Imagine (relax) | 5 |\n| Midjourney Upscale\u002FVariant | 5 |\n| Flux Imagine | 6 per image |\n| Flux Upscale | 2 |\n| Nano Banana Imagine | 6 |\n| Lumi Girl Imagine | 6 |\n| MJ Video | 10 |\n| Background Removal | 5 |\n| Prompt Enhancement | Free |\n| Status Polling | Free |\n\n## Python Helper Script\n\nThe included `imaginepro_api.py` is a zero-dependency Python script (stdlib only) that wraps all API calls.\n\n### Commands\n\n```bash\n# Generate an image (async — returns messageId immediately)\npython3 imaginepro_api.py imagine --prompt \"a sunset over mountains\" --model flux\n\n# Generate and wait for result (blocking — polls until done)\npython3 imaginepro_api.py wait --prompt \"a sunset over mountains\" --model flux\n\n# Check status of a generation\npython3 imaginepro_api.py status --id \u003CmessageId>\n\n# Upscale (Midjourney)\npython3 imaginepro_api.py upscale --id \u003CmessageId> --button U1\n\n# Upscale (Flux)\npython3 imaginepro_api.py upscale --image \"https:\u002F\u002Fexample.com\u002Fimg.jpg\" --scale 2\n\n# Remove background\npython3 imaginepro_api.py removebg --image \"https:\u002F\u002Fexample.com\u002Fphoto.jpg\"\n\n# Enhance a prompt\npython3 imaginepro_api.py enhance --prompt \"a cat\"\n\n# List available models\npython3 imaginepro_api.py models\n```\n\n### Flags\n\n- `--json` — Output raw JSON (default is human-readable)\n- `--timeout \u003Cseconds>` — Max wait time for `wait` command (default: 300)\n- `--interval \u003Cseconds>` — Polling interval for `wait` command (default: 5)\n\n## curl Examples\n\n```bash\n# Generate with Flux\ncurl -X POST https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Fflux\u002Fimagine \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"prompt\": \"a cyberpunk cityscape at sunset\"}'\n\n# Check status\ncurl https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Fmidjourney\u002Fmessage\u002F\u003CmessageId> \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\"\n\n# Enhance a prompt (free)\ncurl -X POST https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Ftools\u002Fprompt-extend \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"prompt\": \"a cat\"}'\n```\n\n## Error Handling\n\nAPI errors return JSON with `message`, `error`, and `statusCode`:\n\n```json\n{\n  \"message\": \"Prompt is required.\",\n  \"error\": \"Bad Request\",\n  \"statusCode\": 400\n}\n```\n\nCommon error codes:\n- `400` — Missing required parameter or invalid value\n- `401` — Invalid or missing API key \u002F insufficient credits\n- `404` — Message not found\n- `500` — Internal server error (retry after a short delay)\n\n## Tips for AI Agents\n\n1. **Always use the `wait` command** for simple generation tasks — it handles the submit + poll loop automatically.\n2. **Check credits on the dashboard** at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard before large batches to avoid failures mid-way through. There is no API endpoint for checking credits.\n3. **Use `enhance` on short prompts** before generating — it's free and dramatically improves quality.\n4. **Midjourney supports prompt parameters** like `--ar 16:9 --style raw --chaos 20` directly in the prompt string.\n5. **For Nano Banana (virtual try-on, mockups)**, always provide reference image URLs in the `contents` array.\n6. **Poll interval:** 5 seconds is recommended. Don't poll faster than 3 seconds.\n7. **Timeouts:** Midjourney can take 30-120s. Video generation can take up to 15 minutes. Set timeouts accordingly.\n","# ImaginePro AI Image Generation API\n\nGenerate stunning AI images, videos, and edits using the ImaginePro API. This skill wraps the full ImaginePro backend and supports 5 generation models, image upscaling, background removal, prompt enhancement, and video generation.\n\n## Quick Start\n\n```bash\n# Set your API key (get one at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard\u002Fsetup)\nexport IMAGINEPRO_API_KEY=\"your-api-key-here\"\n\n# Generate an image with Flux (fastest)\npython3 imaginepro_api.py wait --prompt \"a cyberpunk cityscape at sunset\" --model flux\n\n# Generate with Midjourney\npython3 imaginepro_api.py wait --prompt \"portrait of a warrior queen, cinematic lighting --ar 2:3\"\n\n# List available models and costs\npython3 imaginepro_api.py models\n```\n\n## Authentication\n\nAll requests require a Bearer token obtained from the ImaginePro Platform dashboard:\n\n1. Sign up at https:\u002F\u002Fplatform.imaginepro.ai\n2. Purchase credits from https:\u002F\u002Fplatform.imaginepro.ai\u002Fpricing\n3. Get your API key at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard\u002Fsetup\n4. Set the environment variable: `export IMAGINEPRO_API_KEY=\"your-key\"`\n\n**Base URL:** `https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1`\n\n**Header:** `Authorization: Bearer \u003CIMAGINEPRO_API_KEY>`\n\n## Available Models\n\n| Model | Endpoint | Credits | Best For |\n|-------|----------|---------|----------|\n| Midjourney (alpha v6) | `\u002Fmidjourney\u002Fimagine` | 10 (fast) \u002F 5 (relax) | Artistic, photorealistic images |\n| Flux | `\u002Fflux\u002Fimagine` | 6 | Fast general-purpose generation |\n| Nano Banana | `\u002Funiversal\u002Fimagine` | 6 | Reference image + text (try-on, mockup, staging) |\n| Lumi Girl | `\u002Funiversal\u002Fzimage` | 6 | Character portraits, anime, stylized |\n| MJ Video | `\u002Fvideo\u002Fmj\u002Fgenerate` | 10 | Video generation from start\u002Fend frames |\n\n## API Reference\n\n### Image Generation\n\n#### POST `\u002Fmidjourney\u002Fimagine` — Midjourney Generation\n\nThe flagship model. Supports Midjourney parameters in the prompt string (e.g., `--ar 16:9`, `--style raw`, `--relax`).\n\n**Request:**\n```json\n{\n  \"prompt\": \"a majestic eagle soaring over mountains --ar 16:9\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- Append `--relax` to the prompt for relax mode (5 credits instead of 10, slower).\n- Supports all standard Midjourney prompt parameters: `--ar`, `--style`, `--chaos`, `--no`, `--seed`, `--q`, etc.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 10 (fast mode) \u002F 5 (relax mode)\n\n---\n\n#### POST `\u002Fflux\u002Fimagine` — Flux Generation\n\nFast, high-quality generation. Supports batch generation.\n\n**Request:**\n```json\n{\n  \"prompt\": \"a cozy cabin in the woods, watercolor style\",\n  \"n\": 1,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `n` (optional, default 1): Number of images to generate (credits multiply by n).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6 per image\n\n---\n\n#### POST `\u002Funiversal\u002Fimagine` — Nano Banana (Reference Image Generation)\n\nMulti-modal generation using text + reference images. Ideal for virtual try-on, product mockups, interior staging, and style transfer.\n\n**Request:**\n```json\n{\n  \"contents\": [\n    { \"type\": \"text\", \"text\": \"Image creation: woman wearing this dress in a garden\" },\n    { \"type\": \"image\", \"url\": \"https:\u002F\u002Fexample.com\u002Fdress.jpg\" }\n  ],\n  \"model\": \"nano-banana-2\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `contents`: Array of content items. First item should be `type: \"text\"` with the prompt prefixed by `\"Image creation: \"`. Subsequent items can be `type: \"image\"` with a `url` field for reference images.\n- `model`: Must be `\"nano-banana-2\"`.\n- Supports multiple reference images (e.g., a person photo + a garment photo for virtual try-on).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6\n\n---\n\n#### POST `\u002Funiversal\u002Fzimage` — Lumi Girl\n\nSpecialized model for character portraits and stylized images. Supports aspect ratio via `--ar` in the prompt.\n\n**Request:**\n```json\n{\n  \"prompt\": \"anime girl with silver hair in a moonlit forest --ar 3:4\",\n  \"steps\": 4,\n  \"width\": 768,\n  \"height\": 1024,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `steps`: Always 4 (fixed).\n- `width` \u002F `height`: Max 1024 per dimension, must be divisible by 8. If `--ar W:H` is in the prompt, dimensions are auto-calculated from the ratio (max dimension = 1024).\n- Default: 1024x1024 if no aspect ratio specified.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 6\n\n---\n\n#### POST `\u002Fvideo\u002Fmj\u002Fgenerate` — MJ Video\n\nGenerate a video from start and end frame images.\n\n**Request:**\n```json\n{\n  \"prompt\": \"smooth camera pan with cinematic motion\",\n  \"startFrameUrl\": \"https:\u002F\u002Fexample.com\u002Fstart.jpg\",\n  \"endFrameUrl\": \"https:\u002F\u002Fexample.com\u002Fend.jpg\",\n  \"timeout\": 900,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `startFrameUrl` (required): URL of the starting frame image.\n- `endFrameUrl` (required): URL of the ending frame image.\n- `prompt` (optional, default \"smooth motion transition\"): Motion description.\n- `timeout` (optional, default 900): Max processing time in seconds.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-generation-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 10\n\n---\n\n### Post-Processing\n\n#### POST `\u002Fmidjourney\u002Fbutton` — Midjourney Upscale \u002F Variant\n\nUpscale or create variants of Midjourney-generated images.\n\n**Request:**\n```json\n{\n  \"messageId\": \"original-task-message-id\",\n  \"button\": \"U1\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `messageId`: The `messageId` (task ID) from the original Midjourney generation.\n- `button`: Action to perform. `U1`-`U4` for upscaling quadrants, `V1`-`V4` for variants.\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-upscale-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 5\n\n---\n\n#### POST `\u002Fflux\u002Fupscale` — Flux Upscale\n\nUpscale any image (not limited to Flux-generated).\n\n**Request:**\n```json\n{\n  \"image\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\",\n  \"scale\": 2,\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n- `image` (required): URL of the image to upscale.\n- `scale` (required): Upscale factor, must be between 2 and 4 (inclusive).\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-upscale-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 2\n\n---\n\n#### POST `\u002Ftools\u002Fremove-bg` — Background Removal\n\nRemove the background from an image.\n\n**Request:**\n```json\n{\n  \"image\": \"https:\u002F\u002Fexample.com\u002Fphoto.jpg\",\n  \"ref\": \"optional-tracking-id\",\n  \"webhookOverride\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"messageId\": \"uuid-of-the-removebg-task\",\n  \"createdAt\": \"2026-01-15T12:00:00+00:00\"\n}\n```\n\n**Credits:** 5\n\n---\n\n#### POST `\u002Ftools\u002Fprompt-extend` — Prompt Enhancement (Free)\n\nExpand a short prompt into a detailed, high-quality prompt.\n\n**Request:**\n```json\n{\n  \"prompt\": \"a sunset\"\n}\n```\n\n**Response:**\n```json\n{\n  \"prompt\": \"a breathtaking sunset over the Pacific Ocean, golden hour light casting warm amber and coral tones across scattered cumulus clouds, silhouetted palm trees in the foreground...\"\n}\n```\n\n**Credits:** Free\n\n---\n\n### Status & History\n\n#### GET `\u002Fmidjourney\u002Fmessage\u002F{messageId}` — Check Generation Status\n\nPoll this endpoint to check the progress of any generation task (works for all models, not just Midjourney).\n\n**Response (in progress):**\n```json\n{\n  \"prompt\": \"a simple red circle on white background\",\n  \"status\": \"PROCESSING\",\n  \"progress\": 0,\n  \"messageId\": \"2346e0bc-c3c3-48ea-adec-3a21609fd288\",\n  \"createdAt\": \"2026-02-22T07:43:37+00:00\",\n  \"updatedAt\": \"2026-02-22T07:43:37+00:00\"\n}\n```\n\n**Response (completed):**\n```json\n{\n  \"prompt\": \"a simple red circle on white background\",\n  \"status\": \"DONE\",\n  \"images\": [\"https:\u002F\u002Fcdn-new.imaginepro.ai\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcdn\u002F2346e0bc-c3c3-48ea-adec-3a21609fd288.png\"],\n  \"uri\": \"https:\u002F\u002Fcdn-new.imaginepro.ai\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcdn\u002F2346e0bc-c3c3-48ea-adec-3a21609fd288.png\",\n  \"progress\": 100,\n  \"messageId\": \"2346e0bc-c3c3-48ea-adec-3a21609fd288\",\n  \"createdAt\": \"2026-02-22T07:43:37+00:00\",\n  \"updatedAt\": \"2026-02-22T07:43:49+00:00\"\n}\n```\n\n**Response (failed):**\n```json\n{\n  \"status\": \"FAIL\",\n  \"error\": \"Description of what went wrong\"\n}\n```\n\n**Statuses:** `SUBMITTED` → `PROCESSING` → `DONE` | `FAIL`\n\n**Credits:** Free (polling is free)\n\n---\n\n## Async Workflow\n\nAll generation endpoints are **asynchronous**. The workflow is:\n\n1. **Submit** a generation request → receive a `messageId`\n2. **Poll** `GET \u002Fmidjourney\u002Fmessage\u002F{messageId}` every 3-5 seconds\n3. Wait for `status` to be `DONE` (images ready) or `FAIL` (error)\n4. **Download** the result from the `uri` or `images` array\n\nThe helper script's `wait` command automates this entire flow.\n\n## Credit Cost Summary\n\n| Operation | Credits |\n|-----------|---------|\n| Midjourney Imagine (fast) | 10 |\n| Midjourney Imagine (relax) | 5 |\n| Midjourney Upscale\u002FVariant | 5 |\n| Flux Imagine | 6 per image |\n| Flux Upscale | 2 |\n| Nano Banana Imagine | 6 |\n| Lumi Girl Imagine | 6 |\n| MJ Video | 10 |\n| Background Removal | 5 |\n| Prompt Enhancement | Free |\n| Status Polling | Free |\n\n## Python Helper Script\n\nThe included `imaginepro_api.py` is a zero-dependency Python script (stdlib only) that wraps all API calls.\n\n### Commands\n\n```bash\n# Generate an image (async — returns messageId immediately)\npython3 imaginepro_api.py imagine --prompt \"a sunset over mountains\" --model flux\n\n# Generate and wait for result (blocking — polls until done)\npython3 imaginepro_api.py wait --prompt \"a sunset over mountains\" --model flux\n\n# Check status of a generation\npython3 imaginepro_api.py status --id \u003CmessageId>\n\n# Upscale (Midjourney)\npython3 imaginepro_api.py upscale --id \u003CmessageId> --button U1\n\n# Upscale (Flux)\npython3 imaginepro_api.py upscale --image \"https:\u002F\u002Fexample.com\u002Fimg.jpg\" --scale 2\n\n# Remove background\npython3 imaginepro_api.py removebg --image \"https:\u002F\u002Fexample.com\u002Fphoto.jpg\"\n\n# Enhance a prompt\npython3 imaginepro_api.py enhance --prompt \"a cat\"\n\n# List available models\npython3 imaginepro_api.py models\n```\n\n### Flags\n\n- `--json` — Output raw JSON (default is human-readable)\n- `--timeout \u003Cseconds>` — Max wait time for `wait` command (default: 300)\n- `--interval \u003Cseconds>` — Polling interval for `wait` command (default: 5)\n\n## curl Examples\n\n```bash\n# Generate with Flux\ncurl -X POST https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Fflux\u002Fimagine \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"prompt\": \"a cyberpunk cityscape at sunset\"}'\n\n# Check status\ncurl https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Fmidjourney\u002Fmessage\u002F\u003CmessageId> \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\"\n\n# Enhance a prompt (free)\ncurl -X POST https:\u002F\u002Fapi.imaginepro.ai\u002Fapi\u002Fv1\u002Ftools\u002Fprompt-extend \\\n  -H \"Authorization: Bearer $IMAGINEPRO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"prompt\": \"a cat\"}'\n```\n\n## Error Handling\n\nAPI errors return JSON with `message`, `error`, and `statusCode`:\n\n```json\n{\n  \"message\": \"Prompt is required.\",\n  \"error\": \"Bad Request\",\n  \"statusCode\": 400\n}\n```\n\nCommon error codes:\n- `400` — Missing required parameter or invalid value\n- `401` — Invalid or missing API key \u002F insufficient credits\n- `404` — Message not found\n- `500` — Internal server error (retry after a short delay)\n\n## Tips for AI Agents\n\n1. **Always use the `wait` command** for simple generation tasks — it handles the submit + poll loop automatically.\n2. **Check credits on the dashboard** at https:\u002F\u002Fplatform.imaginepro.ai\u002Fdashboard before large batches to avoid failures mid-way through. There is no API endpoint for checking credits.\n3. **Use `enhance` on short prompts** before generating — it's free and dramatically improves quality.\n4. **Midjourney supports prompt parameters** like `--ar 16:9 --style raw --chaos 20` directly in the prompt string.\n5. **For Nano Banana (virtual try-on, mockups)**, always provide reference image URLs in the `contents` array.\n6. **Poll interval:** 5 seconds is recommended. Don't poll faster than 3 seconds.\n7. **Timeouts:** Midjourney can take 30-120s. Video generation can take up to 15 minutes. Set timeouts accordingly.\n",{"name":5,"version":24,"metadata":25,"description":7},"1.0.0",{"openclaw":26},{"emoji":27,"homepage":28,"requires":29,"primaryEnv":31},"🎨","https:\u002F\u002Fplatform.imaginepro.ai\u002Fai-agent-skill",{"env":30,"bins":32},[31],"IMAGINEPRO_API_KEY",[33,34],"python3","curl","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fi\u002Fimaginepro-api",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill imaginepro-api",{"tool":50,"command":51},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill imaginepro-api",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill imaginepro-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fi\u002Fimaginepro-api\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]