company logo

Help center

Go to Samsa
ImprintPrivacy PolicyTerms of Service
All collectionsFAQI get the error 'Prompt contains forbidden characters'. Why?

I get the error 'Prompt contains forbidden characters'. Why?

Your prompt contains characters that are not allowed. Here's what you need to know.

What does this error mean?

When you see "Prompt contains forbidden characters" or the error code FORBIDDEN_CHARACTERS_IN_PROMPT, it means your prompt contains characters or patterns that our system doesn't allow for security reasons.

What characters are NOT allowed?

Only two characters are blocked:

  • < (less than)

  • > (greater than)

These are blocked to prevent potential security vulnerabilities.

What else can trigger this error?

Besides < and >, a few patterns are also blocked:

  • 4 or more consecutive special characters — e.g. ...., ::::, ---- (3 in a row is fine)

  • Escape sequences — backslashes, tabs, or line breaks (these can sneak in when you copy-paste text)

  • Protocol handlers — javascript:, vbscript:, or data: (security precaution)

What IS allowed?

Almost everything! Your prompts can include:

  • All letters (A-Z, a-z) and international characters (ä, ö, ü, é, ñ, à, ç, etc.)

  • Numbers (0-9)

  • Spaces and common punctuation: . , ( ) : - ' " ! ? @ # $ % & * + = ~ _ [ ] { } | /

  • Emojis and special Unicode characters

Prompt length

  • Minimum: 3 characters

  • Maximum: 5,000 characters

Common fixes

  1. Remove < and > — write "less than" or "greater than" instead

  2. Reduce repeated punctuation — shorten .... to ... or fewer

  3. Type fresh instead of copy-pasting — copied text sometimes contains hidden escape characters or line breaks

Still having issues?

If you've followed this guide and still get the error, try retyping your prompt from scratch. If the problem persists, contact our support with the exact prompt text and we'll help you identify the issue.

Did this answer your question?
😞
😐
😁