ollama/docs/api
Jeffrey Morgan 634c416645
Add experimental image generation fields to /api/generate (#13753)
Request fields (experimental):
- width: image width (max 4096)
- height: image height (max 4096)
- steps: denoising steps
- seed: random seed

Response fields (experimental):
- images: base64-encoded generated images
- completed: current step progress
- total: total steps

Other changes:
- Fix lifecycle bug where image models wouldn't unload (refCount issue)
- Fix "headers already written" error on Ctrl+C during streaming
- Add gin middleware for OpenAI /v1/images/generations compatibility
- Update CLI to use /api/generate with progress bar
- Add preload support in interactive mode
2026-01-17 18:27:41 -08:00
..
anthropic-compatibility.mdx docs: add env var needed for claude code in docs (#13721) 2026-01-15 10:11:00 -08:00
authentication.mdx docs: add docs for docs.ollama.com (#12805) 2025-10-28 13:18:48 -07:00
errors.mdx docs: add docs for docs.ollama.com (#12805) 2025-10-28 13:18:48 -07:00
introduction.mdx docs: rename api-reference.md back to api.md since redirect stopped working (#13056) 2025-11-11 15:53:06 -08:00
openai-compatibility.mdx Add experimental image generation fields to /api/generate (#13753) 2026-01-17 18:27:41 -08:00
streaming.mdx docs: add docs for docs.ollama.com (#12805) 2025-10-28 13:18:48 -07:00
usage.mdx docs: add docs for docs.ollama.com (#12805) 2025-10-28 13:18:48 -07:00