API
图像

图像

所有方法都需要提供一个授权令牌

GET /items/images/:id

对于 ImagineAPI.dev 云,完整端点为(将 :id 替换为实际的图像 ID):

https://cl.imagineapi.dev/items/images/:id
⚠️

如果 cl.imagineapi.dev 出现超时或者无法工作,请通过微信联系我们 (opens in a new tab),将会有 帮助您解决任何障碍。

返回内容:

{
    "data": {
        "id": UUID,
        "prompt": string,
        "results": null | string,
        "user_created": string,
        "date_created": string,
        "status": "pending" | "in-progress" | "completed" | "failed",
        "progress": number | null,
        "url": null | string,
        "error": null | string,
        "upscaled_urls": null | string[],
        "upscaled": string[],
        "ref": string | null,
    }
}

POST /items/images

对于 ImagineAPI.dev 云,完整端点是:

https://cl.imagineapi.dev/items/images
⚠️

如果 cl.imagineapi.dev 出现超时或者无法工作,请通过微信联系我们 (opens in a new tab),将会有 帮助您解决任何障碍。

主体内容:

{
  "prompt": string,
  "ref": string | null,
}

注释:

返回内容:

{
    "data": {
        "id": UUID,
        "prompt": string,
        "results": null | string,
        "user_created": string,
        "date_created": string,
        "status": "pending" | "in-progress" | "completed" | "failed",
        "progress": number | null,
        "url": null | string,
        "error": null | string,
        "upscaled_urls": null | string[],
        "upscaled": string[],
        "ref": string | null,
    }
}