Musab Did you try to send image url instead of converting to base64?
CypherPotato I don’t have the image URL, I didn’t upload it. Also, it would not solve the problem for other types of content, such as audios and files, which can be large. These contents cannot be provided through a URL, only inline base64 data.
CypherPotato Also, I’ve already tried to provide URLs for chat API. However, this is the kinda of issue I get from Vercel: Request: POST ai-gateway.vercel.sh/v1/chat/completions {"messages":[{"role":"system","content":"User local date is Monday, September 29, 2025 (timezone is America/Sao_Paulo)"},{"role":"user","content":[{"type":"text","text":"o que você vê nessa imagem?"},{"type":"image_url","image_url":{"url":"preview-s01.proj.pw/api/v1/public/ext-res/c9700b3649cc2200c125dd6d600a85b5b1ab3fc5","media_type":"image/jpeg"}}]}],"model":"amazon/nova-lite","stream":true,"stream_options":{"include_usage":true}
Anshuman Bhardwaj Hi @rezqziyad, welcome to the Vercel Community! Can you show me the code snippet you are using to recreate the issue? Also, the error message you get.
system Hey @rezqziyad! 👋 Just checking in on this thread. If you're still experiencing issues or have additional details to share, please let us know! We're here to help.