{"slug": "responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context", "title": "Responses API rejects HTTP payloads larger than 100 KiB, preventing large-context Codex usage", "summary": "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.", "body_md": "Endpoint: `https://router.huggingface.co/v1/responses`\n\nModel: `zai-org/GLM-5.3-Flash`\n\nThe Responses API appears to enforce the default Express body-parser request size limit of 100 KiB.\n\nReproduction using a minimal valid JSON request padded with trailing whitespace:\n\n96 KiB: HTTP 200\n\n99 KiB: HTTP 200\n\n100 KiB: HTTP 200\n\n101 KiB: HTTP 413\n\nError: `PayloadTooLargeError: request entity too large`\n\nStack trace references raw-body 2.5.2, body-parser 1.20.3 and Express 4.21.2.\n\nSince 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.\n\nThis prevents effective use of large-context models with Codex, especially when using tool calls, source files and conversation history.\n\nCould the request-body limit be increased to accommodate the advertised context windows, or could the supported HTTP payload limit be documented?", "url": "https://wpnews.pro/news/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context", "canonical_source": "https://discuss.huggingface.co/t/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context-codex-usage/192907#post_1", "published_at": "2026-12-01 04:24:01+00:00", "updated_at": "2026-12-01 04:44:15.436903+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-infrastructure", "developer-tools"], "entities": ["Hugging Face", "Responses API", "zai-org/GLM-5.3-Flash", "Codex", "Express", "body-parser", "raw-body"], "also_reported_by": [], "takeaway": "Hugging Face's Responses API caps request bodies at 100 KiB (101 KiB returns HTTP 413 PayloadTooLargeError), so large-context Codex requests with tool calls and source files must be split or trimmed to stay under the limit.", "recommendation": {"advice": "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.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context", "markdown": "https://wpnews.pro/news/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context.md", "text": "https://wpnews.pro/news/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context.txt", "jsonld": "https://wpnews.pro/news/responses-api-rejects-http-payloads-larger-than-100-kib-preventing-large-context.jsonld"}}