Skip to content
AI Dev Toolkit.
Esc
  • AI Token CounterCount tokens for GPT, Claude, Gemini, DeepSeek, Qwen and more.Tool
  • LLM API Cost CalculatorEstimate per-request, daily and monthly API costs.Tool
  • AI Model ComparisonCompare prices, context windows and features across models.Tool
  • AI Model Pricing PagesSpecs, real costs and cheaper alternatives for popular models.Tool
  • Context Window CheckerSee whether your text fits each model's context window.Tool
  • Subscription vs API CalculatorFind out whether a chat plan or the API is cheaper for you.Tool
  • GPU / VRAM CalculatorCheck how much VRAM a local model needs and which GPUs fit.Tool
  • Claude Code Error DatabaseExact Claude Code error messages with tested fixes.Tool

Claude Code · Requests and models

API Error: Output blocked by content filtering policy

The API’s output filter stopped the response Claude was writing.

Message

The exact error

Claude Code
API Error: Output blocked by content filtering policy

Meaning

What it means

The text comes from the API, not Claude Code: its content filter stopped the reply part-way. It isn’t a problem with your setup, and Claude Code has already re-sent the request once when the filter stopped it early.

Causes

Common causes

  • The response heading towards content the filter blocks, sometimes triggered by the material in the conversation

Fix

How to fix it

  1. Rephrase

    Reword your last message or approach the task differently.

  2. Step back

    Press Esc twice or run /rewind to return to a checkpoint before the turn that triggered it.

Related

Search all Claude Code errors