How to create OpenAI and DeepSeek API keys to add AI to SafePhone
SafePhone can connect to AI to get the most out of its fake-content detection. To turn this on, you need to create an OpenAI API key or a DeepSeek API key — an authentication code that lets the app talk to the AI service. This guide walks you step by step through how to create an OpenAI API key and a DeepSeek key, add credit, keep your key safe and enter it in SafePhone.
What is an API key and why does SafePhone need one?
Modern AI models such as those from OpenAI and DeepSeek let developers build artificial intelligence into apps, websites and automated systems through an API. To use these services, you need to create an API key — an authentication code that lets your app communicate with the AI service.
Once you enter an API key in SafePhone, the app can use AI to improve its detection of fake content, on top of its built-in blacklist matching (see how SafePhone works). The AI feature is optional: features such as how to block unknown and scam numbers automatically and how to check if a website is a scam still work without AI turned on.
Overview: OpenAI vs. DeepSeek
SafePhone supports two AI providers. You only need a key from one of them.
| OpenAI | DeepSeek | |
|---|---|---|
| Developer platform | platform.openai.com | platform.deepseek.com |
| Create-key button | + Create new secret key | Create new API key |
| Add credit | Billing page | Top-up page |
| Pricing | openai.com/api/pricing | api-docs.deepseek.com/quick_start/pricing |
| Usage tracking | platform.openai.com/usage | platform.deepseek.com/usage |
The OpenAI and DeepSeek interfaces may change over time, so menu and button names in this guide may differ from what you see.
How to create an OpenAI API key
OpenAI's official site: https://platform.openai.com/
Step 1: Sign up or sign in to OpenAI
Go to OpenAI's developer platform at https://platform.openai.com/. Sign in, or create a new account if you don't have an OpenAI account yet.
Step 2: Open the API keys section
- Click API keys in the left-hand menu.
- Click + Create new secret key; a dialog box will appear.
Step 3: Create a new API key
- In the dialog, give the key a name in the Name field (any name works, e.g.
SafePhone AI). - Click Create secret key; another dialog will appear.
- This dialog shows the API key you need to save. Copy it and store it somewhere safe so you can paste it into the SafePhone app.
Step 4: Set up billing
To use an OpenAI API key, you need a valid payment method or a credit balance on your account. To add credit:
- Go to the Billing page: https://platform.openai.com/settings/organization/billing/overview
- Check OpenAI's pricing at https://openai.com/api/pricing/
- Click Add payment details, enter your payment information and pay as usual.
How to create a DeepSeek API key
DeepSeek's official site: https://platform.deepseek.com/
Step 1: Sign up or sign in to DeepSeek
Go to DeepSeek's developer platform at https://platform.deepseek.com/. Sign in, or create a new account if you don't have a DeepSeek account yet.
Step 2: Open the API keys section
- Click API keys in the left-hand menu.
- Click Create new API key; a dialog box will appear.
Step 3: Create a new API key
- In the dialog, give the key a name in the Name field (any name works, e.g.
SafePhone AI). - Click Create API key; another dialog will appear.
- This dialog shows the API key you need to save. Copy it and store it somewhere safe so you can paste it into the SafePhone app.
Step 4: Set up billing
To use a DeepSeek API key, you need a valid payment method or a credit balance on your account. To add credit:
- Go to DeepSeek's Top-up page: https://platform.deepseek.com/top_up
- Check DeepSeek's pricing at https://api-docs.deepseek.com/quick_start/pricing/
- Enter your payment information and pay as usual.
Keeping your API key secure
An API key is like the password to your AI account. If it leaks, someone else can use your account and run up charges you didn't expect. Here are some ways to store a newly created key:
- Create a Word file on your computer, paste the API key into it, and keep the file somewhere safe or protect it with a password.
- Create a file in your Google Drive, save the API key there and set it so only you can view it.
- Check your API key usage regularly at https://platform.openai.com/usage (OpenAI) or https://platform.deepseek.com/usage (DeepSeek). If you notice anything unusual, delete that key and create a new one.
Entering your API key in SafePhone
Once you've created an API key, enter it in the API Key field in SafePhone:
- Open the SafePhone app. Don't have it yet? Get it on Google Play.
- Tap the AI button right next to the “SafePhone” title; a dialog will appear.
- Tap Activate AI.
- Choose your AI provider: OpenAI or DeepSeek (whichever you created the key with).
- Paste the key into the API Key field.
- Tap Save.
When you're done, the AI button turns green.
Checklist if the AI button isn't working
If the AI button hasn't turned green, or the AI feature isn't working as expected, check the following in order:
| What to check | What to do |
|---|---|
| The right provider is selected | If you created the key on OpenAI, choose OpenAI; if on DeepSeek, choose DeepSeek. |
| The key was copied in full | Paste the key again, making sure no characters are missing and there are no extra spaces at the start or end. |
| Your account has a payment method or credit | Check the Billing page (OpenAI) or Top-up page (DeepSeek) from step 4. |
| The key has been deleted | If you deleted the key on the provider's site, create a new one and enter it in SafePhone again. |
| You tapped Save | Reopen the AI dialog, check that AI is activated and tap Save. |
If you'd like to receive alerts from a family member's phone, you can also set up a Slack channel for alerts.
Conclusion
In just a few steps — signing in to the developer platform, creating a key, adding credit and pasting the key into SafePhone — you can turn on AI to improve fake-content detection. Treat your API key like a password and check your usage regularly to avoid unexpected charges.
FAQ
Do I need an API key to use SafePhone?
No. You only need an API key if you want to turn on the AI feature. Call blocking, scam website blocking and ad blocking all work without AI.
Should I choose OpenAI or DeepSeek?
SafePhone supports both, and you only need a key from one provider. Compare OpenAI's and DeepSeek's pricing to choose the option that suits your needs.
Does using an OpenAI or DeepSeek API key cost money?
Yes. To use an API key you need a valid payment method or a credit balance on your account; charges follow the provider's price list.
What should I do if my API key leaks?
Delete that key right away on the OpenAI or DeepSeek platform, create a new key and enter it in SafePhone again. Then check the Usage page for any unusual activity.
How do I know SafePhone is connected to AI?
After you paste your API key and tap Save, the AI button next to the SafePhone title turns green.