> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thedrive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Extract

> Submit multiple files or URLs for extraction with a single schema.
Each item is processed concurrently. Returns a batch_id to poll.

**Poll**: `GET /api/v1/jobs/batch/{batch_id}`

**Limits**: Maximum 20 items per batch.



## OpenAPI

````yaml /openapi.json post /api/v1/extract/batch
openapi: 3.1.0
info:
  title: The Drive AI API
  description: >

    ## The Drive AI API


    One API for screenshots, markdown extraction, structured data extraction,

    and more. 107+ file formats supported.


    ## Endpoints


    | Endpoint | Credits | Description |

    |----------|---------|-------------|

    | `GET /{url}` | 1 | Screenshot any URL |

    | `GET /md/{url}` | 1 | Convert any URL to markdown |

    | `POST /api/v1/thumbnails/generate` | 1 | Generate thumbnail from file or
    URL |

    | `POST /api/v1/markdown/convert` | 1 | Convert file/URL to markdown |

    | `POST /api/v1/extract` | 1/page or 5/site | Extract structured data |

    | `POST /api/v1/analyze` | 2/page or 10/site | Analyze — compute, reason,
    derive |


    ## Authentication


    All protected endpoints require an `X-API-Key` header:

    ```bash

    curl https://dev.thedrive.ai/stripe.com \
      -H "X-API-Key: tda_live_your_key_here"
    ```


    Get your API key at https://dev.thedrive.ai/login


    ## Pricing


    - **Free**: 100 credits/month, no card required

    - **Pro**: $0.01/credit, pay-as-you-go

    - **Enterprise**: Volume pricing, contact us
  version: 1.3.0
servers: []
security: []
tags:
  - name: screenshots
    description: Screenshot and thumbnail generation
  - name: markdown
    description: URL and document to markdown conversion
  - name: extraction
    description: Structured data extraction from documents
  - name: thumbnails
    description: Thumbnail generation via file upload or URL
  - name: health
    description: Service health and readiness probes
paths:
  /api/v1/extract/batch:
    post:
      tags:
        - batch
      summary: Batch Extract
      description: |-
        Submit multiple files or URLs for extraction with a single schema.
        Each item is processed concurrently. Returns a batch_id to poll.

        **Poll**: `GET /api/v1/jobs/batch/{batch_id}`

        **Limits**: Maximum 20 items per batch.
      operationId: batch_extract_api_v1_extract_batch_post
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            type: string
            title: X-Api-Key
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_batch_extract_api_v1_extract_batch_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_batch_extract_api_v1_extract_batch_post:
      properties:
        files:
          items:
            type: string
            contentMediaType: application/octet-stream
          type: array
          title: Files
          description: Files to extract data from
          default: []
        urls:
          anyOf:
            - type: string
            - type: 'null'
          title: Urls
          description: JSON array of URLs to extract from
        schema:
          type: string
          title: Schema
          description: JSON schema — applied to every item
        model:
          type: string
          title: Model
          description: 'Model: ''fast'', ''accurate'', or ''auto'''
          default: auto
        use_vision:
          type: boolean
          title: Use Vision
          description: Use vision mode
          default: false
        follow_links:
          type: boolean
          title: Follow Links
          description: Follow internal links (URLs only)
          default: false
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
          description: URL to POST results when the entire batch completes
      type: object
      required:
        - schema
      title: Body_batch_extract_api_v1_extract_batch_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````