
Image Gen
- 233 installs
- 316 repo stars
- Updated August 4, 2026
- redfox-data/redfox-community
Use image-gen for development tasks
About
image-gen: A skill for development. This provides functionality for development workflows.
- image-gen
Image Gen by the numbers
- 233 all-time installs (skills.sh)
- +15 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #1,638 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/redfox-data/redfox-community --skill image-genAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 233 |
|---|---|
| repo stars | ★ 316 |
| Last updated | August 4, 2026 |
| Repository | redfox-data/redfox-community ↗ |
What it does
Use image-gen for development tasks
Files
GPT-image2
调用 OpenAI 最新的 gpt-image-2 模型生成高质量图片。粘贴提示词就能用。
Skill 特色
>
- 支持命令行批量生成、参数化控制尺寸/格式/背景
- 文生图 + 图生图双模式,--image 一个参数启用编辑模式---
能力概述
- 文生图:输入提示词,生成全新图片
- 图生图:上传参考图 + 提示词,基于原图编辑生成
- 模型:gpt-image-2(OpenAI 最新图像模型)
- 输出格式:PNG、JPEG、WebP
- 尺寸支持:仅支持测试验证过的分辨率(自定义分辨率可能导致生成过慢或失败)
- 快速档:1024x1024(1:1)、1024x1536(2:3 竖版)、1536x1024(3:2 横版)、1792x1024(16:9 横版)、1024x1792(9:16 竖版,默认)
- 高清档(画质更高,生成更慢):2048x2048、2048x1152、1152x2048
- 批量生成:单次最多 10 张
- 透明背景:支持 PNG/WebP 透明背景输出
- 保真控制:图生图支持 high/low 保真度
---
使用方式
文生图 — 输入文字生成图片
# 基本生成
python3 "$SKILL_PATH/assets/imagegen.py" "一只橘色的猫咪坐在窗台上看着窗外的夕阳"
# 横版高清
python3 "$SKILL_PATH/assets/imagegen.py" "futuristic city skyline" --size 1792x1024
# 透明背景 logo
python3 "$SKILL_PATH/assets/imagegen.py" "minimalist cat logo, flat design" --bg transparent --format png
# 批量生成 4 张
python3 "$SKILL_PATH/assets/imagegen.py" "icon set, flat style" -n 4 --bg transparent
# WebP + 压缩
python3 "$SKILL_PATH/assets/imagegen.py" "product photo on white background" --format webp --compression 50图生图 — 上传参考图编辑生成
# 基于参考图修改(自动上传图片 → 编辑生成)
python3 "$SKILL_PATH/assets/imagegen.py" "把猫咪改成白色,背景换成星空" --image ~/Pictures/cat.png
# 风格迁移,高保真
python3 "$SKILL_PATH/assets/imagegen.py" "改成赛博朋克风格" --image ref.jpg --fidelity high
# 低保真,大幅改动
python3 "$SKILL_PATH/assets/imagegen.py" "变成水彩画风格,加入樱花元素" --image photo.png --fidelity low其他操作
# 仅提交任务(返回 taskId,不等待)
python3 "$SKILL_PATH/assets/imagegen.py" "complex scene" --no-download
# 查询已有任务结果
python3 "$SKILL_PATH/assets/imagegen.py" "" --task-id sfwmpic7xxxxxxxx
# 指定输出目录和文件名前缀
python3 "$SKILL_PATH/assets/imagegen.py" "illustration" -o ~/Pictures/AI --prefix artwork参数说明
| 参数 | 说明 | 默认值 |
|---|---|---|
prompt | 生成/编辑提示词(必填,最多 500 字) | - |
--image | 参考图路径(启用图生图模式) | - |
--fidelity | 图生图保真度:high / low | - |
--size | 尺寸(仅支持白名单分辨率) | 1024x1792 |
-n, --count | 生成数量(1-10) | 1 |
--quality | 质量:low / medium / high / auto | medium |
--format | 格式:png / jpeg / webp | png |
--bg | 背景:transparent / opaque / auto | auto |
--compression | 压缩比(0-100) | 0 |
-o, --output-dir | 输出目录 | ~/Downloads/QoderImages |
--prefix | 文件名前缀 | image |
--no-download | 仅提交不等待 | - |
--task-id | 查询已有任务 | - |
--api-key | 指定 API Key | - |
依赖安装
| 依赖 | 安装命令 |
|---|---|
requests | pip3 install requests |
---
首次使用
先配置 API Key,然后运行:
# 设置环境变量
export REDFOX_API_KEY=ak_你的密钥
# 运行
python3 "$SKILL_PATH/assets/imagegen.py" "一只橘色的猫咪"前往 redfox.hk 注册获取 API Key。
---
后续使用
前往 redfox.hk 注册账号获取自己的 API Token,三种配置方式任选其一:
| 配置方式 | 说明 | 命令 |
|---|---|---|
| 环境变量(推荐) | 设置一次,全局生效 | export REDFOX_API_KEY=ak_你的密钥 |
| 命令行参数 | 临时使用,单次生效 | python3 "$SKILL_PATH/assets/imagegen.py" "prompt" --api-key ak_你的密钥 |
| 配置文件 | 持久化存储,跨会话保留 | mkdir -p ~/.qoder/apis && echo '{"api_key":"ak_你的密钥"}' > ~/.qoder/apis/redfox.json |
---
常见问题
Q:本 Skill 的特点是什么? A:命令行直接调用 gpt-image-2 模型,支持批量生成、参数化控制、图生图编辑,
Q:生成一张图片需要多久? A:通常 10-30 秒,复杂场景可能更久。脚本会自动轮询等待。
Q:图生图的保真度怎么选? A:--fidelity high 尽量保留原图细节(微调),--fidelity low 允许大幅改动(风格迁移)。不传则由模型自行判断。
Q:如何生成透明背景图? A:使用 --bg transparent,搭配 PNG 或 WebP 格式(JPEG 不支持透明)。
Q:如何获取 API Key? A:前往 redfox.hk 注册获取自己的 API Token。
Q:支持哪些图片格式作为参考图? A:支持 PNG、JPEG、WebP 格式的本地图片文件。
Q:支持自定义分辨率吗? A:仅支持以下测试验证过的分辨率,其他分辨率可能导致生成过慢或失败:
- 快速档:1024x1024、1024x1536、1536x1024、1792x1024、1024x1792(默认)
- 高清档(画质更高,生成更慢):2048x2048、2048x1152、1152x2048
Q:提示词有长度限制吗? A:提示词最多支持 500 字,超过会被阻断并提示精简。
#!/usr/bin/env python3
"""
Qoder Image Generator - 基于 gpt-image-2 的图片生成工具
使用 redfox.hk API 提交图片生成任务并下载结果
支持文生图(generate)和图生图(edit)
Usage:
python3 imagegen.py "提示词" [options]
python3 imagegen.py "修改提示词" --image ~/path/to/ref.png
"""
import argparse
import json
import os
import sys
import time
from pathlib import Path
import requests
SUBMIT_URL = "https://redfox.hk/story/api/parseWork/imageGen/submitSkill"
RESULT_URL = "https://redfox.hk/story/api/parseWork/imageGen/result"
UPLOAD_URL = "https://redfox.hk/story/api/parseWork/imageGen/uploadImage"
CONFIG_DIR = Path.home() / ".qoder" / "apis"
CONFIG_FILE = CONFIG_DIR / "redfox.json"
ENV_KEY = "REDFOX_API_KEY"
SOURCE = "GPT image2-GitHub"
POLL_INTERVAL = 3 # seconds
MAX_POLL_ATTEMPTS = 60 # max ~3 minutes
# 经过测试验证的分辨率白名单:非白名单分辨率可能导致生成过慢或失败
# 快速档(常规速度)
FAST_SIZES = {"1024x1024", "1024x1536", "1536x1024", "1792x1024", "1024x1792"}
# 高清档(画质更高,生成更慢)
HD_SIZES = {"2048x2048", "2048x1152", "1152x2048"}
ALLOWED_SIZES = FAST_SIZES | HD_SIZES
MAX_PROMPT_LENGTH = 500 # 提示词最大字数限制
GREEN = "\033[92m"
YELLOW = "\033[93m"
RED = "\033[91m"
CYAN = "\033[96m"
BOLD = "\033[1m"
RESET = "\033[0m"
def info(msg):
print(f"{GREEN}[✓]{RESET} {msg}")
def warn(msg):
print(f"{YELLOW}[!]{RESET} {msg}")
def error(msg):
print(f"{RED}[✗]{RESET} {msg}")
def step(msg):
print(f"{CYAN}[→]{RESET} {msg}")
def get_api_key(cli_key=None):
"""Get API key: CLI arg > env var > config file."""
if cli_key:
return cli_key
env_key = os.environ.get(ENV_KEY)
if env_key:
return env_key
if CONFIG_FILE.exists():
try:
data = json.loads(CONFIG_FILE.read_text())
key = data.get("api_key")
if key:
return key
except (json.JSONDecodeError, OSError):
pass
return None
def upload_image(api_key, image_path):
"""Upload a local image file to OSS, return the image URL."""
image_path = os.path.expanduser(image_path)
if not os.path.isfile(image_path):
error(f"Image file not found: {image_path}")
return None
# Determine format from extension
ext = os.path.splitext(image_path)[1].lower()
fmt_map = {".png": "png", ".jpg": "jpeg", ".jpeg": "jpeg", ".webp": "webp"}
fmt = fmt_map.get(ext, "png")
step(f"Uploading image: {image_path}")
try:
with open(image_path, "rb") as f:
files = {"file": (os.path.basename(image_path), f)}
data = {"format": fmt}
headers = {"X-API-KEY": api_key}
resp = requests.post(UPLOAD_URL, files=files, data=data, headers=headers, timeout=60, verify=True)
result = resp.json()
except requests.exceptions.RequestException as e:
error(f"Upload request failed: {e}")
return None
except json.JSONDecodeError:
error(f"Upload returned invalid JSON: {resp.text[:200]}")
return None
code = result.get("code")
if not str(code).startswith("2"):
error(f"Upload failed (code {code}): {result.get('msg', '')}")
return None
data = result.get("data", {})
image_url = data.get("imageUrl")
if not image_url:
error("Upload succeeded but no imageUrl returned")
return None
info(f"Upload complete: {image_url}")
return image_url
def confirm_retry():
"""询问用户是否需要重试。"""
while True:
answer = input(f"{YELLOW}[?]{RESET} 是否重试?(y/n): ").strip().lower()
if answer in ('y', 'yes'):
return True
if answer in ('n', 'no'):
return False
def submit_task(session, prompt, parameters=None, operation="generate", images=None):
"""Submit image generation task, return taskId."""
payload = {"prompt": prompt, "source": SOURCE, "operation": operation}
if parameters:
payload["parameters"] = parameters
if images:
payload["images"] = images
try:
resp = session.post(SUBMIT_URL, json=payload, timeout=30)
result = resp.json()
except requests.exceptions.RequestException as e:
error(f"API request failed: {e}")
return None
except json.JSONDecodeError:
error(f"API returned invalid JSON: {resp.text[:200]}")
return None
code = result.get("code")
msg = result.get("msg", "")
if not str(code).startswith("2"):
error(f"Submit failed (code {code}): {msg}")
return None
data = result.get("data")
if not data or not data.get("taskId"):
error("API did not return taskId")
return None
return data["taskId"]
def poll_result(session, task_id):
"""Poll for task result until success/failed/timeout."""
for attempt in range(1, MAX_POLL_ATTEMPTS + 1):
try:
resp = session.post(RESULT_URL, json={"taskId": task_id}, timeout=15)
result = resp.json()
except requests.exceptions.RequestException as e:
warn(f"Poll request failed (attempt {attempt}): {e}")
time.sleep(POLL_INTERVAL)
continue
except json.JSONDecodeError:
warn(f"Invalid JSON response (attempt {attempt})")
time.sleep(POLL_INTERVAL)
continue
code = result.get("code")
if not str(code).startswith("2"):
error(f"Query failed (code {code}): {result.get('msg', '')}")
return None
data = result.get("data", {})
status = data.get("status")
if status == "success":
return data.get("imagePaths", [])
elif status == "failed":
reason = data.get("failReason", "unknown")
error(f"Generation failed: {reason}")
return None
else:
# still pending
elapsed = attempt * POLL_INTERVAL
print(f"\r {CYAN}⏳ Generating... ({elapsed}s){RESET}", end="", flush=True)
time.sleep(POLL_INTERVAL)
print()
error("Timeout: task did not complete within expected time")
return None
def download_images(session, image_urls, output_dir, prefix="image"):
"""Download generated images to output directory."""
downloaded = []
total = len(image_urls)
for i, url in enumerate(image_urls, 1):
# Determine extension from URL
ext = ".png"
url_path = url.split("?")[0]
for fmt in [".png", ".jpg", ".jpeg", ".webp"]:
if url_path.lower().endswith(fmt):
ext = fmt
break
filename = f"{prefix}_{i}{ext}" if total > 1 else f"{prefix}{ext}"
filepath = os.path.join(output_dir, filename)
step(f"Downloading {i}/{total}: {filename}")
try:
resp = session.get(url, stream=True, timeout=120)
resp.raise_for_status()
total_size = int(resp.headers.get("content-length", 0))
dl = 0
with open(filepath, "wb") as f:
for chunk in resp.iter_content(chunk_size=8192):
if chunk:
f.write(chunk)
dl += len(chunk)
if total_size > 0:
pct = int(dl * 100 / total_size)
bar = "█" * (pct // 5) + "░" * (20 - pct // 5)
print(f"\r {bar} {pct}%", end="", flush=True)
print()
downloaded.append(filepath)
except requests.exceptions.RequestException as e:
error(f"Download failed: {e}")
return downloaded
def main():
parser = argparse.ArgumentParser(
description="AI 图片生成器 - 基于 gpt-image-2 模型,支持文生图与图生图",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
Examples:
# 文生图
python3 imagegen.py "一只橘色的猫咪坐在窗台上看着窗外的夕阳"
python3 imagegen.py "futuristic city" --size 1792x1024 --quality medium
python3 imagegen.py "logo design" -n 4 --format webp --bg transparent
# 图生图(上传参考图 + 修改提示词)
python3 imagegen.py "把猫咪改成白色,背景换成星空" --image ~/Pictures/cat.png
python3 imagegen.py "改成赛博朋克风格" --image ref.jpg --fidelity high
""",
)
parser.add_argument("prompt", help="图片生成/编辑提示词 (最多 500 字)")
parser.add_argument("--api-key", help="API Key (不传则读取环境变量或内置公共 Key)")
parser.add_argument("-o", "--output-dir", help="输出目录 (默认 ~/Downloads/QoderImages)")
parser.add_argument("-n", "--count", type=int, default=1, help="生成图片数量 (1-10, 默认 1)")
parser.add_argument("--size", default="1024x1792",
help="图片尺寸 (默认 1024x1792, 可选: 1024x1024/1024x1536/1536x1024/1792x1024/1024x1792/2048x2048/2048x1152/1152x2048)")
parser.add_argument("--quality", default="medium", choices=["low", "medium", "high", "auto"],
help="图片质量 (默认 medium)")
parser.add_argument("--format", default="png", choices=["png", "jpeg", "webp"],
help="输出格式 (默认 png)")
parser.add_argument("--bg", "--background", default="auto", choices=["transparent", "opaque", "auto"],
help="背景类型 (默认 auto)")
parser.add_argument("--compression", type=int, default=0,
help="压缩比例 0-100 (默认 0, 无压缩)")
parser.add_argument("--image", help="参考图片路径 (启用图生图 edit 模式)")
parser.add_argument("--fidelity", choices=["high", "low"],
help="输入图保真度 (仅图生图模式, high=高保真/low=低保真)")
parser.add_argument("--no-download", action="store_true",
help="仅提交任务并返回 taskId, 不等待结果")
parser.add_argument("--task-id", help="直接查询已有任务的结果 (跳过提交)")
parser.add_argument("--prefix", default="image", help="下载文件名前缀 (默认 image)")
args = parser.parse_args()
# ── Validate size ──
if args.size not in ALLOWED_SIZES:
error(f"当前比例暂不支持: {args.size}")
print(f" 该分辨率会影响生图速度,可能导致生成失败。请使用以下尺寸:")
print(f" 快速档: {', '.join(sorted(FAST_SIZES))}")
print(f" 高清档(画质更高,生成更慢): {', '.join(sorted(HD_SIZES))}")
sys.exit(1)
# ── Validate prompt length ──
if len(args.prompt) > MAX_PROMPT_LENGTH:
error(f"提示词过长 ({len(args.prompt)} 字),请控制在 {MAX_PROMPT_LENGTH} 字以内")
sys.exit(1)
# ── Banner ──
banner = f"""{CYAN}{BOLD}
╔══════════════════════════════════════╗
║ Qoder Image Generator (API) ║
║ AI 图片生成工具 · gpt-image-2 ║
╚══════════════════════════════════════╝{RESET}
"""
print(banner)
# ── API Key ──
api_key = get_api_key(cli_key=args.api_key)
if not api_key:
error("未找到 API Key,请设置环境变量 REDFOX_API_KEY 或使用 --api-key 参数")
print(f" 获取 Key: https://redfox.hk/settings/api-keys?source=github")
sys.exit(1)
# ── Session (all requests use HTTPS with SSL verification) ──
session = requests.Session()
session.verify = True
session.headers.update({
"Content-Type": "application/json",
"X-API-KEY": api_key,
})
# ── Mode: Query existing task ──
if args.task_id:
step(f"Querying task: {args.task_id}")
image_urls = poll_result(session, args.task_id)
if not image_urls:
sys.exit(1)
print()
info(f"Generated {len(image_urls)} image(s)")
output_dir = args.output_dir or str(Path.home() / "Downloads" / "QoderImages")
os.makedirs(output_dir, exist_ok=True)
downloaded = download_images(session, image_urls, output_dir, args.prefix)
if downloaded:
print(f"\n{GREEN}{BOLD}✓ Done!{RESET}")
for f in downloaded:
size_kb = os.path.getsize(f) / 1024
print(f" {f} ({size_kb:.1f} KB)")
sys.exit(0)
# ── Mode: Submit new task ──
prompt = args.prompt.strip()
if not prompt:
error("提示词不能为空")
sys.exit(1)
# Determine operation mode
operation = "generate"
images = None
if args.image:
# Image-to-image: upload reference image first
operation = "edit"
image_url = upload_image(api_key, args.image)
if not image_url:
sys.exit(1)
images = [{"url": image_url}]
step(f"Mode: 图生图 (edit)")
else:
step(f"Mode: 文生图 (generate)")
step(f"Prompt: {prompt[:100]}{'...' if len(prompt) > 100 else ''}")
# Build parameters
parameters = {
"modelName": "gpt-image-2",
"n": max(1, min(10, args.count)),
"size": args.size,
"quality": args.quality,
"outputFormat": args.format,
"background": args.bg,
"outputCompression": max(0, min(100, args.compression)),
}
# Add fidelity for edit mode
if operation == "edit" and args.fidelity:
parameters["inputFidelity"] = args.fidelity
step(f"Parameters: {args.size}, quality={args.quality}, n={parameters['n']}, format={args.format}")
# Submit
while True:
step("Submitting task...")
task_id = submit_task(session, prompt, parameters, operation, images)
if task_id:
break
if not confirm_retry():
sys.exit(1)
info(f"Task submitted: {task_id}")
if args.no_download:
print(f"\n{GREEN}{BOLD}✓ Task submitted successfully{RESET}")
print(f" taskId: {task_id}")
print(f" 查询命令: python3 imagegen.py \"\" --task-id {task_id}")
sys.exit(0)
# Poll for result
step("Waiting for generation...")
image_urls = poll_result(session, task_id)
if not image_urls:
sys.exit(1)
print()
info(f"Generated {len(image_urls)} image(s)")
# Download
output_dir = args.output_dir or str(Path.home() / "Downloads" / "QoderImages")
os.makedirs(output_dir, exist_ok=True)
downloaded = download_images(session, image_urls, output_dir, args.prefix)
if downloaded:
print(f"\n{GREEN}{BOLD}✓ Done!{RESET}")
for f in downloaded:
size_kb = os.path.getsize(f) / 1024
print(f" {f} ({size_kb:.1f} KB)")
sys.exit(0)
else:
print(f"\n{RED}{BOLD}✗ Download failed{RESET}")
sys.exit(1)
if __name__ == "__main__":
main()
GPT-image2 / image-gen
---
Overview
An AI image generator based on OpenAI's gpt-image-2 model, supporting text-to-image and image-to-image generation.
Core Value
- Text-to-Image: Enter a prompt to generate high-quality new images
- Image-to-Image: Upload a reference image with a prompt for editing
- Batch Generation: Up to 10 images at once, with transparent background support
- Multi-Format: Supports PNG, JPEG, and WebP output
Target Users
- 🎨 Designers — Quickly generate creative concepts and logo designs
- 📱 Content Marketers — Batch-produce image assets
- 🛍️ E-commerce Sellers — Generate product and scene photography
---
Features
Core Features
- Text-to-Image: Enter a prompt and gpt-image-2 generates PNG/JPEG/WebP images
- Image-to-Image: Upload a reference image with high/low fidelity editing
- Batch Generation: Up to 10 images at once, ideal for icon sets and series
- Transparent Background: Supports PNG/WebP transparent output
- Multiple Sizes: Fast tier (1024x1024 etc.) + HD tier (2048x2048 etc.)
- Task Management: Submit-only mode with taskId for later query and download
---
API Key Acquisition & Security
- This skill requires the environment variable:
REDFOX_API_KEY. REDFOX_API_KEYis provided by RedFoxHub (https://redfox.hk).- Please visit RedFoxHub to register and obtain your
REDFOX_API_KEY. - Configure the environment variable
REDFOX_API_KEYon your device before using this skill. - Before providing your key, verify its source, available scope, validity period, and whether it supports reset/revocation.
- Do not hardcode or expose the key in plaintext within code, prompts, logs, or output files.
---
Usage Guide
Simply describe the image you want in natural language.
Quick Reference
| Intent | Example | Result |
|---|---|---|
| Text-to-Image | "Generate an image of an orange cat looking at the sunset" | Submits task and generates a high-quality image |
| Image-to-Image | "Turn this photo into cyberpunk style" | Uploads reference for style transfer |
| Transparent BG | "Generate a minimalist cat logo with transparent background" | Generates PNG with transparent background |
| Batch Generation | "Generate 4 flat style icons" | Generates multiple style-consistent images at once |
---
Use Cases
| Scenario | Role | Example Prompt | Benefit |
|---|---|---|---|
| Creative visuals | Content marketer | "Generate an article cover image" | Quick high-quality illustrations |
| Logo design | Designer | "Generate a minimalist logo" | Rapid design exploration |
| Product display | E-commerce operator | "Generate a white-background product photo" | Zero photography cost |
| Style transfer | Photographer | "Turn this photo into watercolor style" | Natural language style conversion |
GPT-image2 / image-gen
---
简介
基于 OpenAI gpt-image-2 模型的 AI 图片生成器,支持文生图与图生图。
核心价值
- 文生图:输入提示词,生成全新高质量图片
- 图生图:上传参考图 + 提示词,基于原图编辑生成
- 批量生成:单次最多 10 张,支持透明背景
- 多格式输出:支持 PNG、JPEG、WebP 格式
适用对象
- 🎨 设计师 — 快速生成创意概念图、Logo 设计
- 📱 内容运营 — 批量产出配图素材
- 🛍️ 电商卖家 — 生成产品展示图、场景图
---
功能特性
核心功能
- 文生图:输入提示词,gpt-image-2 自动生成 PNG/JPEG/WebP 图片
- 图生图:上传参考图,支持高/低保真度编辑
- 批量生成:单次最多 10 张,适合图标集、系列配图
- 透明背景:支持 PNG/WebP 透明背景输出
- 多种尺寸:快速档(1024x1024 等)+ 高清档(2048x2048 等)
- 任务管理:支持仅提交任务获取 taskId,稍后查询下载
---
密钥获取与安全说明
- 本技能需要使用环境变量:
REDFOX_API_KEY。 REDFOX_API_KEY由 红狐 hub (https://redfox.hk)提供。- 请前往 红狐 hub 注册账号,获取
REDFOX_API_KEY。 - 配置设备环境变量
REDFOX_API_KEY后使用本技能。 - 在提供密钥前,请先确认密钥来源、可用范围、有效期及是否支持重置/撤销。
- 禁止在代码、提示词、日志或输出文件中硬编码/明文暴露密钥。
---
使用指南
直接用自然语言描述你想要的图片即可。
常用说法速查
| 意图 | 示例话术 | 效果 |
|---|---|---|
| 文生图 | 「生成一只橘猫看窗外夕阳的图片」 | 提交任务,生成高质量图片 |
| 图生图 | 「把这张照片改成赛博朋克风格」 | 上传参考图进行风格迁移 |
| 透明背景 | 「生成一个极简猫 Logo,透明背景」 | 生成 PNG 透明背景图 |
| 批量生成 | 「生成 4 张扁平风格图标」 | 一次生成多张风格一致的图片 |
---
使用场景
| 场景 | 角色 | 示例问法 | 收益 |
|---|---|---|---|
| 创意配图 | 内容运营 | 「生成一张文章封面图」 | 快速产出高质量配图 |
| Logo 设计 | 设计师 | 「生成一个极简风格的 Logo」 | 快速验证多种设计方案 |
| 产品展示 | 电商运营 | 「生成白色背景的产品图」 | 零摄影成本的产品展示图 |
| 风格迁移 | 摄影师 | 「把这张照片转成水彩画风格」 | 自然语言驱动风格转换 |