🌐
DeepSeek
api-docs.deepseek.com › your first api call
Your First API Call | DeepSeek API Docs
curl https://api.deepseek.com/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \ -d '{ "model": "deepseek-chat", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} ], "stream": false }' # Please install OpenAI SDK first: `pip3 install openai` import os from openai import OpenAI client = OpenAI(api_key=os.environ.get('DEEPSEEK_API_KEY'), base_url="https://api.deepseek.com") response = client.chat.completions.create( model="deepseek-chat", messages=[ {"role": "system", "content": "You are a helpful assistant"}, {"role": "user", "content": "Hello"}, ], stream=False ) print(response.choices[0].message.content)
Introducing DeepSeek-V3
Biggest leap forward yet
DeepSeek-R1 Release 2025/01/20
⚡ Performance on par with OpenAI-o1 · 📖 Fully open-source model & technical report
DeepSeek-V3-0324 Release
* 🔹 Major boost in reasoning performance
Models & Pricing
The prices listed below are in units of per 1M tokens. A token, the smallest unit of text that the model recognizes, can be a word, a number, or even a punctuation mark. We will bill based on the total number of input and output tokens by the model.
🌐
DeepSeek
api-docs.deepseek.com › introduction
DeepSeek API | DeepSeek API Docs
The DeepSeek API. To use the DeepSeek API, please [create an API key first](https://platform.deepseek.com/api_keys).
🌐
AI Content Labs
docs.aicontentlabs.com › articles › deepseek-api-key
How to Set Up the DeepSeek API Key
January 7, 2025 - Once inside DeepSeek, select “Access API”. In the left sidebar, click on “API Keys“.
🌐
GitGuardian
docs.gitguardian.com › deepseek api key
DeepSeek API Key | GitGuardian documentation
Summary: DeepSeek is an AI-based service that can be used to perform any task that involves understanding or generating natural language. Secrets can be revoked from the platform in the dedicated section "API keys".
🌐
Chatbase
chatbase.co › blog › deepseek-api
How to Access and Use the DeepSeek API
Just change the URL, add your DeepSeek API key, and you're done. No need to rewrite your code. Plus, it's open-source. That means transparent pricing, no vendor lock-in, and you can even self-host if you want.
🌐
Apidog
apidog.com › blog › how-to-use-deepseek-api-for-free
How to Use DeepSeek API for Free: A Step-by-Step Guide
October 20, 2025 - Getting Started with the DeepSeek APIStep 1: Get Your OpenRouter API KeyStep 2: Install Required LibrariesMaking API Requests with PythonStep 1: Create Your Python ScriptStep 2: Add the CodeStep 3: Run the ScriptUsing DeepSeek API with ApidogStep 1: Install ApidogStep 2: Create a New API RequestStep 3: Configure HeadersStep 4: Add the Request BodyStep 5: Send the RequestUsing DeepSeek API in Visual Studio Code (VS Code)Step 1: Install VS Code and PythonStep 2: Install the Python Extension in VS CodeStep 3: Create and Run Your Python ScriptConclusion
🌐
Rahulranjan
rahulranjan.org › 2025 › 02 › 01 › how-to-get-your-deepseek-api-key-testing-and-troubleshooting
How to Get Your DeepSeek API Key: Testing and Troubleshooting – Tech Insights & Blogs by Rahul Ranjan
March 20, 2025 - Fill out any required forms or provide details about your use case (e.g., personal project, business integration). In the developer portal, look for an option to Generate API Key or Create New Key.
🌐
Reddit
reddit.com › r/janitorai_official › how to get the deepseek api back! (openrouter method)
[Mature Content] r/JanitorAI_Official on Reddit: HOW TO GET THE DEEPSEEK API BACK! (OPENROUTER METHOD)
July 3, 2025 -

openrouter.ai does literally what chutes did, for freeah~ . anyways enough gatekeeping.

  1. Make an openrouter.ai account

  2. Top right, hover over the burger button and click Settings > API key

  3. Create API Key, name it literally anything it doesnt matter.

  4. COPY API KEY. NOW, SAVE IT. (AND DONT SHARE IT OMFG??)

  5. GO BACK into Janitor.ai, create/go back into a chat or whatever

  6. Top right > API settings > Proxy

(FOLLOW THIS PART VERY CAREFULLY NOW!)

7) PUT THESE IN THE FOLLOWING BOXES:

Model: Custom

deepseek/deepseek-chat-v3-0324:free

Other API/proxy URL:

https://openrouter.ai/api/v1/chat/completions

