Skip to content
WebAI

Structured Output

Constrain the model to valid JSON

Generate JSON with a schema prompt. Strict mode validates fields and types and reports invalid output for retry.

Switch model · 3 Available models · 3 of them ship real browser weightsSamples are shared within a subcategory — switching models keeps your input intact.

Input

SamplesSamples are editable — once you change them they count as custom input.
Parameters

Output

webllm-json-mode
No result yetPick a sample or edit the input, then hit “Run inference”.

Model info

webllm-json-mode

Framework: WebLLMSize: —License: Apache-2.0
All models
Notes

Computed for real in the browser (canvas pixel ops / STFT spectral processing / vector retrieval).

Switching models only changes weight size, device and backend metadata; samples are shared across every model in the subcategory.

Marked entries really download and load weights on switch (slow the first time, cached afterwards). Unmarked ones ship no browser weights: instant output, nothing downloaded.