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. Choose the "Generic OpenAI" provider
- Open AnythingLLM Settings → LLM (AI Providers) and choose Generic OpenAI.
- Base URL:
https://api.datagram.net/v1(the API root, not a/chat/completionsaddress). - API key: your
dgk_key. Model:gemma4:26b-nvfp4. - Model context window:
8192. Max tokens:2048. Save.
Self-hosting with environment variables instead? The context window is GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT=8192 and the answer length GENERIC_OPEN_AI_MAX_TOKENS=2048.
2. Try it
Open a workspace and ask something. The first answer can take 10 to 20 seconds while the model loads.
Which model?
gemma4:26b-nvfp4 for everyday chat and document questions (8,192-token window). For agents or very long documents, use qwen3-coder:30b-64k with a context window of 65536.
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.
Answers cut off or stream oddly
AnythingLLM's docs describe turning off streaming for the Generic OpenAI provider if the answer doesn't stream properly.
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.