
Every page is one Markdown document. Put its routing and publishing data at the top. The page title comes from title, so do not repeat it as an H1 in the body.
Markdown
---
title: Streaming
collection: tts
slug: tts/streaming
status: published
sort_order: 10
summary: Begin playback before the response finishes.
---Use ## for sections and ### for subsections. These headings automatically populate the right-side page outline.
Write paragraphs, lists, bold text, inline code, and descriptive links normally.
Use a fenced code block. Add an optional language after the opening fence. The file-code icon and copy control are automatic; never write a manual toolbar.
`markdown
from openai import OpenAI client = OpenAI()
An unlabelled fence shows no language text:
`markdown
TEENAGEWORKS_API_KEY=your_key
Everything inside a card remains Markdown.
Markdown
:::card
### Keep credentials on the server
Read the key from an environment variable.
[button: Open API keys](/playground/api)
[Read the security guide](/docs/configure)
:::Use a warning for a translucent yellow “keep in mind†block. Use note for neutral information.
Markdown
:::warning
Avoid placing an API key in browser code.
:::Use a normal Markdown link for colored text navigation.
Markdown
[Read the streaming guide](/docs/tts/streaming)Prefix the link label with button: when it needs button treatment.
Markdown
[button: Open playground](/playground)Use ordinary Markdown media syntax. The optional quoted title is the caption. URLs ending in .mp4, .webm, or .mov render as video.
Markdown
On this page