Skills
在 Duaer 里放大图片
在 Duaer 里把已有图片放大,主体、构图、颜色和文字保持不变。成功一张按该模型的图片额度计费。
能拿到什么
data[0].b64_json 是放大后的图片。
密钥
调用前先获取 Duaer 密钥.
调用技能
下面这段是给智能体复制的英文技能,和数据市场里的复制内容相同。
---
name: duaer-upscale
description: >-
Enlarge one image with Duaer. The subject, layout, colors, and text stay.
One successful image uses that model's image credits.
---
# Enlarge an image with Duaer
Duaer Upscale sends an existing image to `POST https://api.duaer.com/v1/images/generations` and asks the model to enlarge it without adding or removing anything.
## When to use
- You already have a picture and need a larger one.
- On the canvas, use the Duaer Upscale node. It reads binary field `data`.
## Call
`POST https://api.duaer.com/v1/images/generations`
Header: `Authorization: Bearer <Duaer key>`
```json
{
"model": "doubao-seedream-5.0-lite",
"prompt": "Enlarge this image to the requested size. Keep the same subject, layout, colors, and text. Do not add or remove anything.",
"size": "2560x1440",
"response_format": "b64_json",
"watermark": true,
"image": "data:image/png;base64,..."
}
```
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
- `image` — Required. A data URL of the source picture.
- `size` — `2560x1440` for a wide image, `1440x2560` for a tall image, `2048x2048` for a square image.
- `model` — An image model enabled in Duaer.
## Result
`data[0].b64_json` is the enlarged image.
How-to: https://doc.duaer.com/build/duaer-upscale.md
## Credits
One successful image uses that model's image credits.
A request that fails before the model runs uses 0.
No remaining credits returns 402 and does not generate.
A missing key returns 401.
## Related
- https://skills.duaer.com/cutout.md — Duaer Cutout
- https://skills.duaer.com/edit.md — Duaer Edit
- https://skills.duaer.com/image-mesh.md — Duaer Mesh