TanStack AI supports more than just chatbots — it can generate images, video, text-to-speech, speech-to-text, and structured output. A walkthrough shows how to use the `generateImage` function with OpenRouter's adapter to produce AI-generated images. The integration requires importing an adapter (e.g., `openRouterImage`), configuring an adapter config map, and passing a prompt, image count, and size. Results return as an array of objects containing a URL, base64-encoded data, and a revised prompt. OpenRouter is now an officially supported TanStack AI partner and financial sponsor.

3m watch time

Sort: