Skip to content

❗️Mistral OCR API base64 does not work #269

@emil14

Description

@emil14

Open this because old issue is closed being unresolved

@jean-malo

Unfortunately your example does not work for me. Here's the JSON I send:

{
  "model": "mistral-ocr-latest",
  "include_image_base64": true,
  "document": {
    "type": "image_url",
    "image_url": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoH...+208664 more"
  }
}

Here's the response Mistral OCR API request failed with status 400:

{"object":"error","message":"Failed to fetch document","type":"invalid_request_error"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions