---
title: "Deepseek V4 on AI Gateway"
source_name: "Vercel News"
original_url: "https://vercel.com/changelog/deepseek-v4-on-ai-gateway"
canonical_url: "https://www.traeai.com/articles/a39a57f0-3273-4fcf-a7b8-be03da29232e"
content_type: "article"
language: "中文"
score: 5
tags: []
published_at: "2026-04-23T07:00:00+00:00"
created_at: "2026-04-24T06:16:00.276252+00:00"
---

# Deepseek V4 on AI Gateway

Canonical URL: https://www.traeai.com/articles/a39a57f0-3273-4fcf-a7b8-be03da29232e
Original source: https://vercel.com/changelog/deepseek-v4-on-ai-gateway

## Summary

traeai 为开发者、研究员和内容团队筛选高质量 AI 技术内容，提供摘要、评分、趋势雷达与一键内容产出。

## Key Takeaways

- 
- 
- 

## Content

Title: Deepseek V4 on AI Gateway - Vercel – Vercel

URL Source: http://vercel.com/changelog/deepseek-v4-on-ai-gateway

Markdown Content:
# Deepseek V4 on AI Gateway - Vercel
[Skip to content](http://vercel.com/changelog/deepseek-v4-on-ai-gateway#geist-skip-nav)

[](http://vercel.com/home)

*   Products

    *   ##### [AI Cloud](http://vercel.com/ai)

        *   [AI Gateway One endpoint, all your models](http://vercel.com/ai-gateway)
        *   [Sandbox Isolated, safe code execution](http://vercel.com/sandbox)
        *   [Vercel Agent An agent that knows your stack](http://vercel.com/agent)
        *   [AI SDK The AI Toolkit for TypeScript](https://sdk.vercel.ai/)
        *   [v0 Build applications with AI](https://v0.app/)

    *   ##### Core Platform

        *   [CI/CD Helping teams ship 6× faster](http://vercel.com/products/previews)
        *   [Content Delivery Fast, scalable, and reliable](http://vercel.com/cdn)
        *   [Fluid Compute Servers, in serverless form](http://vercel.com/fluid)
        *   [Workflow Long-running workflows at scale](http://vercel.com/workflows)
        *   [Observability Trace every step](http://vercel.com/products/observability)

    *   ##### [Security](http://vercel.com/security)

        *   [Bot Management Scalable bot protection](http://vercel.com/security/bot-management)
        *   [BotID Invisible CAPTCHA](http://vercel.com/botid)
        *   [Platform Security DDoS Protection, Firewall](http://vercel.com/security)
        *   [Web Application Firewall Granular, custom protection](http://vercel.com/security/web-application-firewall)

*   Resources

    *   ##### Company

        *   [Customers Trusted by the best teams](http://vercel.com/customers)
        *   [Blog The latest posts and changes](http://vercel.com/blog)
        *   [Changelog See what shipped](http://vercel.com/changelog)
        *   [Press Read the latest news](http://vercel.com/press)
        *   [Events Join us at an event](http://vercel.com/events)

    *   ##### Learn

        *   [Docs Vercel documentation](http://vercel.com/docs)
        *   [Academy Linear courses to level up](http://vercel.com/academy)
        *   [Knowledge Base Find help quickly](http://vercel.com/kb)
        *   [Community Join the conversation](https://community.vercel.com/)

    *   ##### Open Source

        *   [Next.js The native Next.js platform](http://vercel.com/frameworks/nextjs)
        *   [Nuxt The progressive web framework](https://nuxt.com/)
        *   [Svelte The web’s efficient UI framework](https://svelte.dev/)
        *   [Turborepo Speed with Enterprise scale](http://vercel.com/solutions/turborepo)

*   Solutions

    *   ##### Use Cases

        *   [AI Apps Deploy at the speed of AI](http://vercel.com/ai)
        *   [Composable Commerce Power storefronts that convert](http://vercel.com/solutions/composable-commerce)
        *   [Marketing Sites Launch campaigns fast](http://vercel.com/solutions/marketing-sites)
        *   [Multi-tenant Platforms Scale apps with one codebase](http://vercel.com/solutions/multi-tenant-saas)
        *   [Web Apps Ship features, not infrastructure](http://vercel.com/solutions/web-apps)

    *   ##### Tools

        *   [Marketplace Extend and automate workflows](http://vercel.com/marketplace)
        *   [Templates Jumpstart app development](http://vercel.com/templates)
        *   [Partner Finder Get help from solution partners](http://vercel.com/partners/solution-partners)

    *   ##### Users

        *   [Platform Engineers Automate away repetition](http://vercel.com/solutions/platform-engineering)
        *   [Design Engineers Deploy for every idea](http://vercel.com/solutions/design-engineering)

*   [Enterprise](http://vercel.com/enterprise)
*   [Pricing](http://vercel.com/pricing)

Ask AI

Ask AI[Log In](http://vercel.com/login)

[Sign Up](http://vercel.com/signup)[Sign Up](http://vercel.com/signup)

Vercel April 2026 security incident

[Read the bulletin](http://vercel.com/kb/bulletin/vercel-april-2026-security-incident)

[Blog](http://vercel.com/blog)/[Changelog](http://vercel.com/changelog)

# Deepseek V4 on AI Gateway

## Authors

[![Image 1](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/7jtL0Mn7aiO36rLm35owTl/279ec2bb7e31e427fea78dae85f3fd27/walter-korman-128.jpg)](https://twitter.com/shaper)[![Image 2](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/4mTlJLUr26FU5t2JMqjYUN/1561fe0ff4969763b852ac813d47d694/rohan-taneja-128.jpg)](https://twitter.com/rtaneja_)[![Image 3](https://assets.vercel.com/image/upload/f_auto,c_fill,w_48,h_48,q_75/contentful/image/e5382hct74si/6hDMurwZFhBVFsZpSP8ECX/69cd9a4a5d1a85c31e6ccd7f664d54c7/jerilyn-zheng-128.jpg)](https://twitter.com/jerilynzheng)

1 min read

Copy URL

Copied to clipboard!

Apr 23, 2026

DeepSeek V4 is now available on [Vercel AI Gateway](https://vercel.com/ai-gateway).

There are 2 model variants: DeepSeek V4 Pro and DeepSeek V4 Flash. A 1M token context window is the default across both models.

DeepSeek V4 Pro focuses on agentic coding, formal mathematical reasoning, and long-horizon workflows. It handles feature development, bug fixing, and refactoring across stacks, with tool use that works across harnesses like MCP workflows and agent frameworks. It also writes clear, well-structured long-form documents.

DeepSeek V4 Flash performs close to V4 Pro on reasoning and holds up on simpler agent tasks, with a smaller parameter size for faster responses and lower API cost. It's a good fit for high-volume workloads and latency-sensitive use cases.

To use DeepSeek V4, set model to `deepseek/deepseek-v4-pro` or `deepseek/deepseek-v4-flash` in the [AI SDK](https://ai-sdk.dev/).

```
1import { streamText } from 'ai';2
3const result = streamText({4  model: 'deepseek/deepseek-v4-pro', // or 'deepseek/deepseek-v4-flash'5  prompt:6    `Audit this repository for unsafe concurrent access patterns,7     propose a refactor that introduces proper synchronization,8     and open the changes as a PR with a migration plan.`,9});
```

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in [custom reporting](https://vercel.com/docs/ai-gateway/capabilities/custom-reporting), [observability](https://vercel.com/docs/observability/ai-sdk-observability), [Bring Your Own Key](https://vercel.com/docs/ai-gateway#bring-your-own-key) support, and intelligent provider routing with automatic retries.

Learn more about [AI Gateway](https://vercel.com/docs/ai-gateway), view the [AI Gateway model leaderboard](https://vercel.com/ai-gateway/leaderboards) or try it in our [model playground](https://vercel.com/ai-gateway/models/deepseek-v4-pro).

**Ready to deploy?**Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

[Start Deploying](http://vercel.com/new)[Talk to an Expert](http://vercel.com/contact/sales)

**Explore Vercel Enterprise** with an interactive product tour, trial, or a personalized demo.

[Explore Enterprise](http://vercel.com/try-enterprise)

## Get Started

*   [Templates](http://vercel.com/templates)
*   [Supported frameworks](http://vercel.com/docs/frameworks)
*   [Marketplace](http://vercel.com/marketplace)
*   [Domains](http://vercel.com/domains)

## Build

*   [Next.js on Vercel](http://vercel.com/frameworks/nextjs)
*   [Turborepo](http://vercel.com/solutions/turborepo)
*   [v0](https://v0.app/)

## Scale

*   [Content delivery network](http://vercel.com/cdn)
*   [Fluid compute](http://vercel.com/fluid)
*   [CI/CD](http://vercel.com/products/previews)
*   [Observability](http://vercel.com/products/observability)
*   [AI Gateway New](http://vercel.com/ai-gateway)
*   [Vercel Agent New](http://vercel.com/agent)

## Secure

*   [Platform security](http://vercel.com/security)
*   [Web Application Firewall](http://vercel.com/security/web-application-firewall)
*   [Bot management](http://vercel.com/security/bot-management)
*   [BotID](http://vercel.com/botid)
*   [Sandbox New](http://vercel.com/sandbox)

## Resources

*   [Pricing](http://vercel.com/pricing)
*   [Customers](http://vercel.com/customers)
*   [Enterprise](http://vercel.com/enterprise)
*   [Articles](http://vercel.com/i)
*   [Startups](http://vercel.com/startups)
*   [Solution partners](http://vercel.com/partners/solution-partners)

## Learn

*   [Docs](http://vercel.com/docs)
*   [Blog](http://vercel.com/blog)
*   [Changelog](http://vercel.com/changelog)
*   [Knowledge Base](http://vercel.com/kb)
*   [Academy](http://vercel.com/academy)
*   [Community](https://community.vercel.com/)

## Frameworks

*   [Next.js](http://vercel.com/frameworks/nextjs)
*   [Nuxt](http://vercel.com/docs/frameworks/full-stack/nuxt)
*   [Svelte](http://vercel.com/docs/frameworks/full-stack/sveltekit)
*   [Nitro](http://vercel.com/docs/frameworks/backend/nitro)
*   [Turbo](http://vercel.com/solutions/turborepo)

## SDKs

*   [AI SDK](https://ai-sdk.dev/)
*   [Workflow SDK New](https://workflow-sdk.dev/)
*   [Flags SDK](https://flags-sdk.dev/)
*   [Chat SDK](https://chat-sdk.dev/)
*   [Streamdown AI New](https://streamdown.ai/)

## Use Cases

*   [Composable commerce](http://vercel.com/solutions/composable-commerce)
*   [Multi-tenant platforms](http://vercel.com/solutions/multi-tenant-saas)
*   [Web apps](http://vercel.com/solutions/web-apps)
*   [Marketing sites](http://vercel.com/solutions/marketing-sites)
*   [Platform engineers](http://vercel.com/solutions/platform-engineering)
*   [Design engineers](http://vercel.com/solutions/design-engineering)

## Company

*   [About](http://vercel.com/about)
*   [Careers](http://vercel.com/careers)
*   [Help](http://vercel.com/help)
*   [Press](http://vercel.com/press)
*   [Legal](http://vercel.com/legal)
*   [Privacy Policy](http://vercel.com/legal/privacy-policy)

## Community

*   [Open source program](http://vercel.com/open-source-program)
*   [Events](http://vercel.com/events)
*   [Shipped on Vercel](http://vercel.com/shipped)
*   [GitHub](https://github.com/vercel)
*   [LinkedIn](https://linkedin.com/company/vercel)
*   [X](https://x.com/vercel)
*   [YouTube](https://youtube.com/@VercelHQ)

[](http://vercel.com/home)

[Loading status…](https://vercel-status.com/)Select a display theme:system light dark
