Mistral AI · Schema

DocumentInput

Properties

Name Type Description
type string The type of document input
document_url string URL of the document to process
image_url string URL of the image to process
file_id string ID of a previously uploaded file
View JSON Schema on GitHub

JSON Schema

mistral-documentinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DocumentInput",
  "title": "DocumentInput",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "document_url",
        "image_url",
        "file_id"
      ],
      "description": "The type of document input"
    },
    "document_url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the document to process"
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the image to process"
    },
    "file_id": {
      "type": "string",
      "description": "ID of a previously uploaded file"
    }
  }
}