API documentation.
OpenAI-compatible API. Swap the endpoint, keep your code. Requests run in the EU and are billed via your grunden.ai wallet or subscription.
Changes and notice
grunden.ai is in production. Prices, models and features may still change, and breaking changes are published with notice. Planning something business-critical — get in touch at hej@grunden.ai so we can check first.
Getting started
- Create an account if you don't already have one.
- Go to
Settings → API keysin your team and create a key. - Top up your wallet under
Walletto pay per token, or activate a chat subscription underSubscriptionif you primarily use the web chat.
Base URL and authentication
All requests go to https://api.grunden.ai. Send your key in the Authorization header:
Keys begin with sk-grunden- and are scoped per team. The rate limit per key (RPM + TPM) is set at creation and can be adjusted in the admin UI.
Use it in your editor (VS Code, Cursor, Codex CLI)
Because the API is OpenAI-compatible, most AI coding tools can point at grunden.ai directly — swap out Claude/Codex as the backend without switching tools. Across the board: set the base URL to https://api.grunden.ai/v1, your sk-grunden-… key as the API key and glm-5.3-flash as the model. Calls run on the normal tier and are billed per token from your wallet (top up under Billing).
Claude Code & Anthropic SDK tools
We also expose an Anthropic-compatible POST /v1/messages endpoint, so Claude Code and other Anthropic-SDK-based tools can point here. You get our model GLM 5.3 Flash in Anthropic's format — we do not run Claude or other Anthropic models (EU-hosted, no US providers). Set in your shell:
…and run claude as usual. Supported: text conversations, tool use, streaming. Not supported (yet): image blocks (replaced with a text placeholder), GLM's thinking mode isn't surfaced, prompt caching is ignored.