跳到正文
TakoAPI
返回技能列表

imaginepro-api

由 iamzifei 提供

Coding Agents & IDEs
290下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate AI images via ImaginePro API (Midjourney, Flux, Nano Banana, Lumi Girl, video)

描述

该技能的功能

Wraps the ImaginePro API to generate images and videos using Midjourney, Flux, Nano Banana, and Lumi Girl models. Supports post-processing operations including upscaling, background removal, and prompt enhancement. All generation is asynchronous with built-in polling via a Python helper script.

Consolidates five distinct generation models and post-processing tools under a single API key and Python script, avoiding separate integrations for each provider.

何时使用

  • Generate product mockups with reference images using Nano Banana
  • Create character portraits or anime-style art with Lumi Girl
  • Upscale and variant Midjourney outputs for final delivery
  • Remove backgrounds from product photos for e-commerce
  • Generate short videos from two frame images with MJ Video

示例工作流

输入

User asks: generate a cinematic portrait of a warrior queen in 2:3 aspect ratio and upscale the best result

智能体
  1. 1

    Run python3 imaginepro_api.py wait --prompt 'portrait of a warrior queen, cinematic lighting --ar 2:3' --model midjourney to submit and poll until done

  2. 2

    Receive the messageId and image URL from the completed response

  3. 3

    Run python3 imaginepro_api.py upscale --id <messageId> --button U1 to upscale the first quadrant

  4. 4

    Poll status with python3 imaginepro_api.py status --id <upscaleMessageId> until DONE

  5. 5

    Return the final upscaled image URL to the user

输出

High-resolution upscaled portrait image URL ready for download

前置要求

  • IMAGINEPRO_API_KEY environment variable
  • ImaginePro account at platform.imaginepro.ai
  • ImaginePro credits (purchased at platform.imaginepro.ai/pricing)

安装

clawhub install iamzifei/imaginepro-api

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接