Describe image
Answer questions or describe an image provided in base64 or via a URL.
NodeJS
const src = await getImageAddress("http://www.cloudbrowser.ai", "img");
if (!src) return;
const ai = new AIService(cloudBrowserToken, {
openAIConfiguration: { apiKey: openAiToken },
});
const rpai = await ai.describe({
// base64Image: downloadImage(src), // You can send bytes instead of the image URL
imageUrl: src,
question: "Is the image red?",
responseFormat: {
properties: {
response: { type: "boolean" },
},
},
});
console.log("The lowest price is:", JSON.parse(rpai.response).response);.NET
/api/v1/ai/Describe – Answer Questions or Describe an Image
Last updated