cd /news/ai-tools/responses-api-rejects-http-payloads-… · home › topics › ai-tools › article
[ARTICLE · art-179115] src=discuss.huggingface.co ↗ pub= topic=ai-tools verified=true sentiment=↓ negative

Responses API rejects HTTP payloads larger than 100 KiB, preventing large-context Codex usage

Hugging Face's Responses API endpoint at router.huggingface.co/v1/responses rejects HTTP request bodies above 100 KiB with a 413 PayloadTooLargeError, according to a reproduction report tested against the zai-org/GLM-5.3-Flash model. Requests of 96 KiB, 99 KiB and 100 KiB returned HTTP 200, while a 101 KiB request returned HTTP 413, with the stack trace referencing raw-body 2.5.2, body-parser 1.20.3 and Express 4.21.2, indicating the default Express body-parser limit. The reporter says the restriction is an HTTP payload cap rather than a model context limit and blocks large-context Codex use with tool calls, source files and conversation history, and asks Hugging Face to raise the limit or document the supported payload size.

recommendation

Keep Responses API request bodies under 100 KiB by trimming conversation history and source files or splitting tool-call payloads, since 101 KiB returns HTTP 413.

more in playbook: Running AI in production
read1 min views7 publishedDec 1, 2026

Endpoint: https://router.huggingface.co/v1/responses

Model: zai-org/GLM-5.3-Flash The Responses API appears to enforce the default Express body-parser request size limit of 100 KiB.

Reproduction using a minimal valid JSON request padded with trailing whitespace:

96 KiB: HTTP 200

99 KiB: HTTP 200

100 KiB: HTTP 200

101 KiB: HTTP 413

Error: PayloadTooLargeError: request entity too large

Stack trace references raw-body 2.5.2, body-parser 1.20.3 and Express 4.21.2.

Since the padding does not increase the model’s token context, this appears to be an HTTP request-body restriction rather than a model context restriction.

This prevents effective use of large-context models with Codex, especially when using tool calls, source files and conversation history.

Could the request-body limit be increased to accommodate the advertised context windows, or could the supported HTTP payload limit be documented?

── more in #ai-tools 4 stories · sorted by recency
── more on @hugging face 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/responses-api-reject…] indexed:0 read:1min 2026-12-01 · —