openapi: 3.2.0 info: title: LiteLLM Compliance API description: 'Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs** 👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login``` 💸 ```LiteLLM Model Cost Map```. 🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**' version: 1.102.1 tags: - name: Compliance paths: /compliance/eu-ai-act: post: tags: - Compliance summary: Check Eu Ai Act Compliance description: 'Check EU AI Act compliance for a spend log entry. Checks: - Art. 9: Guardrails applied (any guardrail) - Art. 5: Content screened before LLM (pre-call guardrails) - Art. 12: Audit record complete (user_id, model, timestamp, guardrail_results)' operationId: check_eu_ai_act_compliance_compliance_eu_ai_act_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ComplianceCheckRequest' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ComplianceResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - APIKeyHeader: [] /compliance/gdpr: post: tags: - Compliance summary: Check Gdpr Compliance description: 'Check GDPR compliance for a spend log entry. Checks: - Art. 32: Data protection applied (pre-call guardrails) - Art. 5(1)(c): Sensitive data protected (masked/blocked or no issues) - Art. 30: Audit record complete (user_id, model, timestamp, guardrail_results)' operationId: check_gdpr_compliance_compliance_gdpr_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ComplianceCheckRequest' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ComplianceResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - APIKeyHeader: [] components: schemas: ComplianceCheckResult: properties: check_name: type: string title: Check Name article: type: string title: Article passed: type: boolean title: Passed detail: type: string title: Detail type: object required: - check_name - article - passed - detail title: ComplianceCheckResult description: Result of a single compliance check. ComplianceResponse: properties: compliant: type: boolean title: Compliant regulation: type: string title: Regulation checks: items: $ref: '#/components/schemas/ComplianceCheckResult' type: array title: Checks type: object required: - compliant - regulation - checks title: ComplianceResponse description: Response from a compliance check endpoint. ComplianceCheckRequest: properties: request_id: type: string title: Request Id user_id: anyOf: - type: string - type: 'null' title: User Id model: anyOf: - type: string - type: 'null' title: Model timestamp: anyOf: - type: string - type: 'null' title: Timestamp guardrail_information: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Guardrail Information type: object required: - request_id title: ComplianceCheckRequest description: 'Request payload for compliance check endpoints. Mirrors the spend log fields needed for compliance evaluation.' 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 HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError securitySchemes: APIKeyHeader: type: apiKey description: Bearer token in: header name: x-litellm-api-key