const response = await fetch("https://api.meoo.host/meoo-ai/compatible-mode/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${Deno.env.get("MEOO_PROJECT_API_KEY")}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "qwen3-vl-plus",
messages: [
{
role: "user",
content: [
{ type: "text", text: "这张图片里有什么?" },
{ type: "image_url", image_url: { url: "https://your-image-url.com/image.png" } },
],
}
],
}),
});
const data = await response.json();
console.log(data.choices[0].message.content);