# prompt_too_long

> The prompt is too long

Source: https://docs.nocamclub.com/errors/prompt_too_long

- **Where:** `error` of a generation with `status: "failed"`
- **Charged:** No
- **Worth retrying:** Not as it is. The request has to change first.

## What happened

The prompt passed our limit of 10,000 characters but was too long for this model. The credits came back.

## What to do

Shorten the prompt.

## What it looks like

The real `message` and `hint` name the details of your request, such as the field and the values that work.

```json
{
  "status": "failed",
  "error": {
    "code": "prompt_too_long",
    "message": "The prompt passed our limit of 10,000 characters but was too long for this model. The credits came back.",
    "hint": "Shorten the prompt.",
    "retryable": false,
    "docs_url": "https://docs.nocamclub.com/errors/prompt_too_long"
  }
}
```

All codes: [Errors](https://docs.nocamclub.com/errors.md).
