{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiand-com/json-schema/aiand-com-create-file-request-schema.json",
  "title": "CreateFileRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiand-com-files-api-openapi.yml#/components/schemas/CreateFileRequest",
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "description": "The asset bytes (multipart/form-data field)"
    },
    "purpose": {
      "type": "string",
      "enum": [
        "vision",
        "video",
        "audio",
        "document"
      ],
      "description": "One of `vision`, `video`, `audio`, or `document`. Determines size + mime limits and which models can reference the file. Optional — if omitted, inferred from the file's MIME type."
    }
  },
  "required": [
    "file"
  ]
}