{
  "openapi": "3.1.0",
  "info": {
    "title": "docuextract — Chutes API",
    "description": "Document OCR and structured extraction from PDFs and images",
    "version": "90ec3cc4-86d9-5078-ab1b-6b92434690ce",
    "contact": {
      "name": "Chutes",
      "url": "https://chutes.ai"
    },
    "x-chutes": {
      "chuteId": "aea729aa-0b49-50ae-8843-b33f42d60886",
      "slug": "vonkaiser-docuextract",
      "modelName": "docuextract",
      "standardTemplate": null,
      "openaiCompatible": false,
      "confidentialCompute": true,
      "modelPage": "https://chutes.ai/app/chute/vonkaiser-docuextract",
      "llmsTxt": "https://chutes.ai/app/chute/vonkaiser-docuextract/llms.txt",
      "pricing": {
        "usdPerHour": 1.8
      }
    }
  },
  "servers": [
    {
      "url": "https://vonkaiser-docuextract.chutes.ai"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Chutes API key. Send as `Authorization: Bearer $CHUTES_API_KEY`."
      }
    }
  },
  "paths": {
    "/ocr/lighton/markdown": {
      "post": {
        "operationId": "lighton_markdown",
        "summary": "POST /ocr/lighton/markdown",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dpi": {
                    "type": "integer",
                    "default": 200,
                    "minimum": 72,
                    "maximum": 300
                  },
                  "pdf_b64": {
                    "type": "string",
                    "default": null
                  },
                  "image_b64": {
                    "type": "string",
                    "default": null
                  },
                  "max_pages": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 50
                  },
                  "temperature": {
                    "type": "number",
                    "description": "Sampling temperature; defaults to 0.0 (markdown) or 0.2 (extract)",
                    "default": null,
                    "minimum": 0,
                    "maximum": 2
                  },
                  "max_new_tokens": {
                    "type": "integer",
                    "description": "Cap generation length; defaults to model maximum safe for input size",
                    "default": null,
                    "minimum": 1
                  },
                  "enable_thinking": {
                    "type": "boolean",
                    "description": "NuExtract reasoning mode (slower, higher quality on hard documents)",
                    "default": false
                  }
                }
              },
              "example": {
                "dpi": 200,
                "max_pages": 10,
                "temperature": 0.7,
                "enable_thinking": false
              }
            }
          }
        }
      }
    },
    "/ocr/nuextract/markdown": {
      "post": {
        "operationId": "nuextract_markdown",
        "summary": "POST /ocr/nuextract/markdown",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dpi": {
                    "type": "integer",
                    "default": 200,
                    "minimum": 72,
                    "maximum": 300
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "content"
                    ],
                    "default": "markdown"
                  },
                  "pdf_b64": {
                    "type": "string",
                    "default": null
                  },
                  "image_b64": {
                    "type": "string",
                    "default": null
                  },
                  "max_pages": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 50
                  },
                  "temperature": {
                    "type": "number",
                    "description": "Sampling temperature; defaults to 0.0 (markdown) or 0.2 (extract)",
                    "default": null,
                    "minimum": 0,
                    "maximum": 2
                  },
                  "instructions": {
                    "type": "string",
                    "default": null
                  },
                  "max_new_tokens": {
                    "type": "integer",
                    "description": "Cap generation length; defaults to model maximum safe for input size",
                    "default": null,
                    "minimum": 1
                  },
                  "enable_thinking": {
                    "type": "boolean",
                    "description": "NuExtract reasoning mode (slower, higher quality on hard documents)",
                    "default": false
                  }
                }
              },
              "example": {
                "dpi": 200,
                "mode": "markdown",
                "max_pages": 10,
                "temperature": 0.7,
                "enable_thinking": false
              }
            }
          }
        }
      }
    },
    "/ocr/nuextract/extract": {
      "post": {
        "operationId": "nuextract_extract",
        "summary": "POST /ocr/nuextract/extract",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dpi": {
                    "type": "integer",
                    "default": 200,
                    "minimum": 72,
                    "maximum": 300
                  },
                  "text": {
                    "type": "string",
                    "default": null
                  },
                  "pdf_b64": {
                    "type": "string",
                    "default": null
                  },
                  "examples": {
                    "type": "array",
                    "default": null,
                    "items": {
                      "type": "object"
                    }
                  },
                  "template": {
                    "type": "object"
                  },
                  "image_b64": {
                    "type": "string",
                    "default": null
                  },
                  "max_pages": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 50
                  },
                  "temperature": {
                    "type": "number",
                    "description": "Sampling temperature; defaults to 0.0 (markdown) or 0.2 (extract)",
                    "default": null,
                    "minimum": 0,
                    "maximum": 2
                  },
                  "instructions": {
                    "type": "string",
                    "default": null
                  },
                  "max_new_tokens": {
                    "type": "integer",
                    "description": "Cap generation length; defaults to model maximum safe for input size",
                    "default": null,
                    "minimum": 1
                  },
                  "enable_thinking": {
                    "type": "boolean",
                    "description": "NuExtract reasoning mode (slower, higher quality on hard documents)",
                    "default": false
                  }
                },
                "required": [
                  "template"
                ]
              },
              "example": {
                "dpi": 200,
                "text": "Your text here",
                "template": {},
                "max_pages": 10,
                "temperature": 0.7,
                "enable_thinking": false
              }
            }
          }
        }
      }
    },
    "/ocr/nuextract/template": {
      "post": {
        "operationId": "nuextract_template",
        "summary": "POST /ocr/nuextract/template",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dpi": {
                    "type": "integer",
                    "default": 200,
                    "minimum": 72,
                    "maximum": 300
                  },
                  "pdf_b64": {
                    "type": "string",
                    "default": null
                  },
                  "image_b64": {
                    "type": "string",
                    "default": null
                  },
                  "max_pages": {
                    "type": "integer",
                    "default": 1,
                    "minimum": 1,
                    "maximum": 50
                  },
                  "description": {
                    "type": "string"
                  },
                  "temperature": {
                    "type": "number",
                    "description": "Sampling temperature; defaults to 0.0 (markdown) or 0.2 (extract)",
                    "default": null,
                    "minimum": 0,
                    "maximum": 2
                  },
                  "max_new_tokens": {
                    "type": "integer",
                    "description": "Cap generation length; defaults to model maximum safe for input size",
                    "default": null,
                    "minimum": 1
                  },
                  "enable_thinking": {
                    "type": "boolean",
                    "description": "NuExtract reasoning mode (slower, higher quality on hard documents)",
                    "default": false
                  }
                },
                "required": [
                  "description"
                ]
              },
              "example": {
                "dpi": 200,
                "max_pages": 1,
                "description": "example-string",
                "temperature": 0.7,
                "enable_thinking": false
              }
            }
          }
        }
      }
    }
  }
}