Mistral AI · Schema

Mistral File

A file uploaded to the Mistral AI platform for use with fine-tuning, batch processing, or OCR endpoints.

EmbeddingsMachine LearningAgentsOCRLLMFoundation Models

Properties

Name Type Description
id string Unique identifier for the file
object string Object type identifier
bytes integer File size in bytes
created_at integer Unix timestamp when the file was uploaded
filename string Original filename of the uploaded file
purpose string Intended purpose of the file
num_lines integernull Number of lines in the file for JSONL files
source string How the file was created on the platform
View JSON Schema on GitHub

JSON Schema

mistral-file-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.mistral.ai/schemas/mistral/file.json",
  "title": "Mistral File",
  "description": "A file uploaded to the Mistral AI platform for use with fine-tuning, batch processing, or OCR endpoints.",
  "type": "object",
  "required": ["id", "object", "bytes", "created_at", "filename", "purpose"],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the file"
    },
    "object": {
      "type": "string",
      "enum": ["file"],
      "description": "Object type identifier"
    },
    "bytes": {
      "type": "integer",
      "minimum": 0,
      "description": "File size in bytes"
    },
    "created_at": {
      "type": "integer",
      "description": "Unix timestamp when the file was uploaded"
    },
    "filename": {
      "type": "string",
      "description": "Original filename of the uploaded file"
    },
    "purpose": {
      "type": "string",
      "enum": ["fine-tune", "batch", "ocr"],
      "description": "Intended purpose of the file"
    },
    "num_lines": {
      "type": ["integer", "null"],
      "minimum": 0,
      "description": "Number of lines in the file for JSONL files"
    },
    "source": {
      "type": "string",
      "enum": ["upload", "repository"],
      "description": "How the file was created on the platform"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mistral-file"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.