---
title: "PredictionError"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53/schemas/PredictionError"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53.md

# PredictionError

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.1.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    PredictionError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code for programmatic handling
          enum:
            - INVALID_INPUT
            - MODEL_ERROR
            - TIMEOUT
            - QUOTA_EXCEEDED
            - INTERNAL_ERROR
          example: INVALID_INPUT
        message:
          type: string
          description: Human-readable error message
          example: "Invalid prompt: prompt too long"
        details:
          type: string
          description: Additional error details
          example: Prompt must be less than 1000 characters
```
