Back to Docs
HOW IT WORKS

How DeRouter Works

Your request is relayed verbatim to official Claude and the response is returned byte-for-byte. Here's how we work — and why you get genuine Claude.

01

How your request flows

Your app
DeRouter dispatch
Subscription pool · healthy account
Official Claude

Your request first reaches DeRouter's dispatch layer, which picks a healthy account from the official Claude subscription pool to serve it. If one account hits a rate limit or hiccup, it transparently fails over to another healthy account.

02

Fully transparent: standard Anthropic in, official bytes out

Your request
POST https://api.derouter.network/proxy/v1/messages

{
  "model": "claude-sonnet-4-6",
  "max_tokens": 128,
  "stream": true,
  "messages": [
    { "role": "user", "content": "Explain load balancing in one sentence." }
  ]
}
Your response (SSE stream)
event: message_start
data: {"type":"message_start","message":{"model":"claude-sonnet-4-6","id":"msg_01AqZRKz7d9ekfcQbbSXKZQA","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":31,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":8,"service_tier":"standard","inference_geo":"not_available"}}   }

event: content_block_start
data: {"type":"content_block_start","index":0,"content_block":{"type":"thinking","thinking":"","signature":""}  }

event: ping
data: {"type": "ping"}

event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"signature_delta","signature":"EoMCCmUIDxgCKkAtlsEp6mrc/YwX2IvZVElcWXJ6//NXNivZngjK0nJzZUl2DLWNl6ZaHXAE4PnzmzLY1oj0xeAqC4Iy/5NNpEqbMhFjbGF1ZGUtc29ubmV0LTQtNjgAQgh0aGlua2luZxIMxR4ltD1x6iCQwVN3GgxmiVVJvbWAtg4BQiUiMCiXaJ8C1MNI9OaKeNVPzjJ0da5ThuP1xjnzByo7qAE+EQDlOxlJuEtWhDBjv1HWuSpMRnoB6TVo94FzhGKMFfJTShQ5Gmp3/2w8dboeFlhMQDcCw1PhqasSKPcWxVwPfyY4yi+WSTZ9aqAqmGckP1znh/xNY3asp+V7rF+tnRgB"}}

event: content_block_stop
data: {"type":"content_block_stop","index":0 }

event: content_block_start
data: {"type":"content_block_start","index":1,"content_block":{"type":"text","text":""}    }

event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":"Load balancing is the process of distributing incoming network traffic"}            }

event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" or workloads across multiple servers to prevent any single server from becoming overwhelmed,"}}

event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"text_delta","text":" ensuring high availability and reliability."} }

event: content_block_stop
data: {"type":"content_block_stop","index":1  }

event: message_delta
data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":31,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":66,"output_tokens_details":{"thinking_tokens":25},"iterations":[{"input_tokens":31,"output_tokens":66,"cache_read_input_tokens":0,"cache_creation_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"type":"message"}]},"context_management":{"applied_edits":[]}  }

event: message_stop
data: {"type":"message_stop"}

The above is a complete real round-trip; only the auth header is removed, everything else is verbatim. We do not rewrite your prompt, inject instructions, swap the model, or post-process the content.

We send requests via the official Claude Code CLI

The account serving your request calls Anthropic through Anthropic's official Claude Code CLI client — the same official channel as running Claude Code locally yourself. Exactly what we add to each request, and the full system prompt and tools, are publicly documented.

See the full Claude Code system prompt & tools
03

About third-party detection

Why does the third-party "structured output" check show red?

We go through the Claude Code CLI channel, and the CLI itself does not support forced structured output, so that capability isn't available on our path. It's a channel-capability difference — not a counterfeit, degraded, or rebranded model.

So is the model genuine?

Yes. You get the 100% official Claude model, and responses match official Claude byte-for-byte (see the real round-trip above). Every dimension that measures whether the model is genuinely Claude passes.