r/DeepSeek • • 19d ago

Tutorial How-to: Nearly Unlimited Chat with API Credits

People are asking how to pay for API usage to get near unlimited chat. Here's how.

  1. Go to https://platform.deepseek.com/usage
  2. Sign into your Deepseek account if not already signed in
  3. Click on "Top up"
  4. Pay $2 -- there will be a small additional transaction fee
  5. Go to https://platform.deepseek.com/api_keys or just click on "API Keys", click on "Create new API key" and copy it
  6. Go to https://deepseek-ai.github.io/chat-demo/ and paste in your API key
  7. You also have the opportunity to upload chat history now
  8. Close the window

You are now running chat in your browser with your API key!

177 Upvotes

50 comments sorted by

6

u/Fabulous-Double-5037 19d ago

I just have one small problem them... I kinda wanted to do this on mobile

2

u/EvolvingDior 19d ago

You have zero problems then! Your phone has a browser.

1

u/Synfinite 13d ago

Try out gestu.ca

5

u/Commercial_Floor840 19d ago

I see the option to export data, which seems promising! Where would all my chats be stored? In the browser? Can I access the same chats between my phone and my laptop?

3

u/EvolvingDior 19d ago

https://github.com/deepseek-ai/chat-demo describes where the data is stored.

Your API key and settings are stored in the browser's localStorage. Conversations and original attachments are stored in IndexedDB (locally).

You cannot access the same chat across different browsers as far as I am aware.

2

u/Lazy_Reach_2565 19d ago

In the browser, it's kinda private but not very reliable. If you reinstall the browser or clean the cache everything will be lost. But you can export your chats to a backup anytime

Can I access the same chats between my phone and my laptop?

No, there is no cloud sync since that's a static page. You can export your chat, send it via Telegram whatever and import on your phone

24

u/Opening_Act_2580 19d ago

One thing is important: DO NOT send your key anywhere else, especially publicly. With the key anyone can drain the funds associated with your account on AI usage before you revoke it.

15

u/throwawayaccount931A 19d ago

Exactly!

I'd feel safer doing this:

git clone https://github.com/deepseek-ai/chat-demo.git
cd chat-demo
pnpm install
pnpm dev

Super easy and the key stays on your computer.

Just need to do this from the PowerShell/Command prompt.

9

u/Opening_Act_2580 19d ago edited 19d ago

Assuming they have Git installed, which I doubt your target audience have that.

To install Git on Windows, use the following command:

winget install --id Git.Git -e --source winget

Edit: oh wait, pnpm is also a bigger issue.

2

u/throwawayaccount931A 19d ago

You're right... I went a bit too fast/far. I have Git on my computer and everything else necessary to install this.

1

u/woct0rdho 19d ago

winget install --id pnpm.pnpm

1

u/EvolvingDior 19d ago

Read the README.md. The API key and your chat history are stored in your browser. Nothing is stored in the app server.

4

u/RelationWorried4827 19d ago

I mean if there is 2 dollars on there the damage will be limited lol

4

u/WiseCactus 19d ago

Is there a way to do this on a phone app?

3

u/EvolvingDior 19d ago

Your phone has a browser.

6

u/Odd_Dandelion 19d ago

There is an awesome phone app called Kelivo, you just paste in there your API key and that's it.

When you feel like experimenting, it has plenty of options and settings. It can even spawn the whole ass Linux virtual computer for your model in your phone. :)

3

u/WiseCactus 19d ago

Thank you. I personally prefer to use a dedicated phone app as compared to a phone browser; it just makes it a bit less clumsy to handle

5

u/Higher_love23 19d ago

Few questions out of curiosity. Is the API version better in any form than the web? I heard that APIs are usually less filtered. I know Deepseek is very cheap, but does the cost snowballs in very long brainstorming sessions in the same chat?

15

u/EvolvingDior 19d ago

https://api-docs.deepseek.com/quick_start/pricing/

One million tokens is roughly 10 novels.

8

u/Amyclas_Melinoe 19d ago

