ImageEmbeddingInput interface

表示具有可选文本的图像。

属性

image

base64 字符串中编码为数据 URL 的输入图像。 示例:data:image/{format};base64,{data}

text

自选。 要馈送到模型中的文本输入(如 DINO、CLIP)。 如果模型不支持值或参数,则返回 422 错误。

属性详细信息

image

base64 字符串中编码为数据 URL 的输入图像。 示例:data:image/{format};base64,{data}

image: string

属性值

string

text

自选。 要馈送到模型中的文本输入(如 DINO、CLIP)。 如果模型不支持值或参数,则返回 422 错误。

text?: string

属性值

string