Install
Configure the provider
Stream text in a Next.js route
Generate structured data
Tool calling
Client hook
The SDK’suseChat hook needs no change. It hits your /api/chat route; your route calls RunInfra:
Next steps
Streaming cookbook
Streaming patterns from scratch.
Tool calling cookbook
Tool-loop patterns at the API level.
Structured output cookbook
JSON Schema responses.
OpenAI compatibility
The contract this integration rides on.