Token导航 LogoToken导航

Agent Skill · 效率

imaginepro-api(imaginepro API 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

imaginepro-api 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 3,735。

总安装 15,747周安装 637GitHub Stars 公开资料未说明下载 4,943核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:imaginepro-api(imaginepro API 文档)
来源仓库:https://github.com/iamzifei/imaginepro-api
安装命令:
openclaw skills install imaginepro-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install imaginepro-api

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

通过 ImaginePro API 生成 AI 图像(Midjourney、Flux、Nano Banana、Lumi Girl、视频)

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install imaginepro-api;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

imaginepro-api 怎么安装?

在终端执行 openclaw skills install imaginepro-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

imaginepro-api 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

imaginepro-api 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

imaginepro-api 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

imaginepro-api 用的人多吗?

公开数据是累计安装 15,747 次,近一周安装 637 次,下载 4,943 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

imaginepro-api 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
imaginepro-api

imaginepro API 文档 · 本页

15,747—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
imaginepro-api
description
Generate AI images via ImaginePro API (Midjourney, Flux, Nano Banana, Lumi Girl, video)
version
1.0.0
metadata
openclaw
requires
env
bins
primaryEnv
IMAGINEPRO_API_KEY
homepage
https://platform.imaginepro.ai/ai-agent-skill
emoji
\F3A8

ImaginePro AI Image Generation API

Generate 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.

Quick Start

# Set your API key (get one at https://platform.imaginepro.ai/dashboard/setup)
export IMAGINEPRO_API_KEY="your-api-key-here"

# Generate an image with Flux (fastest)
python3 imaginepro_api.py wait --prompt "a cyberpunk cityscape at sunset" --model flux

# Generate with Midjourney
python3 imaginepro_api.py wait --prompt "portrait of a warrior queen, cinematic lighting --ar 2:3"

# List available models and costs
python3 imaginepro_api.py models

Authentication

All requests require a Bearer token obtained from the ImaginePro Platform dashboard:

  1. Sign up at https://platform.imaginepro.ai
  2. Purchase credits from https://platform.imaginepro.ai/pricing
  3. Get your API key at https://platform.imaginepro.ai/dashboard/setup
  4. Set the environment variable: export IMAGINEPRO_API_KEY="your-key"

Base URL: https://api.imaginepro.ai/api/v1

Header: Authorization: Bearer <IMAGINEPRO_API_KEY>

Available Models

ModelEndpointCreditsBest For
Midjourney (alpha v6)/midjourney/imagine10 (fast) / 5 (relax)Artistic, photorealistic images
Flux/flux/imagine6Fast general-purpose generation
Nano Banana/universal/imagine6Reference image + text (try-on, mockup, staging)
Lumi Girl/universal/zimage6Character portraits, anime, stylized
MJ Video/video/mj/generate10Video generation from start/end frames

API Reference

Image Generation

POST /midjourney/imagine — Midjourney Generation

The flagship model. Supports Midjourney parameters in the prompt string (e.g., --ar 16:9, --style raw, --relax).

Request:

{
  "prompt": "a majestic eagle soaring over mountains --ar 16:9",
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • Append --relax to the prompt for relax mode (5 credits instead of 10, slower).
  • Supports all standard Midjourney prompt parameters: --ar, --style, --chaos, --no, --seed, --q, etc.

Response:

{
  "success": true,
  "messageId": "uuid-of-the-generation-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 10 (fast mode) / 5 (relax mode)


POST /flux/imagine — Flux Generation

Fast, high-quality generation. Supports batch generation.

Request:

{
  "prompt": "a cozy cabin in the woods, watercolor style",
  "n": 1,
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • n (optional, default 1): Number of images to generate (credits multiply by n).

Response:

{
  "success": true,
  "messageId": "uuid-of-the-generation-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 6 per image


POST /universal/imagine — Nano Banana (Reference Image Generation)

Multi-modal generation using text + reference images. Ideal for virtual try-on, product mockups, interior staging, and style transfer.

Request:

{
  "contents": [
    { "type": "text", "text": "Image creation: woman wearing this dress in a garden" },
    { "type": "image", "url": "https://example.com/dress.jpg" }
  ],
  "model": "nano-banana-2",
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • 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.
  • model: Must be "nano-banana-2".
  • Supports multiple reference images (e.g., a person photo + a garment photo for virtual try-on).

Response:

{
  "success": true,
  "messageId": "uuid-of-the-generation-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 6


POST /universal/zimage — Lumi Girl

Specialized model for character portraits and stylized images. Supports aspect ratio via --ar in the prompt.

Request:

{
  "prompt": "anime girl with silver hair in a moonlit forest --ar 3:4",
  "steps": 4,
  "width": 768,
  "height": 1024,
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • steps: Always 4 (fixed).
  • width / 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).
  • Default: 1024x1024 if no aspect ratio specified.

Response:

{
  "success": true,
  "messageId": "uuid-of-the-generation-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 6


POST /video/mj/generate — MJ Video

Generate a video from start and end frame images.

Request:

{
  "prompt": "smooth camera pan with cinematic motion",
  "startFrameUrl": "https://example.com/start.jpg",
  "endFrameUrl": "https://example.com/end.jpg",
  "timeout": 900,
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • startFrameUrl (required): URL of the starting frame image.
  • endFrameUrl (required): URL of the ending frame image.
  • prompt (optional, default "smooth motion transition"): Motion description.
  • timeout (optional, default 900): Max processing time in seconds.

Response:

{
  "success": true,
  "messageId": "uuid-of-the-generation-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 10


Post-Processing

POST /midjourney/button — Midjourney Upscale / Variant

Upscale or create variants of Midjourney-generated images.

Request:

{
  "messageId": "original-task-message-id",
  "button": "U1",
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • messageId: The messageId (task ID) from the original Midjourney generation.
  • button: Action to perform. U1-U4 for upscaling quadrants, V1-V4 for variants.

Response:

{
  "success": true,
  "messageId": "uuid-of-the-upscale-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 5


POST /flux/upscale — Flux Upscale

Upscale any image (not limited to Flux-generated).

Request:

{
  "image": "https://example.com/image.jpg",
  "scale": 2,
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}
  • image (required): URL of the image to upscale.
  • scale (required): Upscale factor, must be between 2 and 4 (inclusive).

Response:

{
  "success": true,
  "messageId": "uuid-of-the-upscale-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 2


POST /tools/remove-bg — Background Removal

Remove the background from an image.

Request:

{
  "image": "https://example.com/photo.jpg",
  "ref": "optional-tracking-id",
  "webhookOverride": "https://your-server.com/webhook"
}

Response:

{
  "success": true,
  "messageId": "uuid-of-the-removebg-task",
  "createdAt": "2026-01-15T12:00:00+00:00"
}

Credits: 5


POST /tools/prompt-extend — Prompt Enhancement (Free)

Expand a short prompt into a detailed, high-quality prompt.

Request:

{
  "prompt": "a sunset"
}

Response:

{
  "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..."
}

Credits: Free


Status & History

GET /midjourney/message/{messageId} — Check Generation Status

Poll this endpoint to check the progress of any generation task (works for all models, not just Midjourney).

Response (in progress):

{
  "prompt": "a simple red circle on white background",
  "status": "PROCESSING",
  "progress": 0,
  "messageId": "2346e0bc-c3c3-48ea-adec-3a21609fd288",
  "createdAt": "2026-02-22T07:43:37+00:00",
  "updatedAt": "2026-02-22T07:43:37+00:00"
}

Response (completed):

{
  "prompt": "a simple red circle on white background",
  "status": "DONE",
  "images": ["https://cdn-new.imaginepro.ai/storage/v1/object/public/cdn/2346e0bc-c3c3-48ea-adec-3a21609fd288.png"],
  "uri": "https://cdn-new.imaginepro.ai/storage/v1/object/public/cdn/2346e0bc-c3c3-48ea-adec-3a21609fd288.png",
  "progress": 100,
  "messageId": "2346e0bc-c3c3-48ea-adec-3a21609fd288",
  "createdAt": "2026-02-22T07:43:37+00:00",
  "updatedAt": "2026-02-22T07:43:49+00:00"
}

Response (failed):

{
  "status": "FAIL",
  "error": "Description of what went wrong"
}

Statuses: SUBMITTED → PROCESSING → DONE | FAIL

Credits: Free (polling is free)


Async Workflow

All generation endpoints are asynchronous. The workflow is:

  1. Submit a generation request → receive a messageId
  2. Poll GET /midjourney/message/{messageId} every 3-5 seconds
  3. Wait for status to be DONE (images ready) or FAIL (error)
  4. Download the result from the uri or images array

The helper script's wait command automates this entire flow.

Credit Cost Summary

OperationCredits
Midjourney Imagine (fast)10
Midjourney Imagine (relax)5
Midjourney Upscale/Variant5
Flux Imagine6 per image
Flux Upscale2
Nano Banana Imagine6
Lumi Girl Imagine6
MJ Video10
Background Removal5
Prompt EnhancementFree
Status PollingFree

Python Helper Script

The included imaginepro_api.py is a zero-dependency Python script (stdlib only) that wraps all API calls.

Commands

# Generate an image (async — returns messageId immediately)
python3 imaginepro_api.py imagine --prompt "a sunset over mountains" --model flux

# Generate and wait for result (blocking — polls until done)
python3 imaginepro_api.py wait --prompt "a sunset over mountains" --model flux

# Check status of a generation
python3 imaginepro_api.py status --id <messageId>

# Upscale (Midjourney)
python3 imaginepro_api.py upscale --id <messageId> --button U1

# Upscale (Flux)
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"

# Enhance a prompt
python3 imaginepro_api.py enhance --prompt "a cat"

# List available models
python3 imaginepro_api.py models

Flags

  • --json — Output raw JSON (default is human-readable)
  • --timeout <seconds> — Max wait time for wait command (default: 300)
  • --interval <seconds> — Polling interval for wait command (default: 5)

curl Examples

# 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 at sunset"}'

# Check status
curl https://api.imaginepro.ai/api/v1/midjourney/message/<messageId> \
  -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"}'

Error Handling

API errors return JSON with message, error, and statusCode:

{
  "message": "Prompt is required.",
  "error": "Bad Request",
  "statusCode": 400
}

Common error codes:

  • 400 — Missing required parameter or invalid value
  • 401 — Invalid or missing API key / insufficient credits
  • 404 — Message not found
  • 500 — Internal server error (retry after a short delay)

Tips for AI Agents

  1. Always use the wait command for simple generation tasks — it handles the submit + poll loop automatically.
  2. Check credits on the dashboard at https://platform.imaginepro.ai/dashboard before large batches to avoid failures mid-way through. There is no API endpoint for checking credits.
  3. Use enhance on short prompts before generating — it's free and dramatically improves quality.
  4. Midjourney supports prompt parameters like --ar 16:9 --style raw --chaos 20 directly in the prompt string.
  5. For Nano Banana (virtual try-on, mockups), always provide reference image URLs in the contents array.
  6. Poll interval: 5 seconds is recommended. Don't poll faster than 3 seconds.
  7. Timeouts: Midjourney can take 30-120s. Video generation can take up to 15 minutes. Set timeouts accordingly.

平台分布

OpenClaw

98.12%
按下载量换算4,850

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills