PHOTA Image Edit
Phota
Phota 图像编辑
- PHOTA 图像编辑模型
- 支持 1K / 4K 分辨率,支持 profile_ids
- 异步处理模式,使用返回的任务ID 进行查询
- 生成的图像链接,有效期为24小时,请尽快保存
POST
PHOTA Image Edit
授权
所有接口均需要使用Bearer Token进行认证
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
phota-image-edit:图像编辑,支持 profile
示例:
"phota-image-edit"
编辑提示词
说明:
- 描述对输入图像的编辑要求
示例:
"Change the background to a tropical beach at sunset"
输入图片 URL 列表
说明:
- 要编辑的图片
- 必须为公开可访问的 URL
示例:
["https://example.com/portrait.jpg"]输出图片数量
说明:
- 每张图片独立计费
示例:
1
输出图像分辨率
可选值:
1K— 标准分辨率4K— 高分辨率(价格翻倍)
示例:
"1K"
Profile ID 列表
说明:
- 由
phota-create-profile创建的 profile ID - 用于在编辑结果中保持人物一致性
非必须不要传这个参数。
示例:
["profile_abc123"]响应
任务创建成功
任务创建时间戳
示例:
1757165031
任务ID
示例:
"task-unified-1757165031-uyujaw3d"
实际使用的模型名称
任务的具体类型
可用选项:
image.generation.task 任务进度百分比 (0-100)
必填范围:
0 <= x <= 100示例:
0
任务状态
可用选项:
pending, processing, completed, failed 示例:
"pending"
异步任务信息
任务的输出类型
可用选项:
image 示例:
"image"