DeepSeek V4.1 Flash now available in AI Gateway

September 15, 2026

DeepSeek V4.1 Flash is now available through OpenRouter on Netlify’s AI Gateway with zero configuration required.

Use the OpenRouter SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using DeepSeek V4.1 Flash:

import { OpenRouter } from '@openrouter/sdk';
export default async () => {
const client = new OpenRouter();
const response = await client.chat.send({
chatRequest: {
model: 'deepseek/deepseek-v4.1-flash',
messages: [{ role: 'user', content: 'How can AI improve my coding?' }],
maxTokens: 400,
},
});
return Response.json(response);
};

DeepSeek V4.1 Flash is available across Background Functions, Scheduled Functions, and Edge Functions. You get automatic access to Netlify’s rate limiting and authentication infrastructure.

Learn more in the AI Gateway documentation and OpenRouter documentation.