AgnesAI-Models icon indicating copy to clipboard operation
AgnesAI-Models copied to clipboard

[Feature]: :图片理解支持base64或者本地上传

Open yfpkiys786 opened this issue 5 months ago • 1 comments

Problem

Image

Proposed solution

图片理解支持base64或者本地上传

Alternatives considered

No response

Additional context

No response

yfpkiys786 avatar Jun 24 '26 01:06 yfpkiys786

Base64 image input is now supported.

You can pass the image as a base64 data URL in the image_url field, for example:

{
  "type": "image_url",
  "image_url": {
    "url": "data:image/png;base64,<BASE64_IMAGE_DATA>"
  }
}

For local files, please read the file and convert it to base64 before sending the request.

Thanks for the feedback. Please try it with the latest API and let us know if you run into any issues.

agnesai-admin avatar Jul 07 '26 06:07 agnesai-admin