Skip to main content

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​

ParameterTypeRequiredDescription
footnotestringNoWatermark 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