demo · v137 · origin trial
Writer API
On-device Writer turns a brief into prose without a server round-trip. Type a brief, pick a tone and length, watch the model write into the output box below.
Heads up · origin trial / flagEnable
chrome://flags/#writer-api-for-gemini-nano plus the on-device model component. Probe below confirms whether it's wired up right now.probing…
no output yet
the code
const writer = await Writer.create({ tone: "formal", format: "plain-text", length: "medium" });
const stream = await writer.writeStreaming(brief);
for await (const chunk of stream) out.textContent += chunk;
see also
- Writer API — feature index
- ChromeStatus entry