Please see the Vision capabilities document for additional information.
Endpoint
Creates a model response for the given an input that can include both text and image data.For SambaStack, developers should check with their system administrator for the correct URL.
Request parameters
The following table outlines the parameters required to make a vision request, parameter type, description, and default values.Messages format for image input
- Single image per request - Each request supports only one image input. For multiple images, send separate requests.
- Encoding requirements - Ensure the image is base64-encoded and within size limits. Invalid encoding will result in errors. View more information on our API Error page.
Example request
Response
The API returns a chat completion object containing the model’s response to the provided input.In this sample, the image entered was a nature scene, and your response will reflect your selected image.