If your novels are cached properly. Deepseek harness is probably good for that

7

u/EvolvingDior 19d ago

I'm assuming most of the people using free chat are not going to install the chat client locally, let alone DSH.

3

u/Amyclas_Melinoe 19d ago

Do people not like having local control of their systems

7

u/Icetato 19d ago

Most people care about convenience more than control and privacy. Personally I avoid cloud services whenever possible.

6

u/P4R4DOXZ 19d ago

they do, its just majority will choose an easier path.
Just like the fear of switching from windows to linux

4

u/That-Consequence-303 19d ago

No pensemos como alguien que dedica su vida a la computadora siquiera. Pensemos en la gente casual que está solo para consultar cosas cotidianas. No es que la gente le guste o no tener un control local, simplemente no saben y no tienen el tiempo y el humor para aprender a hacerlo. Dales una solución sencilla y lista para usar. Nada de hacer cosas raras (y desde esa perspectiva, es más "fácil" pagar por la suscripciones web de Claude o ChatGPT por decir ejemplos antes adentrarse al mundo de las API. 

33

u/SuccotashSorry3222 19d ago

Or, you can download the official harness application and use an API key:

https://www.deepseek.com/en/harness/

3

u/Aressito 19d ago

Exactly..

2

u/Not_Defyiant 19d ago

This is the way I'll be running on my desktops.

1

u/Fuzzy_8691 15d ago

Ofc - doesnt work on intel chips on Mac

1

u/Loose_Heat9619 5d ago

Fr?! It doesn’t work on Mac at all?

0

u/Queasy_Designer335 15d ago

how? I can't find where to add API key...

13

u/Run_ldrestart 19d ago

The exact same web app is also hosted on DeepSeek's official CDN: cdn.deepseek.com/chat-demo

1

u/Amyclas_Melinoe 19d ago

Is that github a legit link?

6

u/EvolvingDior 19d ago

Yes. Absolutely.

https://github.com/deepseek-ai/chat-demo -- This is Deepseek AI's own github repo, linked from their site. That above link is directly from this page.

-6

u/Fiduss 19d ago

Super sus

1

u/Amyclas_Melinoe 18d ago

I checked it is from the github repo. You can also download it and run it locally as an index.html file and it will work.

-8

u/ProgressionPeak 19d ago

the code was posted days ago by some users with a chinese university email. my money says that is the OP

i am not going to use it...........

6

u/EvolvingDior 19d ago

You can inspect the code. Heck you can have Deepseek inspect the code and tell you if it is safe.

-9

u/ProgressionPeak 19d ago

thank you for informing me code can be inspected

i dont give a shit, it looks sketchy

as does you not denying you created this

7

u/Icetato 19d ago

The repo is literally owned by DeepSeek themselves. You can check that their harness is also in their repo list.

-6

u/ProgressionPeak 19d ago

yes but it was not written by deepseek it was written by a chinese college student, with one deepseek employee as a contributor who hasn't actually written any of the code

OP is obviously that chinese college student

3

u/Icy_Computer_9107 19d ago

Potato brain

-1

u/ProgressionPeak 19d ago

let me know which part you didn't understand, i'd be happy to explain it to you

2

u/babski123 19d ago

Actually, just use chatgpt to build you an AI chat that allows you to use your own api key and provider then run it locally, your key will be safe

1

u/Glittering_Swim_7968 19d ago

isnt this only a little bit when you are using it conversationally? 

1

u/Expensive-Resist3138 1d ago

why is this complicated I just want the almost unlimited chat and files uploading and I'm willing to pay but god I don't even understand how it works

1

u/Fiduss 19d ago

guys don't give your api keys to strangers

1

u/SuspiciousName666 19d ago

And if you want to go even further, try my Pi Bot. I built it on top of Pi Durable, and it currently works on Telegram, with WhatsApp support and a Chrome extension coming soon. It also supports Telegram threads, so every topic gets its own thread.
https://github.com/forge-z/pi-bot⁠