Examples, end-to-end tutorials, and small apps built with the ZeroGPU API.
All runnable demos live under demos/, one folder per demo, with a descriptive name:
cookbook/
├── README.md ← you are here
├── .gitignore ← ignores .env, node_modules, dist (keeps repo safe)
└── demos/
├── summarize-react/ ← React summarization app
├── iab-classification-react/ ← React IAB classification app
├── batch-requests-node/ ← Node.js parallel batch requests
├── quickstart-python/ ← Python one-shot request
└── ...
Naming: Use demos/<name>/ where <name> is short and descriptive, e.g. summarize-react, iab-classification-node.
| Demo | Description |
|---|---|
| demos/summarize-react | React (Vite): summarize text with zlm-v1-summary-cloud. API key and project ID in the UI. |
| demos/iab-classification-react | React (Vite): classify content into IAB categories with zlm-v1-iab-classify-cloud. |
| demos/batch-requests-node | Node.js: send multiple summarization requests in parallel. Env vars for credentials. |
| demos/quickstart-python | Python: one request to the API, print response and usage. Env vars for credentials. |
- Create a folder under
demos/with a clear name (e.g.demos/my-feature-react/). - Add a
README.mdin that folder with setup and run instructions. - Do not commit
.env, API keys, or secrets. Use.env.examplefor templates. The repo.gitignorealready ignores.envandnode_modules. - Update this README’s Demos table with a link and one-line description.
- Never commit
.envor any file containing API keys or secrets. .env.example(templates only, no real values) is fine to commit.- Demos that take credentials in the UI (e.g. for local try-it) are for demo use only; production apps should call ZeroGPU from a backend.