Models that can take images as input include o1, gpt-4.5-preview, gpt-4o, gpt-4o-mini, and gpt-4-turbo.
Information about image handling (click to expand)
Models that can take images as input include o1, gpt-4.5-preview, gpt-4o, gpt-4o-mini, and gpt-4-turbo.
Images are automatically converted to base64 format before sending to the API.
import OpenAI from "openai";
const openai = new OpenAI();
const response = await openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [
{
role: "user",
content: [
{ type: "text", text: "What's in this image?" },
{
type: "image_url",
image_url: {
"url": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA...",
},
},
],
},
],
});
console.log(response.choices[0]);
All available voices with their unique characteristics for different content types. Select the one that best matches your needs.
Each voice has unique characteristics suitable for different content types.
Upload or record audio to automatically transcribe. Results will appear here and will be spoken automatically. Note that processing may take 15-30 seconds depending on audio length.