Skip to Content
NoCam API
Errors

prompt_too_long

The prompt is 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.

{
  "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.

On this page