All guides · API quickstart · Last checked: Settings from the app's official documentation, November 2026; requests use our standard OpenAI-compatible API
- 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
- 2. Make an API keyIn your account, open AI API and press Create key. Keys start with
dgk_. Keep yours secret. - 3. Follow the steps belowCopy each block, paste your key where it says
dgk_your_key_here.
1. Add Datagram as a custom provider
- In Obsidian: Settings → Copilot → BYOK → Add a provider → Add a custom provider.
- Display name: Datagram. API key: your
dgk_key. Base URL:https://api.datagram.net/v1. - Turn on Enable CORS. Obsidian runs in a browser engine and our API is called from your vault; with this on, answers arrive in one piece rather than word by word.
- Under Model ID, type
gemma4:26b-nvfp4and click Add (add others the same way), then Test and Save.
2. Try it
Open Copilot Chat, choose the Datagram model and ask about a note. The first answer can take 10 to 20 seconds while the model loads.
Which model?
gemma4:26b-nvfp4 is a good default for notes: quick and good at writing. gpt-oss:120b is stronger for long or tricky questions but slower.
If something goes wrong
401 "Missing API key" or "Invalid or revoked API key"
Check the key is pasted in full (it starts with dgk_) and hasn't been revoked in your account under AI API.
402 "credit has run out"
Add credit in your account under AI API. Credit never expires.
Test works but chat won't send
Turn on Enable CORS for the Datagram provider.
Questions
Which model should I use?
gemma4:26b-nvfp4 for everyday chat (quick, can see images); gpt-oss:120b for harder questions; qwen3-coder:30b-64k for very long inputs.
Is it private?
Yes. Requests run on our own Macs in our datacenter, and we never store prompts or answers, only counts for billing.