跳到正文
TakoAPI
返回技能列表

openai-image-cli

由 g9pedro 提供

Image & Video Generation
1.0k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate, edit, and manage images via OpenAI's GPT Image and DALL-E models.

描述

该技能的功能

Command-line tool for generating, editing, and creating variations of images using OpenAI's GPT Image and DALL-E models. Supports batch processing, inpainting with masks, transparent backgrounds, and local history tracking. Configurable defaults for model, size, quality, and output format.

Wraps OpenAI's image API into a single CLI with batch support, history tracking, and per-request options that would otherwise require custom scripting against the raw API.

何时使用

  • Generating product mockup images from text descriptions
  • Batch-creating social media visuals from a JSONL prompt list
  • Editing photos with text instructions like removing or adding objects
  • Creating logo variations with transparent PNG backgrounds
  • Automating image generation in shell scripts with JSON output

示例工作流

输入

User asks: generate 4 logo variations with transparent backgrounds and save them to ./logos

智能体
  1. 1

    Run openai-image generate "Logo design" -n 4 -b transparent -f png -o ./logos

  2. 2

    CLI sends requests to OpenAI GPT Image model with specified parameters

  3. 3

    Images are downloaded and saved as PNG files in the ./logos directory

  4. 4

    Generation metadata is recorded in local history

输出

4 PNG files saved to ./logos with transparent backgrounds, each listed with model, size, and token usage

前置要求

  • OPENAI_API_KEY environment variable
  • OpenAI account with API access

安装

clawhub install g9pedro/openai-image-cli

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

链接