Hi,
I am trying to integrate with the v0 and send attachments. The API works great when I do not have the attachment field but as soon as I add it it returns 500. I see the docs allow for attachments as url strings.
I am using v0-1.5-md
example call that is working without attachments:
v0.chats.sendMessage({
chatId: site.v0_chat_id,
message: enhancedMessage,
modelConfiguration: {
modelId: “v0-1.5-md”,
imageGenerations: enableImageGenerations,
},
payload with attachments:
[V0 Chat] Sending payload to v0: {
“chatId”: “”,
“message”: “”,
“modelConfiguration”: {
“modelId”: “v0-1.5-md”,
“imageGenerations”: false
},
“attachments”: [
{
“url”: “https://aubd0oaalv5upy24.public.blob.vercel-storage.com/sites//uploads/Screenshot_2025-08-01_234114-IlhOHSeoWO3bba5wSDvDguJao46jIA.png”
}
]
}
Any idea why this is happening?
FYI I redacted some information like prompt, chatId, and some of the URL