Replicate E005 'The input or output was flagged as sensitive': Causes and Fixes
Replicate predictions fail with 'The input or output was flagged as sensitive. Please try again with different inputs. (E005)' or 'NSFW content detected'. What it means and how to fix it.
When a Replicate prediction fails with “The input or output was flagged as sensitive. Please try again with different inputs. (E005)”, the model’s own content filter refused your prompt, your input image or the generated result. It is not a Replicate platform error, which is why E005 does not appear in Replicate’s error code documentation. Running the same input again gives the same result.
This guide covers the messages you may see, what usually triggers them, how to find which input is responsible, and what to do when a model keeps refusing ordinary requests.
Sources checked November 22, 2026: Replicate’s error code and billing documentation, and the public write-ups linked below.
The messages
Replicate hosts models from many authors, and each model reports a refusal in its own words. The prediction ends with status: "failed" and the reason in the error field.
The input or output was flagged as sensitive. Please try again with different inputs. (E005)
This is the message reported for Seedance models on Replicate, sometimes with a ModelError: prefix. Open-weight image models with a built-in safety checker report a different one, beginning with:
NSFW content detected
Some models fail with no error text at all. In that case the reason, if there is one, is at the end of the prediction’s logs.
Why E005 is not in Replicate’s documentation
Replicate’s error code reference lists eight codes, all about infrastructure: E1000 unknown error, E1001 out of memory, E4875 webhook URL empty, E6716 timeout starting prediction, E8367 stopped in a non-terminal state, E8765 health check failed, E9243 error starting prediction and E9825 failed to upload file.
E005 is not one of them. It is returned by the model, so its meaning and its triggers are decided by whoever operates that model’s filter, and Replicate cannot tell you why a specific input was refused.
What usually triggers it
Public reports point to a short list. None of these is confirmed by the model’s operator, so treat them as things to test.
- A face that fills the frame. One write-up reports close-up faces in a reference image as the usual trigger, fixed by reframing to waist-up or wider.
- The input image itself, not its content. Another analysis attributes most of its E005 failures to the resolution of the input image, noting that they failed within a fraction of a second, before any generation could have happened.
- Real people and public figures in the prompt or the reference image.
- People who look young.
- Brands, logos, watermarks and overlaid text.
- Ambiguous wording, such as anatomy and fitness terms, swimwear, or violent words used innocently.
Find which input is responsible
The message says “input or output” and nothing more, so you have to narrow it down.
- Look at how fast it failed. A failure within a second or two means the input was refused before generation. A failure after the normal generation time means the output was refused.
- Send the prompt without the image. If it passes, the image is the cause.
- Send the image with a neutral prompt, such as “the subject slowly turns to the camera”. If it passes, the prompt is the cause.
- Resize and re-encode the image to a standard size and format, and try again.
- Crop wider if the image is a portrait.
Fixes
- Rewrite the flagged phrase in plain descriptive words instead of removing detail from the whole prompt.
- Change the reference image: wider framing, no watermark, no caption, no recognizable public figure.
- Use a standard input size and format for the model, as listed on its page.
- Try another model for the same task. Each model has its own filter, so the same input can pass elsewhere.
- Stop retrying identical inputs. A refusal is a final answer for that input.
SENSITIVE_MARKERS = ("flagged as sensitive", "(E005)", "NSFW content detected")
def classify(prediction: dict) -> str:
if prediction.get("status") != "failed":
return prediction.get("status", "unknown")
error = prediction.get("error") or ""
if any(marker in error for marker in SENSITIVE_MARKERS):
return "blocked" # change the input or the model; do not retry
if not error:
return "check_logs" # some models fail without an error string
return "failed"
What a blocked prediction costs
Replicate’s billing documentation says “if a run fails, we don’t charge you”, so a refused prediction on a public model should cost nothing. On deployments and private models you pay for the time the instance was online, which includes time spent on a run that ended in a refusal.
The larger cost is usually not the charge. It is the user who pressed the button three times and left.
If refusals are costing you users
A model’s own moderation applies wherever that model is hosted, so no platform can promise that a filter never fires. What you can choose is a platform where ordinary requests succeed more often, where a refusal is free, and where moving to another model is trivial.
WaveSpeedAI is built for a high generation success rate:
- Ordinary prompts go through. Content checks are aimed at clear violations, so everyday requests with people, products and common wording are not turned away for an ambiguous word.
- A blocked or failed task costs nothing. 100% of its cost is returned to your balance automatically.
- One documented error code. A refusal is reported as code
1200(Content Moderation) for every model, instead of a different sentence per model, and it is listed in the error code documentation. - Switch models with one line. Every model uses the same request and response format, so when one model refuses an input you can send it to the next.
- No cold starts, and the price of a request is shown before you run it.
Try your own prompts in the browser with the video generator or the image generator. For other issues people run into, see Replicate problems in 2026.
FAQ
What does E005 mean on Replicate?
The model’s content filter flagged your input or the generated output as sensitive. It is a model-level refusal, not a Replicate platform error.
Why is E005 missing from Replicate’s error code list?
Replicate documents only its own infrastructure codes. E005 is produced by the model, so Replicate’s reference does not cover it.
Why was my harmless image flagged as sensitive?
Reports point to close-up faces, real people, people who look young, logos and overlaid text, and sometimes the size or encoding of the input image. Test with a wider crop and a standard image size.
Can I retry an E005 failure?
Not with the same input. Change the prompt or the image, or use a different model.
Does Replicate charge for a prediction that was flagged?
Replicate says failed runs are not charged. On deployments and private models you still pay for the instance time.
Is there an API with fewer false refusals?
Results depend on the model and the input. WaveSpeedAI aims its checks at clear violations, reports refusals with one error code, and refunds every blocked or failed task in full.
/filters:quality(82)/media/images/1773962750383987480_n3hqzHRZ.webp)
/filters:quality(82)/media/images/c50e7783-dfb8-44de-96cf-9cd9525359a2.webp)