Build Real-World Apps with DeepSeek V3: 98% Cheaper & Better Than GPT
Key Takeaways
This tutorial shows how to use DeepSeek V3 to build real-world apps that are 98% cheaper and better than GPT
Full Transcript
in this video I'll introduce you to what might be the most exciting open-source model currently available deep seek V3 it's the first open-source AI model to outperform well-known closed Source Solutions like GPT 4 or clae 3.5 in various benchmarks that's not possible I'll show you how to access it how well its chat feature Works whether it can keep up in terms of multimodal capabilities and how to integrate it seamlessly into your own projects to do this we'll set up a professional chat solution in just a few minutes which you can use as a foundation for your own projects why make the switch when you compare the price performance ratio of deep seek to GPT or Claude there's a clear winner what's the catch deep seek is based in China so it's unclear how your data might be used this means it's especially suitable for projects where data privacy isn't the main concern okay let's head over to the Deep seek homepage and find out just how good this model really is first we'll take a look at the benchmarks deep seek V3 outperforms Claude 3.5 and GPT 4 on benchmarks like mlu and drop these tests measure how well a model handles a wide range of academic tasks and complex text reasoning overall deep seek V3 shows it can compete with and often surpass top closed Source models so let's start by trying out the Deep seek chat for this we first need to log in I'm going to use my Gmail account for that all right now we've got a chat interface let's start with something simple tell a joke we can see deep seek get to work and tell a joke I've seen quite often before now we want to ask something more challenging namely how many R letters are in Strawberry this is a classic question that many other open source models struggle with but it looks good on the first try it answered correctly next I'd like to try the analysis of an image so I'll upload a receipt of Walmart this receipt lists multiple items and I'd like to find the price of one in particular the pet toy at the top then I'll directly ask a question about this item specifically how much this pet toy costs looks good the model correctly States 197 that means it analyzed the receipt correctly now let's try something more complex we'll take the classic where's Waldo image and ask where Waldo is but that doesn't look good it says the image has no visual clues about Waldo's location which of course isn't accurate all right but now we actually want to work with the API and I want to show you that it's fairly simple and nothing to be afraid of when we log in we first see a note that current prices are still lower but will soon be raised let's see what that means and what the current costs are so we're using the model deep seek chat and right now we pay4 cents for 1 million tokens input and 28 cents for 1 million tokens output but we can already see the price will increase soon it's relatively quick to add money yesterday I added $2 for testing and it was very easy via PayPal or credit card you can see that even though I've tested it thoroughly I've hardly used any credit we can already create an API key which we'll definitely need later and should keep somewhere safe we give it a name and click on create API key then we copy the key it stor it somewhere now let's see how to make our first API call we'll go to python for this and we can see that the code is structured pretty simply and looks a lot like the open AI API integration we copy that code and create a new project by first making a folder called Deep seek chatbot we switch to that folder and open our editor of choice in my case cursor the first thing we do here is create a virtual environment to keep libraries separate we activate the environment and create a new file called app.py then we open it paste in the copied content and see that open AI is underlined that means we still need to install the open AI package we do that once with Pip install then we have to insert our API key and now we already have everything we need to run the script and try a test run we see that after sending hello we get back how can I assist you today that's great so I'll make a git commit of the current state and to do that I run git in it I'll add the venv directory to the G inor so it won't be added and then I'll commit the current status all right next we want to stream the response that means as soon as the language model starts generating text we'll output it immediately for this we wrap all the logic in a method called stream response and we tell the language model to stream the response our goal is for this stream response method to be called from an endpoint therefore we return each Chunk in the response as soon as it arrives we can use the yield method for this that handles each new chunk as it arrives now it's time for the flask server for this let's create a new python file server.py in server. pii we first import flask request and render template from flask and of course we need to install the flask library after we've done that we want to create two endpoints one endpoint returns a simple HTML page that displays the chat window and communicates with the second endpoint via HTTP streaming we'll create the index HTML page in a minute the stream endpoint will be accessed by the HTML page via vanilla JavaScript code we simply send the entered message as a parameter and call the stream response method from apppi we just need to tweak the stream endpoint slightly specifically we create an internal method called generate that calls the stream response and the result is then returned by the endpoint we can now actually start the server because we haven't built an HTML page yet we can test our endpoint via the specified Port by doing a simple curl request you see here I'm doing a quick request with the message hello how are you when we fire that off we nicely see how the result streams in so it really is delivered via HTTP streaming now of course we want a web page with a great chat interface that uses this endpoint we create a temp templates folder and inside it a file called index HTML there we can add a heading open it in the browser and it looks good it's being served here I paste some predefined code which is purely HTML with JavaScript we have a few containers a chat container and a JavaScript method that calls the stream endpoint and puts the response into the appropri container this is just a basic example that can be used as a blueprint many of my clients use it to integrate the end points into their existing websites we can also check it out live we have a nice design and if I say hi we can see how the AI responds there are no limits to your styling options I went for an 80s arcade look but with tools like cursor you can change the design anytime and adapt it to your websites and projects
Original Description
💡 Liked this video? This was just the surface.
Get the full code, deep-dive lessons, and premium projects here → https://ai-for-devs.com/youtube
Ready to meet the “GPT4o Killer” from China? In this video, we’ll build a full‑stack application using the DeepSeek V3 API.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Playlist UUL_DTHlvMUDGnBV0_B7NTyQ · AI FOR DEVS · 35 of 46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
▶
36
37
38
39
40
41
42
43
44
45
46
Build LLama 3 Chatbot on Groq Cloud with INSANE 800 TOKENS per second!
AI FOR DEVS
Build a Terminator Vision and Voice System with GPT-4V & ElevenLabs
AI FOR DEVS
GPT-4o API: Create Your Own Talking and Listening AI Girlfriend
AI FOR DEVS
Vision-based Web Scraping with the New GPT-4o model
AI FOR DEVS
Course Preview: Real-Time AI Mastery: Voice & Smart Assistants
AI FOR DEVS
Course Preview: AI Fundamentals
AI FOR DEVS
GPT-4o API: Create Your Own Talking and Listening AI Girlfriend #gpt4o #ai #chatgpt
AI FOR DEVS
Preview: Build your own YODA with MemGPT & Elevenlabs
AI FOR DEVS
Creating an Illustrated Book with GPT-4o Autogen Studio
AI FOR DEVS
NEW Claude 3.5 Sonnet API: Build a Handwriting Analyzer Web App from Scratch
AI FOR DEVS
Groq API: Real-Time Chatting with All Your Podcasts & MP3s
AI FOR DEVS
NEW Claude 3.5 Sonnet API: Create Your Own AI Book Author & Illustrator App
AI FOR DEVS
Build A Talking AI Agent with Claude 3.5 Sonnet - Python Tutorial
AI FOR DEVS
NEW GPT-4o Mini API - First Impressions: Real-World Use Cases … and Why It Beats GPT-4o
AI FOR DEVS
Building A LinkedIn Outreach AutoGen Workforce
AI FOR DEVS
ClaudeDev: This Mind-Blowing Coding Agent Can Build SaaS Apps in Minutes!
AI FOR DEVS
Watch Me Build an AI Chat Agent Solution for a Real Client
AI FOR DEVS
Build an Insane Realistic Uncensored Image Generator App with Cursor
AI FOR DEVS
3 Cursor Hacks to Boost Your Development Speed
AI FOR DEVS
LLAMA 3.2 Just Dropped! Let's Build a Full-Stack App with Incredible VISION
AI FOR DEVS
Run LLAMA 3.2 Models Locally with Ollama and Open WebUI
AI FOR DEVS
OpenAI Swarm - The New Groundbreaking AI Agent Framework
AI FOR DEVS
Enhancing OpenAI Swarm Agents with Real Business Data and Email Integration
AI FOR DEVS
Building an OpenAI o1 Clone with Nemotron
AI FOR DEVS
Building an OpenAI o1 Clone with Nemotron, RunPod, and Open WebUI
AI FOR DEVS
GROK 2: The Power—and Danger—of Uncensored AI
AI FOR DEVS
Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
AI FOR DEVS
Building and Tracking AI Agents with LangChain and LangSmith
AI FOR DEVS
NEW Model Context Protocol Revolutionizes AI Database Access
AI FOR DEVS
Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
AI FOR DEVS
Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
AI FOR DEVS
Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
AI FOR DEVS
Turn Claude Into Your Ultimate AI Hub – Connect Anything with Custom MCP Servers!
AI FOR DEVS
Build A Human-Like AI Agent That Feels Shockingly Real with Gemini 2.0 Flash API
AI FOR DEVS
Build Real-World Apps with DeepSeek V3: 98% Cheaper & Better Than GPT
AI FOR DEVS
Build a Talking Smarter-Than-You AI Girlfriend (DeepSeek R1 Tutorial)
AI FOR DEVS
This AI Girlfriend is Smarter Than You (And She’s Not Nice) - DeepSeek R1 Tutorial
AI FOR DEVS
NEW Gemini 2.0 EXP is MIND-BLOWING: Create Children's Stories with YOUR CHARACTERS (API Tutorial)
AI FOR DEVS
Gemini 2.5 Pro + Cursor + Custom MCP Server: The ULTIMATE AI Powerhouse!
AI FOR DEVS
Manus AI: Building a Profitable AI Business from Scratch in 45 Min
AI FOR DEVS
Run LLaMA 4 at Lightning Speed (Almost Free!)
AI FOR DEVS
Coding Showdown: Building A Learning App - GPT-4.1 vs Sonnet 3.7
AI FOR DEVS
Is GPT 4.1 in Cursor the NEW KING? 👑 Coding Challenge vs Claude 3.7 Sonnet
AI FOR DEVS
Build Your Own Video SaaS in Minutes with OpenAI Codex
AI FOR DEVS
Build an AI Skin Improver SaaS with Cursor & MCP
AI FOR DEVS
Einführung in LLMOps - Best Practices für Betrieb von LLMs
AI FOR DEVS
Related Reads
📰
📰
📰
📰
Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics
Dev.to AI
Demystifying LLM Tokenizers: Building a Client-Side Token and API Cost Calculator
Dev.to AI
When the Google Recap and the Juejin Picking Roundup Disagree on What Counts as AI
Dev.to AI
Build, Observe, Fix: A LangChain Agent Walkthrough
Medium · Python
🎓
Tutor Explanation
DeepCamp AI