Overview
This endpoint provides image analysis functionality using the OpenAI-compatible chat completions API. Upload images or provide image URLs to analyze and understand image content with vision-enabled models.Authentication
This endpoint requires authentication using a Bearer token.Your API key in the format:
sk-*****Request Body
The model to use for the request. Must be a vision-enabled model.
Array of message objects for the conversation. Each message contains:
role: “user” or “assistant”content: Can be a string or an array of content objects supporting:- text: Text content with
type: "text"andtextfield - image_url: Image content with
type: "image_url"and nestedimage_urlobject containing:url: HTTP/HTTPS URL to the image- Supported formats: JPG, PNG, WebP, GIF
- text: Text content with
Whether to stream the response
Request Example
Response
Unique identifier for the chat completion
Object type, always “chat.completion”
Unix timestamp of when the chat completion was created
The model used for generating the completion
Array of completion choices
Token usage statistics

