---
description: A new text generation model, TanStack AI support, and expanded AI SDK capabilities
title: Introducing GLM-4.7-Flash on Workers AI, @cloudflare/tanstack-ai, and workers-ai-provider v3.1.1
image: https://developers.cloudflare.com/changelog/post/2026-02-13-glm-4.7-flash-workers-ai/og.png?v=972d063e12ba9d58
---

[Skip to content](#main-content)

[View RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) [ Subscribe to RSS](https://developers.cloudflare.com/changelog/rss/index.xml)

[Back to all posts](https://developers.cloudflare.com/changelog)

February 13, 2026

## Introducing GLM-4.7-Flash on Workers AI, @cloudflare/tanstack-ai, and workers-ai-provider v3.1.1

[Workers](https://developers.cloudflare.com/workers/) [Agents](https://developers.cloudflare.com/agents/) [Workers AI](https://developers.cloudflare.com/workers-ai/)

Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/changelog/post/2026-02-13-glm-4.7-flash-workers-ai/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

We're excited to announce **GLM-4.7-Flash** on Workers AI, a fast and efficient text generation model optimized for multilingual dialogue and instruction-following tasks, along with the brand-new [**@cloudflare/tanstack-ai** ↗︎](https://www.npmjs.com/package/@cloudflare/tanstack-ai) package and [**workers-ai-provider v3.1.1** ↗︎](https://www.npmjs.com/package/workers-ai-provider).

You can now run AI agents entirely on Cloudflare. With GLM-4.7-Flash's multi-turn tool calling support, plus full compatibility with TanStack AI and the Vercel AI SDK, you have everything you need to build agentic applications that run completely at the edge.

#### GLM-4.7-Flash — Multilingual Text Generation Model

[`@cf/zai-org/glm-4.7-flash`](https://developers.cloudflare.com/workers-ai/models/glm-4.7-flash/) is a multilingual model with a 131,072 token context window, making it ideal for long-form content generation, complex reasoning tasks, and multilingual applications.

**Key Features and Use Cases:**

- **Multi-turn Tool Calling for Agents**: Build AI agents that can call functions and tools across multiple conversation turns
- **Multilingual Support**: Built to handle content generation in multiple languages effectively
- **Large Context Window**: 131,072 tokens for long-form writing, complex reasoning, and processing long documents
- **Fast Inference**: Optimized for low-latency responses in chatbots and virtual assistants
- **Instruction Following**: Excellent at following complex instructions for code generation and structured tasks

Use GLM-4.7-Flash through the [Workers AI binding](https://developers.cloudflare.com/workers-ai/configuration/bindings/) (`env.AI.run()`), the REST API at `/run` or `/v1/chat/completions`, [AI Gateway](https://developers.cloudflare.com/ai-gateway/), or via [workers-ai-provider](https://developers.cloudflare.com/workers-ai/configuration/ai-sdk/) for the Vercel AI SDK.

Pricing is available on the [model page](https://developers.cloudflare.com/workers-ai/models/glm-4.7-flash/) or [pricing page](https://developers.cloudflare.com/workers-ai/platform/pricing/).

#### @cloudflare/tanstack-ai v0.1.1 — TanStack AI adapters for Workers AI and AI Gateway

We've released `@cloudflare/tanstack-ai`, a new package that brings Workers AI and AI Gateway support to [TanStack AI ↗︎](https://tanstack.com/ai). This provides a framework-agnostic alternative for developers who prefer TanStack's approach to building AI applications.

**Workers AI adapters** support four configuration modes — plain binding (`env.AI`), plain REST, AI Gateway binding (`env.AI.gateway(id)`), and AI Gateway REST — across all capabilities:

- **Chat** ( `createWorkersAiChat`) — Streaming chat completions with tool calling, structured output, and reasoning text streaming.
- **Image generation** ( `createWorkersAiImage`) — Text-to-image models.
- **Transcription** ( `createWorkersAiTranscription`) — Speech-to-text.
- **Text-to-speech** ( `createWorkersAiTts`) — Audio generation.
- **Summarization** ( `createWorkersAiSummarize`) — Text summarization.

**AI Gateway adapters** route requests from third-party providers — OpenAI, Anthropic, Gemini, Grok, and OpenRouter — through Cloudflare AI Gateway for caching, rate limiting, and unified billing.

To get started:

```sh
npm install @cloudflare/tanstack-ai @tanstack/ai
```

#### workers-ai-provider v3.1.1 — transcription, speech, reranking, and reliability

The Workers AI provider for the [Vercel AI SDK ↗︎](https://ai-sdk.dev) now supports three new capabilities beyond chat and image generation:

- **Transcription** ( `provider.transcription(model)`) — Speech-to-text with automatic handling of model-specific input formats across binding and REST paths.
- **Text-to-speech** ( `provider.speech(model)`) — Audio generation with support for voice and speed options.
- **Reranking** ( `provider.reranking(model)`) — Document reranking for RAG pipelines and search result ordering.

```typescript
import { createWorkersAI } from "workers-ai-provider";
import {
	experimental_transcribe,
	experimental_generateSpeech,
	rerank,
} from "ai";

const workersai = createWorkersAI({ binding: env.AI });

const transcript = await experimental_transcribe({
	model: workersai.transcription("@cf/openai/whisper-large-v3-turbo"),
	audio: audioData,
	mediaType: "audio/wav",
});

const speech = await experimental_generateSpeech({
	model: workersai.speech("@cf/deepgram/aura-1"),
	text: "Hello world",
	voice: "asteria",
});

const ranked = await rerank({
	model: workersai.reranking("@cf/baai/bge-reranker-base"),
	query: "What is machine learning?",
	documents: ["ML is a branch of AI.", "The weather is sunny."],
});
```

This release also includes a comprehensive reliability overhaul (v3.0.5):

- **Fixed streaming** — Responses now stream token-by-token instead of buffering all chunks, using a proper `TransformStream` pipeline with backpressure.
- **Fixed tool calling** — Resolved issues with tool call ID sanitization, conversation history preservation, and a heuristic that silently fell back to non-streaming mode when tools were defined.
- **Premature stream termination detection** — Streams that end unexpectedly now report `finishReason: "error"` instead of silently reporting `"stop"`.
- **AI Search support** — Added `createAISearch` as the canonical export (renamed from AutoRAG). `createAutoRAG` still works with a deprecation warning.

To upgrade:

```sh
npm install workers-ai-provider@latest ai
```

#### Resources

- [@cloudflare/tanstack-ai on npm ↗︎](https://www.npmjs.com/package/@cloudflare/tanstack-ai)
- [workers-ai-provider on npm ↗︎](https://www.npmjs.com/package/workers-ai-provider)
- [GitHub repository ↗︎](https://github.com/cloudflare/ai)

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2026-02-13-glm-4.7-flash-workers-ai/#page","headline":"Introducing GLM-4.7-Flash on Workers AI, @cloudflare/tanstack-ai, and workers-ai-provider v3.1.1","description":"A new text generation model, TanStack AI support, and expanded AI SDK capabilities","url":"https://developers.cloudflare.com/changelog/post/2026-02-13-glm-4.7-flash-workers-ai/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog/post/2026-02-13-glm-4.7-flash-workers-ai/og.png?v=972d063e12ba9d58","dateModified":"2026-02-13","datePublished":"2026-02-13","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
