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

> Source: <https://discuss.huggingface.co/t/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context-codex-usage/192907#post_1>
> Published: 2026-12-01 04:24:01+00:00

**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 the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

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?