API Key:

(the api key that you created)

8) NOW: scroll down, press save. now refresh the website and click "Check API Key/Model"

YOU SHOULD GET: Valid API Key. Click Save Settings, and you can start chatting to your bots now!

"I didnt get it!! it said network error.." PRESS SAVE SETTINGS AT THE BOTTOM, THEN REFRESH THE WEBSITE, THEN CLICK CHECK API KEY AND MODEL!

Hope this tutorial helps :3

Find elsewhere
🌐
Elephas
elephas.app › blog › deepseek-api-key
4 Step Guide (Latest): How to get DeepSeek API Key for AI in 2025
May 2, 2025 - Learn how to obtain your DeepSeek API key in 2025 with our 4-step guide! Easily integrate DeepSeek AI into your projects
🌐
DEV Community
dev.to › auden › how-to-use-deepseek-api-and-enable-streaming-output-for-debugging-1ah9
How to Use Deepseek API and Enable Streaming Output for Debugging - DEV Community
February 27, 2025 - After that, go to the "Environment Management" section in the upper-right corner of the project. Click on "Prod Env" and in the Service Base URL field, enter https://api.deepseek.com.
🌐
DeepSeek
platform.deepseek.com › api_keys
DeepSeek Platform
Join DeepSeek API platform to access our AI models, developer resources and API documentation.
🌐
LobeHub
lobehub.com › docs › usage › providers › deepseek
Using DeepSeek API Key in LobeChat · LobeChat Docs · LobeHub
3 days ago - First, you need to register and log in to the DeepSeek open platform. New users will receive a free quota of 500M Tokens · Go to the API keys menu and click on Create API Key.
🌐
HARPA AI
harpa.ai › guides › connecting-harpa-to-deepseek-api
HARPA AI | Connecting to DeepSeek
During testing, we found that summarizing 4x 15-minute YouTube videos costs about 1 cent, so $2 should be enough to check the functionality. Go to the API Keys tab, name and generate your key.
🌐
Salesmartly
help-en.salesmartly.com › docs › How-to-get-deepseek-API-key
How to get DeepSeek API key?-SaleSmartly-Help Center-SaleSmartly User Guide
1. Function Introduction This article will explain how to register DeepSeek and how to configure the DeepSeek API key. 2. Operation process 1. Enter the DeepSeek platform Official website: https://www.deepse
🌐
NewOaks AI
newoaks.ai › blog › deepseek-api-key-free-2025
How to Get Your Free DeepSeek API Key in 2025
March 7, 2025 - Go to the DeepSeek site, click 'Sign Up', and pick how you want to log in. Confirm your email to turn on your account. Look in your Spam folder if the email isn’t there. Get your free API key by logging in and going to the 'API Keys' section.
🌐
Cody
meetcody.ai › home › get started with deepseek r1 api: setup, usage, and pricing
Get Started with DeepSeek R1 API: Setup, Usage, and Pricing
January 28, 2025 - Visit the DeepSeek Open Platform and log in to your account. Navigate to the “API Keys” section in the sidebar.
🌐
Medium
meghashyamthiruveedula.medium.com › getting-started-with-the-deepseek-api-a-quick-guide-6acab9919f3f
Getting Started with the DeepSeek API: A Quick Guide | by Meghashyam Thiruveedula - MS | Medium
January 31, 2025 - Because DeepSeek’s API is designed to be compatible with OpenAI’s, you can often use OpenAI’s SDKs and libraries with DeepSeek by simply changing the base_url and providing your DeepSeek API key.
🌐
DataCamp
datacamp.com › tutorial › deepseek-api
DeepSeek API: A Guide With Examples and Cost Calculations | DataCamp
February 11, 2025 - You can learn more about the difference between the two models in this blog on DeepSeek R1 vs V3. Learn the fundamentals of AI and ChatGPT from scratch. ... Get an API key: Sign up on the DeepSeek API platform and generate your key.
🌐
Medium
medium.com › @fayaz-khan › how-to-use-deepseek-api-for-free-a-step-by-step-guide-b1362aed3e6f
How to Use DeepSeek API for Free: A Step-by-Step Guide | by Fayaz Khan | Medium
March 27, 2025 - From my testing, DeepSeek handles complex reasoning quite well and seems particularly good at coding tasks. It’s not perfect — what AI is? — but it’s definitely worth adding to your toolkit, especially since you can access it for free. ... First things first, you’ll need an API key from OpenRouter, which basically acts as a middleman giving you access to DeepSeek.