All stories
3 min read

Next.js 16.4 makes caching more explicit as OpenAI launches Decisions API

Two October 6 releases give developers more control over what gets rendered ahead of time and what an AI endpoint is allowed to return.

Illustration of a cached browser page connected to three bounded decision paths
Original illustration of static page rendering and typed AI decisions; not a product screenshot.

Cache Components become the starting point for new Next.js apps

Next.js 16.4, announced October 6, enables Cache Components by default in newly created `create-next-app` projects. The model lets developers mark parts of a component tree with `'use cache'` while other parts can still render for a request. The Next.js team now recommends this approach for new apps, but says it is planned to become the framework-wide default in Next.js 17—not in every existing 16.4 app.

Existing projects must choose to adopt it. The release post shows both `cacheComponents: true` and `partialPrefetching: true` in the configuration. An upgrade alone does not silently convert an application's rendering and caching behavior.

Static routes can fail early instead of becoming dynamic by accident

The new `ensureStatic` setting can require a route's shell, prefetch, or full navigation to stay static. At its strictest `navigation` level, adding request-time content makes the build fail. This is useful for pages whose deployment cost or response time depends on avoiding unexpected server rendering; it does not make a dynamic page static automatically.

Next.js 16.4 also adds `navigation()` and `prefetch()` controls for deciding which cached work waits until a real visit or an explicit prefetch. Those choices let teams avoid fetching every part of a page merely because a link became visible. They still need to decide which content is worth loading early for their own users.

OpenAI gives classification a narrower endpoint

OpenAI's October 6 API changelog introduced the Decisions API in public beta. It accepts text, images, or both through `POST /v1/decisions`, currently using only `gpt-6-luna`. Rather than generating an open-ended reply, a question requests one of three typed results: an estimated probability for a condition, a choice from supplied options, or a score against ordered levels.

The official guide positions these answers for tasks such as classifying content, routing requests, and prioritizing work. Independent questions can share a request; if a later decision depends on an earlier answer, it needs a separate request. This makes the endpoint a focused option for bounded application decisions, not a replacement for every generative workflow.

A faster answer still needs a review threshold

OpenAI describes typed Decisions answers as about ten times faster than its Responses API. That is the company's comparison, not a performance guarantee for every application. The API remains a beta with one supported model, and an individual question can return a refusal instead of the requested result.

For routing or review, the guide recommends setting thresholds with labeled examples and weighing the costs of false positives and false negatives. Teams evaluating image inputs should also note a current integration limit: images must be supplied as inline base64 data URLs, not hosted image links or file IDs.

Sources & further reading