DeepSeek V4.1 Flash Ultrafast debuts on Vercel AI Gateway with 1,000 tokens per second
- Reading
- 4 min
- Code
- 2
The Ultrafast version of DeepSeek V4.1 Flash, served by Fireworks inside Vercel's AI Gateway, promises more than 1,000 tokens per second and a 1 million token context window, with no markup on the provider's price.
Vercel added an accelerated version of DeepSeek V4.1 Flash to the AI Gateway catalog, called 1017 Ultrafast. According to Vercel's official changelog, the model is served by Fireworks through an optimized serverless endpoint and can generate more than 1,000 tokens per second. The name "1017" marks DeepSeek V4.1 Flash's October 17 update, and it's this specific revision that is available in public preview, with no waitlist and no session duration limit.
For those building front ends with embedded AI, the main gain isn't reasoning quality, it's latency. A model that responds nearly in real time changes the perceived performance of any interface that depends on text streaming: chat, code copilot, contextual autocomplete. The difference between a model at 100 tokens/s and one at 1,000 tokens/s is the difference between a response that "drips" word by word and one that arrives nearly complete.
How the AI Gateway fits into your code
The model enters the AI SDK as just another identifier string, with no proprietary Fireworks SDK and no separate key. Per the changelog, it's enough to point deepseek/deepseek-v4.1-flash-1017-ultrafast as the model in a streamText() call:
import { streamText } from 'ai';
const result = streamText({
model: 'deepseek/deepseek-v4.1-flash-1017-ultrafast',
prompt: 'Write a TypeScript helper that retries a failed request with backoff.',
});
for await (const text of result.textStream) {
process.stdout.write(text);
}This is the same pattern any Next.js app already uses for other models in the AI Gateway: you swap the model name, nothing else changes in the UI code that consumes the stream. In practice, this means you can test Ultrafast in an existing route handler by changing a single line, measure the perceived latency in the app itself, and decide whether the speed gain is worth any difference in response quality, without rewriting the integration layer.
1 million token context changes what fits in the prompt
The model keeps a 1 million token context window, which is relevant for anyone sending entire codebases, long conversation histories, or extensive documentation along with the prompt. Combined with generation speed, this opens up a specific use case: agents that need to read a lot of context and still return the next action quickly, instead of choosing between a large context and a fast response.
It's exactly the kind of trade-off that stalls agentic workflows today: an agent that scans a large repository to decide its next step usually runs into either the context limit or the response time. Having both things in the same endpoint reduces workaround engineering, like splitting the prompt into smaller calls just to gain speed.
Direct use in Claude Code, Codex, and Cursor
Vercel also documented the model's integration with third-party coding agents. The path described in the changelog is to install Vercel's latest CLI and run the gateway setup:
npx vercel ai-gateway setupAfter that, deepseek/deepseek-v4.1-flash-1017-ultrafast appears as a model option within the agent itself (Claude Code, Codex, or Cursor, according to the source). For those who already use these agents daily, this removes the need to manage a separate Fireworks API key: billing, limits, and routing all go through the AI Gateway, with unified usage and cost reports.
What the Gateway charges (and doesn't charge)
Vercel reinforces a point that often weighs on architecture decisions: the AI Gateway reflects the provider's price with no markup and charges no platform fee on inference, including requests made with your own key (BYOK). This includes features such as:
- Zero Data Retention for those who need stricter compliance;
- Configurable budgets per API key;
- Routing and failover rules between providers;
- Custom usage reports.
For teams that already run multiple models behind the same gateway, swapping DeepSeek Ultrafast for another model in case of instability is a matter of a routing rule, not rewriting the integration.
When it's worth it and when it isn't
Ultrafast is a name that already signals the implicit trade-off: generation speed instead of reasoning depth. For autocomplete, support chat, boilerplate generation, and intermediate steps in an agent, a near-instant response tends to matter more than longer, more careful reasoning. For tasks that require more elaborate analysis, it's worth comparing this endpoint's output with the standard DeepSeek V4.1 Flash or with slower reasoning models before switching in production.
It's also worth noting that the service depends on Fireworks' infrastructure behind Vercel's gateway, which inserts one more layer between the application and the model. In public preview, with no formal SLA disclosed in the changelog, it makes sense to treat the endpoint as an option to test in parallel, with fallback configured through the AI Gateway's own routing rules, before relying on it as the only path in production.
Translated from the Brazilian Portuguese original · Read the original
Vercel's Chat SDK adds generative UI streaming via json-render
json-render lets Chat SDK agents generate interface cards directly within the conversation flow, converting the result into Block Kit on Slack or Adaptive Cards on Teams. A typed catalog of components keeps every message from turning into a new adapter to maintain.





