I'm having the same issue exactly that @

I'm having the same issue exactly that @Object documented here, back in May 2025: https://discord.com/channels/595317990191398933/1105477009964027914/1375585311647862784 Any ideas from the CF team?
3 Replies
samjs
samjs3w ago
Hey @robinsloan , I think the schema incorrectly shows a single object being valid for the content. The content field can either be a plain string or an array of content. You'll want the latter for images, e.g.
{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-encoded image>"
}
}
]
}
]
}
{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-encoded image>"
}
}
]
}
]
}
robinsloan
robinsloanOP3w ago
That did it! Fab -- thanks very much for the quick help.
samjs
samjs3w ago
np! I've opened an issue on our side to correct the schema. thanks for raising

Did you find this page helpful?