<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu" -->

---
title: TanStack AI Alpha 2: Every Modality, Better APIs,...
description: TanStack AI's second alpha release restructures the library away from monolithic per-provider adapters toward modality-specific imports (e.g. openaiText,...
canonical: https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles | daily.dev
og:description: TanStack AI's second alpha release restructures the library away from monolithic per-provider adapters toward modality-specific imports (e.g. openaiText,...
og:url: https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu
og:image: https://api.daily.dev/og/posts/76MNDD7Fu.png
og:image:alt: TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles

**[TanStack](https://daily.dev/sources/tanstack-blog)** · 3 min read · 0 upvotes · 0 comments

## Summary

TanStack AI's second alpha release restructures the library away from monolithic per-provider adapters toward modality-specific imports (e.g. openaiText, openaiImage, openaiVideo), enabling smaller bundles, faster incremental feature rollout, and simpler adapter maintenance (down to 3 type generics from 7). Breaking API changes include replacing the adapter+model pattern with a single typed call like openaiText('gpt-4'), renaming providerOptions to modelOptions, moving shared settings like temperature to the root config, and dropping the Zod-only constraint in favor of Standard Schema support for tools and structured outputs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tanstack.com/blog/tanstack-ai-alpha-2>

## Questions this post answers

### How do I migrate my TanStack AI chat call from the old openai() adapter to the new alpha 2 API?

Replace adapter: openai() with model: 'gpt-4' set separately with the combined adapter: openaiText('gpt-4') call, which gives immediate typesafety. Also rename providerOptions to modelOptions (nested under a modality key like text: {}), and move settings like temperature out of a nested options object to the root of the chat config.

_Track breaking API changes like this TanStack AI migration path on daily.dev before they hit your build._

### Why did TanStack AI split its provider adapters by modality instead of keeping one adapter per provider?

Splitting adapters by modality (openaiText, openaiImage, openaiVideo, etc.) lets a small team add new capabilities incrementally without touching every provider at once, keeps each adapter's type generics down to 3 instead of 7, lets developers import only the modalities they use for smaller bundles, and makes third-party contributions faster to review and merge.

_Compare AI SDK architecture tradeoffs like this one on daily.dev when picking a library for a multimodal integration._

### Does TanStack AI still require Zod for tools and structured outputs?

No, TanStack AI alpha 2 drops the Zod-only constraint and adds Standard Schema support, letting developers bring their own schema validation library for tools and structured outputs instead of being locked into Zod.

_Keep up with schema validation flexibility changes like this on daily.dev while building AI tooling._

## Similar posts on daily.dev

- [TanStack Releases Framework Agnostic AI Toolkit](https://daily.dev/posts/tanstack-releases-framework-agnostic-ai-toolkit-j747yitl6) · InfoQ · 1 upvotes · 0 comments
- [TanStack Adds Framework-Agnostic AI Toolkit](https://daily.dev/posts/tanstack-adds-framework-agnostic-ai-toolkit-osqcmpmfc) · The New Stack · 18 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#typescript](https://daily.dev/tags/typescript), [#tanstack](https://daily.dev/tags/tanstack)

[View this post on daily.dev](https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles","url":"https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu"},"datePublished":"2026-08-23T12:22:25.612Z","dateModified":"2026-08-23T12:47:28.510Z","description":"TanStack AI's second alpha release restructures the library away from monolithic per-provider adapters toward modality-specific imports (e.g. openaiText,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fe5e6e4fe4358843d20f28cbc8803b39?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fe5e6e4fe4358843d20f28cbc8803b39?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"TanStack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"TanStack","logo":"https://media.daily.dev/image/upload/s--TVIrvIT7--/f_auto,q_auto/v1787487634/logos/tanstack-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/tanstack-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,typescript,tanstack","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"TanStack","item":"https://daily.dev/sources/tanstack-blog"},{"@type":"ListItem","position":3,"name":"TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/tanstack-ai-alpha-2-every-modality-better-apis-smaller-bundles-76mndd7fu#faq","mainEntity":[{"@type":"Question","name":"How do I migrate my TanStack AI chat call from the old openai() adapter to the new alpha 2 API?","acceptedAnswer":{"@type":"Answer","text":"Replace adapter: openai() with model: 'gpt-4' set separately with the combined adapter: openaiText('gpt-4') call, which gives immediate typesafety. Also rename providerOptions to modelOptions (nested under a modality key like text: {}), and move settings like temperature out of a nested options object to the root of the chat config. Track breaking API changes like this TanStack AI migration path on daily.dev before they hit your build."}},{"@type":"Question","name":"Why did TanStack AI split its provider adapters by modality instead of keeping one adapter per provider?","acceptedAnswer":{"@type":"Answer","text":"Splitting adapters by modality (openaiText, openaiImage, openaiVideo, etc.) lets a small team add new capabilities incrementally without touching every provider at once, keeps each adapter's type generics down to 3 instead of 7, lets developers import only the modalities they use for smaller bundles, and makes third-party contributions faster to review and merge. Compare AI SDK architecture tradeoffs like this one on daily.dev when picking a library for a multimodal integration."}},{"@type":"Question","name":"Does TanStack AI still require Zod for tools and structured outputs?","acceptedAnswer":{"@type":"Answer","text":"No, TanStack AI alpha 2 drops the Zod-only constraint and adds Standard Schema support, letting developers bring their own schema validation library for tools and structured outputs instead of being locked into Zod. Keep up with schema validation flexibility changes like this on daily.dev while building AI tooling."}}]}
```

