In this article
Budget input, thinking and output together, and verify complete assembly across continuation hops before accepting an artifact.
Google made Gemini 4 Carbon generally available on November 10. Its documentation describes a unified window shared by input, thinking and output. Long decode can cross the default response limit through continuation hops, but the same overall context budget still constrains the request.
Allocate one shared window
The published limit is 1,048,576 tokens shared across the request and generated content. A large input reduces the remaining space for reasoning and the answer. Record actual usage rather than assuming that the maximum advertised output can coexist with a maximum-sized input. Add intermediate tool results to your application’s budget when they enter the context.
Understand the continuation unit
Google documents separate hop limits and background versus foreground execution. A background interaction can collect several model-output steps. A client that reads only one step may lose part of the result even if the server finishes successfully. Test with a synthetic artifact whose beginning, middle and ending can all be verified.
Handle reconnect without duplicating work
Persist the interaction identity and the continuation state required by the selected API mode. Interrupt the client, reconnect and verify that it retrieves or resumes the existing work according to that contract. Count duplicated output and repeated tool actions separately. A network retry is not by itself evidence that generation never started.
Accept a complete result within a deadline
Measure accepted artifact quality, total elapsed time and billed usage. Distinguish a completed answer from reaching the token ceiling. Long decode provides room for difficult reasoning, while the application still needs a stopping rule and an externally checkable result. Test the same problem at smaller and larger budgets to see whether additional tokens improve acceptance.
Primary sources
- Gemini API release notes, 10 November
- Gemini 4 Carbon model contract
- Long decode lifecycle and limits
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.