Custom Watermark
hy-image-v3.5-preview adds a watermark through the footnote parameter during generation, so you do not need to composite images yourself.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
footnote | string | No | Watermark text, up to 16 characters, rendered at the bottom-right corner |
Usage Example
const imageModel = ai.createImageModel("cloudbase");
const res = await imageModel.generateImage({
model: "hy-image-v3.5-preview",
footnote: "CloudBase AI",
messages: [
{
role: "user",
content: [{ type: "text", text: "A chubby orange cat napping on a windowsill, watercolor style, warm tones" }],
},
],
});
console.log(res.choices[0].delta.image.url); // The returned image already contains the watermark
Notes
- Up to 16 characters (counted as Unicode characters, CJK and Latin alike)
- Added synchronously by the server during generation; no extra generation time
Related Documentation
- Text-to-Image — size, seed, and other parameters
- Hy-Image-3.5-preview — full protocol and parameter reference
- Legacy Models — deprecated HY-Image-3.0 usage