
Streaming JSON with partial parsing
Render fields into your UI as the model streams them, not after the whole object arrives.
A partial-JSON parser lets you show fields the moment they close — a huge perceived-latency win for structured outputs.
The Vercel AI SDK's streamObject handles this out of the box. In Python, use partial-json-parser.
Build this with TokenRex
TokenRex is an LLM marketplace by Asirex Labs. Choose an enabled model, create a private API key and use the supported endpoint shown in Docs. Check live prices before your first request.