Docs menu
Get an OpenAI API key
Create an OpenAI API key on the OpenAI platform, add credit, and paste it into Settings → AI provider. Which models to pick and what it costs.
Nearlysent uses your own OpenAI API key. You pay OpenAI directly for what you use; Nearlysent adds no fee.
1. Create an account and add credit
- Sign up or log in on the OpenAI platform (platform.openai.com).
- Add a payment method and prepaid credit in the billing settings. With the recommended models a reply costs around one cent (see Pricing).
- Optional: set a usage limit for your project there too.
The API is billed separately from a ChatGPT subscription. ChatGPT Plus does not include API credit.
2. Create the key
- Open OpenAI: API keys. This is the same link as How do I get an API key from OpenAI? in the app.
- Click Create new secret key, give it a name (for example the name of this app) and create it.
- Copy the key. It starts with
sk-and is shown only once.
3. Add it to your workspace
- In your workspace, go to Settings → General → AI provider. You need the Admin or Owner role.
- Provider: choose OpenAI.
- API key: paste the key and click Validate & save.
- You see “Key validated and saved.” and the status Valid.
The Models card is filled in with the recommended models:
| Setting | Recommended | Why |
|---|---|---|
| Triage model | GPT-6 Luna | Sorts incoming mail. Fast and very cheap. |
| Draft model | GPT-6.1 Sol | Writes the replies. Good quality for the price. |
GPT-6 Astra is also listed. It is the strongest and also the most expensive per reply. If your key cannot use a model, the app says “This model is not available for your key.”
Errors when saving
| Message | What to do |
|---|---|
| The provider rejected this API key. Check it and try again. | The key was copied incompletely, revoked, or belongs to a project without API access. Create a new one. |
| Your account at the provider has no credit left. Top it up and try again. | Add credit in OpenAI’s billing settings. |
| The provider did not answer in time. Try again. | A temporary problem at the provider. Try again in a minute. |
Keep costs under control
Set a Monthly token cap under Settings → General (the card below the AI provider), check the Usage card and the Dashboard, and use OpenAI’s own usage limits as a second safety net.
Your key is stored encrypted and never shown again; see Security & privacy.
Something unclear or missing in the docs?Tell us.