Get your DeepSeek API key

Get an AI/ML API key and call DeepSeek V4.1 Flash with the Universal AI SDK. 55% off right now, no promo code. Pay as you go from one balance.

−55%
DeepSeek V4.1 Flash
Input, per 1M tokens
$0.0675$0.15
Output, per 1M tokens
$0.27$0.60
AI/ML API
Model: DeepSeek V4.1 FlashDeepSeek V4 ProDeepSeek V4 FlashDeepSeek ChatDeepSeek R1
Choose a DeepSeek model

Trusted by top teams

  • Adobe
  • Washington State University
  • NVIDIA
  • ByteDance
  • Alibaba
  • Poolside
  • MiniMax
  • Open Claude
  • RAGFlow
  • Zero
AI models
500+
AI providers
70+
Agentic tools
1000+
API uptime
99.99%

DeepSeek API pricing

DeepSeek V4.1 Flash is 55% off right now. Other DeepSeek models are at their regular price per 1M tokens. One key calls any row.

DeepSeek models on AI/ML API with prices per 1M tokens and context window
Model Type Use it for Input Output Context
DeepSeek V4.1 Flash−55%deepseek/deepseek-v4.1-flash Text The current Flash build, with image understanding $0.0675 $0.15/ 1M tokens $0.27 $0.60/ 1M tokens 1M
DeepSeek V4 Prodeepseek/deepseek-v4-pro Text Chat and deeper reasoning with thinking mode $0.66 / 1M tokens $1.98 / 1M tokens 1M
DeepSeek V4 Flashdeepseek/deepseek-v4-flash Text Fast chat and reasoning $0.15 / 1M tokens $0.60 / 1M tokens 1M
DeepSeek Chatdeepseek/deepseek-chat Text The floating deepseek-chat ID, served by V4.1 Flash $0.15 / 1M tokens $0.60 / 1M tokens 1M
DeepSeek R1deepseek/deepseek-reasoner Text Chain-of-thought reasoning $0.15 / 1M tokens $0.60 / 1M tokens 128K

How to get your DeepSeek API key

  1. Create your AI/ML API account

    Sign up with Google, GitHub or email. If you already have an account, log in.

    Screenshot of the AI/ML API sign-up page: Create your account, with Continue with Google, Continue with GitHub and an email field.
  2. Add credit

    Open Billing and add funds. You pay as you go and each request draws on this balance.

  3. Create your DeepSeek API key

    Open API keys and choose Create API Key. Name it, set a spending limit and store it on your server.

  4. Send your first request

    Open the Playground, pick a DeepSeek model and type a message. To call it from code, use your key with a supported SDK.

    AI/ML API
    Model: DeepSeek V4.1 FlashDeepSeek V4 ProDeepSeek V4 FlashDeepSeek ChatDeepSeek R1
    Choose a DeepSeek model

Works with your
existing AI stack

- OPENAI_API_KEY- ANTHROPIC_API_KEY- GEMINI_API_KEY+ AIML_API_KEY

Use GPT, Claude and other AI models with the SDK. Switch models without building a separate integration.

Compare DeepSeek API providers

DeepSeek API access through AI/ML API, OpenRouter and DeepSeek
OpenRouter DeepSeek
Models from other providers on the same keyYes. 70+ providersYes. 80+ providersDeepSeek models only
Fees on top of model pricesYes. 0% markupNo. 5.5% on credit purchases, $0.80 minimumDirect pricing
Pay with cryptoYes. YesYes. USDC, 5% feeNot stated
Smart model routingYes. Jev RouterYes. Auto RouterNot stated

AI plans that grow with you

Start small and scale on the same API as your traffic grows

Pay as you go

From $20

Best for

  • Production projects
  • Fast iteration & scaling
  • Startups & indie devs

What's included

  • Access to all models
  • No usage limits
  • Access to Playground
  • Pay with crypto
  • Pay only for what you use
  • Priority human support

Enterprise

Custom

Best for

  • High-volume workloads
  • Custom infrastructure
  • Enterprise & regulated use

What's included

  • Dedicated servers
  • Custom / private models
  • Unlimited RPM & TPM
  • Extended data storage
  • Shared Slack channel
  • Team training & integration
  • Personal account manager
  • Any feature on request

DeepSeek API FAQ

  1. Create an AI/ML API account, add credit, then open API keys and choose Create API Key. The same key calls every DeepSeek model. Follow the setup guide.

  2. No. You get an AI/ML API key and call DeepSeek models through api.aimlapi.com. A key from the DeepSeek Platform works only with DeepSeek's own API, and one can't replace the other.

  3. You pay per token from your AI/ML API balance. DeepSeek V4.1 Flash is 55% off: $0.0675 for 1M input tokens instead of $0.15, and $0.27 for 1M output instead of $0.60. DeepSeek V4 Pro is $0.66 and $1.98. See all DeepSeek prices.

  4. Yes. Set base_url to https://api.aimlapi.com/v1 and pass your AI/ML API key; the model IDs start with deepseek/. See supported SDKs.

  5. Add https://mcp.aimlapi.com/mcp as a remote MCP server and sign in through the browser. Your agent can then run AI/ML API models and check your balance. Read the MCP guide.

  6. DeepSeek V4.1 Flash: it is 55% off right now and covers fast chat, reasoning and image understanding. Move to DeepSeek V4 Pro for harder reasoning and long tasks.

  7. Store the key in a server-side environment variable. Keep it out of browser code and public repositories, and set a spending limit in your account.

Start building with DeepSeek