Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.
writer-0.1 has a -token context window for the prompt and the output together.
How the output is bounded
The output allowance is your output limit (max_tokens, max_completion_tokens or max_output_tokens), or tokens without one. The gateway lowers it to the model’s maximum of tokens and to the room left after the prompt.The gateway counts the prompt with the model’s tokenizer. If the prompt leaves no room for an answer, the request fails with 400 context_length_exceeded. The gateway never truncates or drops messages, so shorten the prompt yourself: summarize earlier turns, or send only the parts of a document the answer needs.
Request limits
Up to messages per request.
Up to of JSON. Larger bodies fail with 413 request_too_large.
Tips for long prompts
Stream. The model takes longer to start answering when it reads a large document. Streaming shows progress as soon as the plan starts, and avoids HTTP client timeouts on long answers.
Put the instruction first and the document after it, in the user message.
Set a smaller output limit when you don’t need a long answer. Before calling the model, the gateway holds credits for the prompt plus the output allowance, and the token rate limit counts both. A smaller limit lowers both; you’re still charged only for the tokens used. See Rate limits.
Coding agents that resend a whole conversation can reach the context window. OpenCode compacts history before that by default. See OpenCode and coding agents.
Last modified on December 5, 2026
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Notra Documentation","description":"Documentation for Notra: track your brand across AI answer engines and turn your team's work into content.","colors":{"primary":"#8b5cf6","light":"#8b5cf6","dark":"#8b5cf6"},"logo":{"light":"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=ec067541de0d7eb5eb2bddf6eed3e9b4","dark":"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark-dark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=acc35d633060260aca265100d13e09a1"},"favicon":"https://mintcdn.com/notra/KRbWPF6cEiTVNBm6/favicon.svg?fit=max\u0026auto=format\u0026n=KRbWPF6cEiTVNBm6\u0026q=85\u0026s=ff71fb69837d03de53146d96aad9402a","api":{"url":"full"},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://www.usenotra.com/discord","label":"Discord"},{"href":"https://platform.usenotra.com","label":"Platform console"},{"href":"https://github.com/usenotra","type":"github"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.usenotra.com"}},"footer":{"socials":{"x":"https://x.com/usenotra","github":"https://github.com/usenotra","discord":"https://www.usenotra.com/discord"}},"search":{"prompt":"Search the Notra docs..."},"seo":{"metatags":{"twitter:site":"@usenotra"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"errors":{"404":{"redirect":false,"title":"This page is on a content pipeline of its own","description":"Looks like this page hasn't shipped yet. Try the [quickstart](/quickstart) or the [product map](/geo/product-map)."}},"contextual":{"options":["copy","view","assistant","mcp","chatgpt","claude","cursor"],"display":"header"},"thumbnails":{"preset":"headline"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"notra","hasAudioNarration":false,"actualSubdomain":"notra","customDomains":["www.usenotra.com"],"gitSource":{"type":"github","owner":"usenotra","repo":"notra","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d4c99ffae5051c40ca6d"},"feedback":{"thumbs":true,"edits":false,"agentFeedback":true,"issues":false},"entitlements":{},"buildId":"6b145c0c238df31c13354b9a","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Developers","count":185},{"language":"default","tag":"Endpoints","count":171},{"language":"default","tag":"GEO","count":116},{"language":"default","tag":"Sites","count":68},{"language":"default","tag":"Analytics","count":33},{"language":"default","tag":"Integrations","count":23},{"language":"default","tag":"Platform","count":22},{"language":"default","tag":"Autopilot","count":17},{"language":"default","tag":"AI Traffic","count":16},{"language":"default","tag":"Posts","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"buttons.css","content":".notra-button,#topbar-cta-button>a{--notra-button-shadow: 0 0 transparent;display:inline-flex;align-items:center;justify-content:center;gap:0.375rem;height:2rem;padding:0 0.625rem;border:1px solid transparent;border-radius:0.5rem;font-size:0.875rem;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--notra-button-shadow);transition:background-color 150ms ease-out,\n filter 150ms ease-out,\n transform 150ms ease-out}.notra-button-primary,#topbar-cta-button>a{color:oklch(0.997 0 0);border-color:oklch(0.6056 0.2189 292.7172 / 60%);background:linear-gradient(\n 180deg,\n oklch(0.6056 0.2189 292.7172 / 85%),\n oklch(0.6056 0.2189 292.7172)\n );--notra-button-shadow:\n inset 0 1px 0 rgb(255 255 255 / 28%), 0 1px 2px rgb(0 0 0 / 18%)}.notra-button-primary:hover,#topbar-cta-button>a:hover{filter:brightness(1.1)}.notra-button-outline{color:hsl(0 0% 9%);border-color:hsl(0 0% 89.8%);background:hsl(0 0% 100%);--notra-button-shadow: 0 1px 2px rgb(0 0 0 / 5%)}.notra-button-outline:hover{background:hsl(0 0% 96.1%)}.dark .notra-button-outline{color:hsl(0 0% 98%);border-color:hsl(240 4% 20%);background:hsl(240 4% 20% / 30%);--notra-button-shadow: 0 0 transparent}.dark .notra-button-outline:hover{background:hsl(240 4% 20% / 50%)}@supports (corner-shape: squircle){.notra-button,#topbar-cta-button>a{corner-shape:squircle;border-radius:0.75rem}}#topbar-cta-button>a>span{background:transparent}.notra-button:focus-visible,#topbar-cta-button>a:focus-visible{outline:none;border-color:oklch(0.6056 0.2189 292.7172);box-shadow:0 0 0 3px oklch(0.6056 0.2189 292.7172 / 50%),\n var(--notra-button-shadow)}.notra-button:active:not(:disabled),#topbar-cta-button>a:active{transform:scale(0.97)}.notra-button:disabled{cursor:not-allowed;opacity:0.5}@media (prefers-reduced-motion: reduce){.notra-button,#topbar-cta-button>a{transition:none}.notra-button:active:not(:disabled),#topbar-cta-button>a:active{transform:none}}"},{"filePath":"card-icons.css","content":"html.dark [data-component-part=\"card-icon\"] img[src*=\"/images/integrations/posthog.svg\"]{content:url(\"/images/integrations/posthog-dark.svg\")}"},{"filePath":"theme.css","content":"[role=\"menu\"]:has([data-component-part=\"theme-preference-menu-item\"]){opacity:0;pointer-events:none}"}]}
{"page":{"pagePath":"platform/guides/long-context","slug":"/platform/guides/long-context","pageMetadata":{"title":"Long context","description":"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.","authors":[{"handle":"jan"}],"docolin":{"schema_version":1,"kind":"tools/notra/platform/guides/long-context","type":"how-to","applies_to":["notra-labs-platform"],"language":"en","difficulty":"intermediate","time_estimate":"5m","status":"stable","aliases":["context window","context_length_exceeded","long prompts","max_tokens"]},"href":"/platform/guides/long-context"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const platform={\"baseUrl\":`https://platform.usenotra.com/v1`,\"openapiUrl\":`https://platform.usenotra.com/openapi.json`,\"llmsUrl\":`https://platform.usenotra.com/llms.txt`,\"apiKeyEnvVar\":`NOTRA_LABS_API_KEY`,\"keyPrefixes\":{\"production\":`nl_live_`,\"development\":`nl_test_`},\"maxKeysPerWorkspace\":`25`,\"requestIdHeader\":`x-request-id`,\"model\":{\"id\":`writer-0.1`,\"contextWindow\":`262,144`,\"maxOutputTokens\":`32,768`,\"defaultMaxOutputTokens\":`32,768`,\"inputPrice\":`$0.50`,\"outputPrice\":`$2.00`,\"host\":`Modal Labs, Inc.`,\"region\":`United States`},\"limits\":{\"maxMessages\":`500`,\"maxRequestSize\":`1.45 MB`,\"maxStopSequences\":`4`,\"shortPlanMaxTokens\":`256`,\"modelDeadlineSeconds\":`720`,\"clientTimeoutSeconds\":`750`},\"sampling\":{\"temperature\":`0 to 2`,\"topP\":`0 to 1`},\"coldStart\":{\"code\":`model_starting`,\"holdSeconds\":`75`,\"idleMinutes\":`5`,\"startMinutes\":`1 to 9`,\"retryAfterSeconds\":`30`,\"maxWaitMinutes\":`10`},\"rateLimits\":{\"keyRequests\":`60`,\"keyTokens\":`1,000,000`,\"workspaceRequests\":`300`,\"workspaceTokens\":`1,000,000`,\"playgroundRuns\":`20`},\"webSearch\":{\"dailyLimit\":`100`,\"maxRounds\":`3`,\"maxCallsPerRound\":`3`,\"pageMaxChars\":`8,000`},\"credits\":{\"welcome\":`$5`,\"purchaseMin\":`$5`,\"purchaseMax\":`$10,000`}};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`writer-0.1 has a `,platform.model.contextWindow,`-token context window for the prompt and the output together.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-the-output-is-bounded`,children:`How the output is bounded`}),`\n`,_jsxs(_components.p,{children:[`The output allowance is your output limit (`,_jsx(_components.code,{children:`max_tokens`}),`, `,_jsx(_components.code,{children:`max_completion_tokens`}),` or `,_jsx(_components.code,{children:`max_output_tokens`}),`), or `,platform.model.defaultMaxOutputTokens,` tokens without one. The gateway lowers it to the model’s maximum of `,platform.model.maxOutputTokens,` tokens and to the room left after the prompt.`]}),`\n`,_jsxs(_components.p,{children:[`The gateway counts the prompt with the model’s tokenizer. If the prompt leaves no room for an answer, the request fails with 400 `,_jsx(_components.code,{children:`context_length_exceeded`}),`. The gateway never truncates or drops messages, so shorten the prompt yourself: summarize earlier turns, or send only the parts of a document the answer needs.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-limits`,children:`Request limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Up to `,platform.limits.maxMessages,` messages per request.`]}),`\n`,_jsxs(_components.li,{children:[`Up to `,platform.limits.maxRequestSize,` of JSON. Larger bodies fail with 413 `,_jsx(_components.code,{children:`request_too_large`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`tips-for-long-prompts`,children:`Tips for long prompts`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stream.`}),` The model takes longer to start answering when it reads a large document. Streaming shows progress as soon as the plan starts, and avoids HTTP client timeouts on long answers.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Put the instruction first`}),` and the document after it, in the user message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set a smaller output limit`}),` when you don’t need a long answer. Before calling the model, the gateway holds credits for the prompt plus the output allowance, and the token rate limit counts both. A smaller limit lowers both; you’re still charged only for the tokens used. See `,_jsx(_components.a,{href:`/platform/account/rate-limits`,children:`Rate limits`}),`.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Coding agents that resend a whole conversation can reach the context window. OpenCode compacts history before that by default. See `,_jsx(_components.a,{href:`/platform/guides/coding-agents`,children:`OpenCode and coding agents`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{platform,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Long context","description":"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.","authors":[{"handle":"jan"}],"docolin":{"schema_version":1,"kind":"tools/notra/platform/guides/long-context","type":"how-to","applies_to":["notra-labs-platform"],"language":"en","difficulty":"intermediate","time_estimate":"5m","status":"stable","aliases":["context window","context_length_exceeded","long prompts","max_tokens"]},"href":"/platform/guides/long-context"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[143,1344,"undefined;function _"],[1689,1718,""],[2144,2182,""],[2254,2285,""],[2887,2915,""],[2988,3019,""]]},"mdxExtracts":{"tableOfContents":[{"title":"How the output is bounded","slug":"how-the-output-is-bounded","depth":2,"children":[]},{"title":"Request limits","slug":"request-limits","depth":2,"children":[]},{"title":"Tips for long prompts","slug":"tips-for-long-prompts","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/notra/1c34b1755a71d50d/databuddy.js","/docs/_mintlify/custom/notra/5641b035830c1390/theme-toggle.js"],"subdomain":"notra","siteName":"Notra Documentation","title":"Long context - Notra Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-05T18:46:49.116Z","gitLastModified":"2026-12-05T09:01:46.000Z","originalFileLocation":"platform/guides/long-context.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Notra Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Long context - Notra Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Notra Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.usenotra.com/docs/platform/guides/long-context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://notra.mintlify.site/docs/_mintlify/api/og/v2?division=Guides\u0026amp;title=Long+context\u0026amp;description=Send+long+documents+and+conversations+to+writer-0.1%3A+how+the+context+window+bounds+the+output%2C+prompts+with+no+room+for+an+answer%2C+request+limits+and+holds.\u0026amp;theme=ee1615b07fb0909d0eced992\u0026amp;signature=63618273b2a9ca04c7ea1060a4d44a5cee4b57d4bdbe69740cd360b4a0bb8310\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Long context - Notra Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://notra.mintlify.site/docs/_mintlify/api/og/v2?division=Guides\u0026amp;title=Long+context\u0026amp;description=Send+long+documents+and+conversations+to+writer-0.1%3A+how+the+context+window+bounds+the+output%2C+prompts+with+no+room+for+an+answer%2C+request+limits+and+holds.\u0026amp;theme=ee1615b07fb0909d0eced992\u0026amp;signature=63618273b2a9ca04c7ea1060a4d44a5cee4b57d4bdbe69740cd360b4a0bb8310\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/notra/sxLIY7EtkqgtHg_V/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Notra Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8b5cf6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.usenotra.com/docs/platform/guides/long-context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/platform/guides/long-context.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.usenotra.com/#organization\",\"name\":\"Notra Documentation\",\"url\":\"https://www.usenotra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/notra/2ET3yj_w1EiaVUnN/logo/notra-wordmark.svg?fit=max\u0026auto=format\u0026n=2ET3yj_w1EiaVUnN\u0026q=85\u0026s=ec067541de0d7eb5eb2bddf6eed3e9b4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.usenotra.com/docs#website\",\"name\":\"Notra Documentation\",\"url\":\"https://www.usenotra.com/docs\",\"publisher\":{\"@id\":\"https://www.usenotra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.usenotra.com/docs/platform/guides/long-context#webpage\",\"url\":\"https://www.usenotra.com/docs/platform/guides/long-context\",\"name\":\"Long context\",\"description\":\"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\",\"dateModified\":\"2026-12-05T09:01:46.000Z\",\"isPartOf\":{\"@id\":\"https://www.usenotra.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.usenotra.com/docs/platform/guides/long-context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.usenotra.com/docs/platform/guides/long-context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://www.usenotra.com/docs/platform/guides/streaming\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Long context\",\"item\":\"https://www.usenotra.com/docs/platform/guides/long-context\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.usenotra.com/docs/platform/guides/long-context#article\",\"headline\":\"Long context\",\"name\":\"Long context\",\"description\":\"Send long documents and conversations to writer-0.1: how the context window bounds the output, prompts with no room for an answer, request limits and holds.\",\"url\":\"https://www.usenotra.com/docs/platform/guides/long-context\",\"mainEntityOfPage\":{\"@id\":\"https://www.usenotra.com/docs/platform/guides/long-context#webpage\"},\"dateModified\":\"2026-12-05T09:01:46.000Z\",\"publisher\":{\"@id\":\"https://www.usenotra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.usenotra.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Notra Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Notra Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/platform/guides/long-context.md","siteName":"Notra Documentation","nav":{"global":null,"tabs":[{"tab":"GEO","icon":"chart-line","pages":[{"title":"GEO","href":"/quickstart"}]},{"tab":"Autopilot","icon":"rocket","pages":[{"title":"Autopilot","href":"/autopilot/overview"}]},{"tab":"Sites","icon":"globe","pages":[{"title":"Sites","href":"/sites/overview"}]},{"tab":"Analytics","icon":"robot","pages":[{"title":"Analytics","href":"/analytics/overview"}]},{"tab":"Playbooks","icon":"book-open","pages":[{"title":"Playbooks","href":"/playbooks/first-30-days"}]},{"tab":"Studio","icon":"pen-nib","pages":[{"title":"Studio","href":"/concepts/content-pipeline"}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/api/getting-started"}]},{"tab":"Platform","icon":"microchip","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Notra Labs Platform","sidebarTitle":"Overview","href":"/platform/overview"},{"title":"Notra Labs Platform quickstart","sidebarTitle":"Quickstart","href":"/platform/quickstart"}]},{"group":"Models","icon":"brain","pages":[{"title":"writer-0.1","href":"/platform/models/writer-0-1"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"Streaming","href":"/platform/guides/streaming"},{"title":"Function calling","href":"/platform/guides/function-calling"},{"title":"Structured output","href":"/platform/guides/structured-output"},{"title":"Stop sequences","description":"End writer-0.1's answer at a string of your choice with stop on Chat Completions. Stop sequences apply to the answer only, never to the plan or tool calls.","href":"/platform/guides/stop-sequences"},{"title":"Long context","href":"/platform/guides/long-context"},{"title":"Cold starts and retries","description":"What happens when writer-0.1 starts after being idle, which errors to retry, and how to configure retries and timeouts in the OpenAI SDKs for long waits.","href":"/platform/guides/cold-starts-and-retries"},{"title":"OpenCode and coding agents","href":"/platform/guides/coding-agents"}]},{"group":"Account","icon":"users-gear","pages":[{"title":"API keys","href":"/platform/account/api-keys"},{"title":"Playground","href":"/platform/account/playground"},{"title":"Credits and billing","href":"/platform/account/credits-and-billing"},{"title":"Rate limits","href":"/platform/account/rate-limits"},{"title":"Logs and usage","href":"/platform/account/logs-and-usage"},{"title":"Data and privacy","href":"/platform/account/data-and-privacy"}]},{"group":"API reference","icon":"code","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/platform/api-reference/introduction"},{"title":"Errors","href":"/platform/api-reference/errors"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Create a chat completion","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/chat/completions","href":"/platform/api-reference/chat-completions/create-a-chat-completion"},{"title":"Create a response","deprecated":null,"version":null,"openapi":"/platform/openapi.json post /v1/responses","href":"/platform/api-reference/responses/create-a-response"},{"title":"List models","deprecated":null,"version":null,"openapi":"/platform/openapi.json get /v1/models","href":"/platform/api-reference/models/list-models"},{"title":"Retrieve a model","deprecated":null,"version":null,"openapi":"/platform/openapi.json get /v1/models/{id}","href":"/platform/api-reference/models/retrieve-a-model"}]}]}]}]},"basePath":"","title":"Long context - Notra Documentation","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":[],"chunks":[]}