Mistral | Vision

Mistral can understand images passed as base64-encoded content within messages. Use the vision endpoint to send an image along with a text prompt and receive a description or analysis.

Vision Example

Send a base64-encoded image to Mistral for analysis.


Mistral := TsgcHTTP_API_Mistral.Create(nil);
Mistral.MistralOptions.ApiKey := 'API_KEY';
WriteLn(Mistral._CreateVisionMessage('mistral-large-latest',
  'Describe this image.', vBase64, 'image/jpeg'));