Skip to content

Instantly share code, notes, and snippets.

@marcominerva
marcominerva / MistralOcrMarkdown.cs
Last active April 15, 2025 08:11
Mistral OCR - Get markdown from PDF
using System.Net.Http.Json;
using System.Text.Json;
using System.Text.Json.Serialization;
var endpoint = "https://<endpoint>.<region>.models.ai.azure.com/";
var apiKey = "";
var inputFilePath = @""; // The path of the source PDF
var outputFilePath = @""; // The path of the destination Markdown file