All guides · API quickstart · Last checked: Shortcuts version 1.0, signed by Apple and tested on iPhone and Mac, November 2026 (first release; tell us how it works for you)
- 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.
The Shortcuts
| Shortcut | What it does | |
|---|---|---|
| Ask Datagram AI | Ask anything. Say "Ask Datagram AI" to Siri, or share text with it. | Add |
| Summarize with Datagram AI | A few bullet points from selected or shared text, such as a web page or an email. | Add |
| Improve Writing with Datagram AI | Fixes grammar and clarity. Press OK to copy it, then paste it over the original. | Add |
| Translate with Datagram AI | Translates into the language you pick from a list each time. | Add |
| Reply with Datagram AI | Drafts a reply to a message you select or share, in its language. | Add |
| Describe Picture with Datagram AI | Describes a photo or screenshot and reads out the text in it (signs, receipts, documents). | Add |
Every answer is shown in a window: OK copies it, Cancel just closes. Needs iOS/iPadOS 17 or macOS 14 (Sonoma) or later.
1. Add them
- Make an API key for Shortcuts in your account under AI API (new accounts get $5 of free credit).
- On your iPhone, iPad or Mac, open this page in Safari and press Add next to a Shortcut, then Add Shortcut.
- Paste your key when asked. It's kept inside the Shortcut on that device.
2. Use them
- Siri: say the Shortcut's name, for example "Ask Datagram AI".
- iPhone and iPad: select text (or open a page, email or photo), tap Share and pick the Shortcut. Tip: Edit Actions at the bottom of the Share menu puts them near the top.
- Mac: select text in any app, right-click → Services → the Shortcut. For pictures, right-click the file in Finder → Quick Actions.
- Run with nothing selected, the text Shortcuts ask you to type, and the picture Shortcut uses the picture you copied.
Privacy
Only the text or picture you give a Shortcut is sent, only to our own Macs, and we never store it or use it for training. We keep only token counts for billing.
If something goes wrong
"Your Datagram API key was not accepted" / "Invalid or revoked API key"
Open the Shortcuts app, touch and hold the Shortcut → Edit, and paste your key into the first box (the Text action).
"Allow … to connect to api.datagram.net?"
Apple's Shortcuts asks this once for each Shortcut, the first time it sends anything to a website; it can't be switched off. Choose Always Allow and it won't ask again.
"Untrusted Shortcut" or it won't add
Download it again from this page in Safari. Shortcuts from this page are signed, so they don't need any setting changed.
"Your Datagram AI credit has run out"
Add credit in your account under AI API. Credit never expires.
For developers
The Shortcuts use a plain-text endpoint you can call yourself: POST https://api.datagram.net/v1/shortcuts/<task> with your key as Authorization: Bearer … and the text (or a JPEG/PNG picture) as the whole body. Tasks: ask, summarize, improve, translate (language in an X-Datagram-Lang header), reply, describe. The answer comes back as plain text.
Questions
Does it work with Siri?
Yes. Say the name of a Shortcut, for example "Ask Datagram AI", then say your question. Siri reads the answer aloud.
Where is my API key kept?
Inside the Shortcut on your device, typed in once when you add it. If you share the Shortcut with someone, they are asked for their own key; yours is not shared.
Is what I send stored?
No. The text or picture goes only to our own Macs to produce the answer, and is never written to a log or database or used for training. We keep only token counts for billing.
What does it cost?
The Shortcuts are free. Each use is paid from your Datagram AI credit by the tokens it uses: summarizing a page costs a small fraction of a cent.