AI 服务/图像生成
异步编辑图像
POST
异步编辑图像
授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
请求体
application/json
原始图片
示例:
"https://images.unsplash.com/photo-1592194996308-7b43878e84a6?auto=format&fit=crop&w=1024&q=80"
编辑描述
Required string length:
1 - 4000示例:
"Edit the provided image into a cozy realistic scene by placing the cute orange cat beside a sunlit window. Preserve its orange fur, seated pose, and facial expression, enhance the soft natural light, add warm tones and subtle detail, and maintain a realistic photography style."
遮罩图片 URL,用于局部重绘(可选)。需为与 image 尺寸一致的 PNG 图片:完全透明(alpha 为 0)的区域表示需要按提示词重绘的部分,不透明区域保持原图不变。不传时对整张图片进行编辑。
生成图片数量
必填范围:
1 <= x <= 1示例:
1
返回格式
可用选项:
url, b64_json 示例:
"url"
最后修改于 2026年7月31日

