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

# Upload file

> Upload a file that can be used across various endpoints.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/files
openapi: 3.1.0
info:
  title: Neosantara AI API
  description: OpenAI-compatible LLM Gateway
  version: 1.0.0
servers:
  - url: https://api.neosantara.xyz
    description: Neosantara Production Gateway
security:
  - bearerAuth: []
paths:
  /v1/files:
    post:
      tags:
        - Files
      summary: Upload file
      description: Upload a file that can be used across various endpoints.
      operationId: postV1Files
      responses:
        '200':
          description: Successful upload
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  object:
                    type: string
                    const: file
                  bytes:
                    type: number
                  created_at:
                    type: number
                  filename:
                    type: string
                  purpose:
                    type: string
                  status:
                    type: string
                required:
                  - id
                  - object
                  - bytes
                  - created_at
                  - filename
                  - purpose
                  - status
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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