openapi: 3.2.0 info: title: LiteLLM Batch API description: "Enterprise Edition \n\nProxy Server to call 100+ LLMs in the OpenAI format. [**Customize Swagger Docs**](https://docs.litellm.ai/docs/proxy/enterprise#swagger-docs---custom-routes--branding)\n\n\U0001F449 [```LiteLLM Admin Panel on /ui```](/ui). Create, Edit Keys with SSO. Having issues? Try [```Fallback Login```](/fallback/login)\n\n\U0001F4B8 [```LiteLLM Model Cost Map```](https://models.litellm.ai/).\n\n\U0001F50E [```LiteLLM Model Hub```](/ui/model_hub_table). See available models on the proxy. [**Docs**](https://docs.litellm.ai/docs/proxy/ai_hub)" version: 1.95.0 x-operator: institution x-provenance: method: probed source: https://llmproxy.uva.nl/openapi.json retrieved: '2026-08-19' note: Document is generated by the LiteLLM proxy software the University of Amsterdam self-hosts; the deployment, the key issuance and the host (llmproxy.uva.nl, UvA Azure) are the institution's. servers[] added by API Evangelist because the served document omits it; nothing else altered. servers: - url: https://llmproxy.uva.nl description: University of Amsterdam / Amsterdam University of Applied Sciences shared AI gateway tags: - name: batch paths: /batches: post: tags: - batch summary: Create Batch description: "Create large batches of API requests for asynchronous processing.\nThis is the equivalent of POST https://api.openai.com/v1/batch\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d '{\n \"input_file_id\": \"file-abc123\",\n \"endpoint\": \"/v1/chat/completions\",\n \"completion_window\": \"24h\"\n}'\n```" operationId: create_batch_batches_post security: - APIKeyHeader: [] parameters: - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' get: tags: - batch summary: List Batches description: "Lists \nThis is the equivalent of GET https://api.openai.com/v1/batches/\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: list_batches_batches_get security: - APIKeyHeader: [] parameters: - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider - name: limit in: query required: false schema: anyOf: - type: integer - type: 'null' title: Limit - name: after in: query required: false schema: anyOf: - type: string - type: 'null' title: After - name: target_model_names in: query required: false schema: anyOf: - type: string - type: 'null' title: Target Model Names responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /v1/batches: post: tags: - batch summary: Create Batch description: "Create large batches of API requests for asynchronous processing.\nThis is the equivalent of POST https://api.openai.com/v1/batch\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d '{\n \"input_file_id\": \"file-abc123\",\n \"endpoint\": \"/v1/chat/completions\",\n \"completion_window\": \"24h\"\n}'\n```" operationId: create_batch_v1_batches_post security: - APIKeyHeader: [] parameters: - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' get: tags: - batch summary: List Batches description: "Lists \nThis is the equivalent of GET https://api.openai.com/v1/batches/\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: list_batches_v1_batches_get security: - APIKeyHeader: [] parameters: - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider - name: limit in: query required: false schema: anyOf: - type: integer - type: 'null' title: Limit - name: after in: query required: false schema: anyOf: - type: string - type: 'null' title: After - name: target_model_names in: query required: false schema: anyOf: - type: string - type: 'null' title: Target Model Names responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /{provider}/v1/batches: post: tags: - batch summary: Create Batch description: "Create large batches of API requests for asynchronous processing.\nThis is the equivalent of POST https://api.openai.com/v1/batch\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d '{\n \"input_file_id\": \"file-abc123\",\n \"endpoint\": \"/v1/chat/completions\",\n \"completion_window\": \"24h\"\n}'\n```" operationId: create_batch__provider__v1_batches_post security: - APIKeyHeader: [] parameters: - name: provider in: path required: true schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' get: tags: - batch summary: List Batches description: "Lists \nThis is the equivalent of GET https://api.openai.com/v1/batches/\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: list_batches__provider__v1_batches_get security: - APIKeyHeader: [] parameters: - name: provider in: path required: true schema: anyOf: - type: string - type: 'null' title: Provider - name: limit in: query required: false schema: anyOf: - type: integer - type: 'null' title: Limit - name: after in: query required: false schema: anyOf: - type: string - type: 'null' title: After - name: target_model_names in: query required: false schema: anyOf: - type: string - type: 'null' title: Target Model Names responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /batches/{batch_id}: get: tags: - batch summary: Retrieve Batch description: "Retrieves a batch.\nThis is the equivalent of GET https://api.openai.com/v1/batches/{batch_id}\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: retrieve_batch_batches__batch_id__get security: - APIKeyHeader: [] parameters: - name: batch_id in: path required: true schema: type: string title: Batch ID to retrieve description: The ID of the batch to retrieve description: The ID of the batch to retrieve - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /v1/batches/{batch_id}: get: tags: - batch summary: Retrieve Batch description: "Retrieves a batch.\nThis is the equivalent of GET https://api.openai.com/v1/batches/{batch_id}\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: retrieve_batch_v1_batches__batch_id__get security: - APIKeyHeader: [] parameters: - name: batch_id in: path required: true schema: type: string title: Batch ID to retrieve description: The ID of the batch to retrieve description: The ID of the batch to retrieve - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /{provider}/v1/batches/{batch_id}: get: tags: - batch summary: Retrieve Batch description: "Retrieves a batch.\nThis is the equivalent of GET https://api.openai.com/v1/batches/{batch_id}\nSupports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve\n\nExample Curl\n```\ncurl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" \n```" operationId: retrieve_batch__provider__v1_batches__batch_id__get security: - APIKeyHeader: [] parameters: - name: provider in: path required: true schema: anyOf: - type: string - type: 'null' title: Provider - name: batch_id in: path required: true schema: type: string title: Batch ID to retrieve description: The ID of the batch to retrieve description: The ID of the batch to retrieve responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /batches/{batch_id}/cancel: post: tags: - batch summary: Cancel Batch description: 'Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -X POST ```' operationId: cancel_batch_batches__batch_id__cancel_post security: - APIKeyHeader: [] parameters: - name: batch_id in: path required: true schema: type: string title: Batch Id - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /v1/batches/{batch_id}/cancel: post: tags: - batch summary: Cancel Batch description: 'Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -X POST ```' operationId: cancel_batch_v1_batches__batch_id__cancel_post security: - APIKeyHeader: [] parameters: - name: batch_id in: path required: true schema: type: string title: Batch Id - name: provider in: query required: false schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /{provider}/v1/batches/{batch_id}/cancel: post: tags: - batch summary: Cancel Batch description: 'Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -X POST ```' operationId: cancel_batch__provider__v1_batches__batch_id__cancel_post security: - APIKeyHeader: [] parameters: - name: batch_id in: path required: true schema: type: string title: Batch Id - name: provider in: path required: true schema: anyOf: - type: string - type: 'null' title: Provider responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: 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: APIKeyHeader: type: apiKey description: Bearer token in: header name: x-litellm-api-key