Mistral AI · Schema

DocumentInput

AgentsArtificial IntelligenceBatch ProcessingChatEmbeddingsFine-TuningLarge Language ModelsOCR

Properties

Name Type Description
type string The type of document input.
document_url string URL of the document to process. Used when type is document_url.
image_url string URL of the image to process. Used when type is image_url.
content string Base64-encoded content of the document. Used when type is base64.
View JSON Schema on GitHub

JSON Schema

mistral-ai-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",
      "description": "The type of document input.",
      "enum": [
        "document_url",
        "image_url",
        "base64"
      ]
    },
    "document_url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the document to process. Used when type is document_url."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the image to process. Used when type is image_url."
    },
    "content": {
      "type": "string",
      "description": "Base64-encoded content of the document. Used when type is base64."
    }
  }
}