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 to Zed's settings
Open Zed's settings.json and add:
"language_models": {
"openai_compatible": {
"Datagram": {
"api_url": "https://api.datagram.net/v1",
"available_models": [
{ "name": "qwen3-coder:30b-64k", "display_name": "Qwen3-Coder 30B (64K)", "max_tokens": 65536, "capabilities": { "tools": true, "images": false } },
{ "name": "gemma4:26b-nvfp4", "display_name": "Gemma 4 26B", "max_tokens": 8192, "capabilities": { "tools": true, "images": true } }
]
}
}
}
2. Add your key
Run the command agent: open settings, find Datagram under LLM Providers and paste your dgk_ key. Zed keeps it in your system keychain, not in settings.json. (Or set the environment variable DATAGRAM_API_KEY before starting Zed.)
3. Try it
Open the Agent panel, choose Qwen3-Coder 30B (64K) from the model list and ask it something about your project.
Which model?
For the agent, qwen3-coder:30b-64k (65,536-token window). For quick questions and inline help, gemma4:26b-nvfp4 is fast and can see images.
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.
Don't put the key in settings.json
Zed's docs say not to: use the settings UI (keychain) or the environment variable.
Questions
Which model should I use?
qwen3-coder:30b-64k. Coding agents send long instructions and call tools, so they need its 65,536-token window. Our other models have 8,192 tokens.
Is it private?
Yes. Requests run on our own Macs in our datacenter, and we never store prompts or answers, only counts for billing.