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

# Predict the rows of a CSV or Parquet file against a context



## OpenAPI

````yaml /api-reference/openapi.json post /v1/predict-file
openapi: 3.1.0
info:
  title: tabSutra API
  version: '1.0'
  description: >-
    One pretrained model for forecasting, classification, regression and
    recommendation on tables and databases.
servers:
  - url: https://api.tabsutra.com
security:
  - bearerAuth: []
paths:
  /v1/predict-file:
    post:
      summary: Predict the rows of a CSV or Parquet file against a context
      operationId: predict_file_v1_predict_file_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_predict_file_v1_predict_file_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_predict_file_v1_predict_file_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
        context_id:
          type: string
          title: Context Id
        outputs:
          anyOf:
            - type: string
            - type: 'null'
          title: Outputs
          description: JSON list
        quantiles:
          anyOf:
            - type: string
            - type: 'null'
          title: Quantiles
          description: JSON list
        coverage:
          type: number
          title: Coverage
          default: 0.8
        format:
          type: string
          enum:
            - json
            - csv
            - parquet
          title: Format
          default: json
        explain:
          type: boolean
          default: false
          title: Explain
        explain_top:
          type: integer
          default: 10
          title: Explain Top
        explain_class:
          type: string
          title: Explain Class
      type: object
      required:
        - file
        - context_id
      title: Body_predict_file_v1_predict_file_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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as ''Authorization: Bearer <key>''.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.