What problem does it solve?
TanStack AI solves the challenge of integrating AI providers reliably while keeping your app streaming-first, tool-capable, and type-safe instead of relying on brittle string parsing.
Core Features & Use Cases
- Provider-agnostic AI generation: Use one API surface across OpenAI, Anthropic, Gemini, and Ollama without rewriting your application logic.
- Streaming-first responses: Stream text incrementally for responsive UIs and progressive rendering.
- Tool calling with structured contracts: Define typed tool parameters and enable approval workflows for risky actions, such as destructive operations.
- Structured output with Zod: Produce schema-validated, predictable results for extraction and automation scenarios (e.g., generating JSON objects you can trust).
- Multimodal support: Handle text plus image inputs, and generate images through provider adapters.
- React/Solid/vanilla UX hooks: Drop in ready-to-use hooks for chat and completion interfaces.
Quick Start
Ask an AI to generate a structured, Zod-validated object using a provider adapter like OpenAI with streaming enabled and typed tool definitions for any required actions.