查询图片异步任务
仅适用于在 /v1/images/generations?async=true 或 /v1/images/edits?async=true 提交后返回的图片任务 ID。
建议客户端按固定间隔轮询该接口:当任务为 succeeded 且 data.images 非空时读取图片结果;当任务为 failed 时读取 error 字段并停止轮询。图片结果可能包含 url 或 b64_json,具体取决于模型、渠道能力和提交请求中的 response_format。
bearerAuthAuthorizationBearer <API key>使用 Authorization Bearer API Key 进行鉴权。
id*string图片异步任务 ID。
成功响应。
application/json- response
任务状态响应。
id?string图片异步任务 ID。
state?string图片任务状态。
progress?integer任务进度百分比。
create_time?integer任务创建时间,Unix 秒级时间戳。
update_time?integer任务更新时间,Unix 秒级时间戳。
action?string图片任务动作,例如 generate 或 edit。
data?图片任务结果数据。
error?任务失败时的错误信息。
curl -X GET 'https://goldflow.cc/v1/tasks/string'{ "id": "string", "state": "string", "progress": 0, "create_time": 0, "update_time": 0, "action": "string", "data": { "images": [ { "url": "http://example.com", "file_name": "string", "b64_json": "string" } ] }, "error": {}}图像编辑
OpenAI Images API 兼容的图像编辑接口。默认同步返回编辑后的图片结果;如需异步提交,在请求 URL 上携带 `?async=true`,接口会返回图片任务 ID,可通过 `/v1/tasks/{id}` 查询结果。 GPT Image 2.5 / 2.6 支持 JSON `images` 引用数组,或 multipart `image` / `image[]` 文件上传;输入图片支持 PNG、JPEG、WebP,最多 16 张。 `markup` 是单独上传的透明 PNG 标注层,与 `mask` 互斥。GPT Image 2.6 可输出 GIF;编辑接口不支持 SVG 输出或 SVG 输入。 `stream=true` 时返回 `image_edit.partial_image` 和 `image_edit.completed` SSE 事件;GIF 不支持流式输出。 官方参数说明:https://developers.openai.com/api/reference/resources/images/methods/edit 。
Seedream 5.5 图片生成
Next Page