DocsAPI
API overview
Use the condense API to manage context for your own agents and apps. condense sits between your app and your LLM provider. It compresses repeated context before forwarding requests upstream. Organizations can choose the share of conversations to optimize without changing your integration or response format.
Developer quickstart
Point your SDK at api.condense.chat/{provider}, add your condense key and keep your provider key. For the full walkthrough, see the Quickstart.
bash# route Claude Code through condense
dense claude
# or point any SDK at a provider route
export ANTHROPIC_BASE_URL="…/anthropic"
export OPENAI_BASE_URL="…/openai/v1"
# base host: api.condense.chatBase URL and routes
The base URL is https://api.condense.chat. Every endpoint requires a condense API key. The path prefix selects the dialect. By default, condense compresses the request and forwards it to the provider. An X-Condense-Upstream-Url header points the same proxy at any endpoint that speaks the same request shape. This host runs in the EU; the US endpoint covers https://api.us.condense.chat.
| Route | What it does |
|---|---|
| Anthropic dialect | POST /anthropic/v1/messages. Drop-in for the Anthropic SDK / Claude Code. |
| OpenAI dialect | POST /openai/v1/chat/completions. Drop-in for the OpenAI SDK. |
| OpenAI Responses | POST /openai/v1/responses. Drop-in for the OpenAI Responses API / Codex. |
| Vertex AI | POST /vertex/…. Claude and Gemini on your own Google account. |
| Amazon Bedrock | POST /bedrock/{region}/…. Claude on InvokeModel, plus the Messages, Chat Completions and Responses paths, on your own AWS account. |
| Compress | POST /v1/compress. Compresses a transcript directly, with no upstream call. |
| Pass-through | Any other path under /{provider}/… (models list, embeddings, etc.) is forwarded verbatim. |
| Upstream | Header X-Condense-Upstream-Url. Forwards to an arbitrary OpenAI- or Anthropic-shaped endpoint instead of the provider default. |
Get API access
API keys belong to organization accounts. Our team sets up your organization by hand after an email or a short call. Its admins can create keys right away. Personal accounts use condense through the dense CLI and cannot create API keys.
Talk to our team
Book a call with the team. We set up your organization and turn on API access.
Create a key
Open your dashboard, switch to API at the top of the sidebar, open Keys and choose Create key. Pick its permissions.
Copy the secret
Copy the
ck_api_…secret. It is shown once. Afterwards the dashboard shows only its first few characters.
sk-ant-… for Anthropic, sk-… for OpenAI, a Google credential for Vertex AI, a Bedrock API key for Amazon Bedrock). It travels alongside the condense key on every request.API keys and permissions
There are two kinds of key.
- Company keys live in API › Keys. They belong to the company and keep working if the person who made them leaves. Use one key per agent or service, so each has its own usage and limit.
- Personal keys live in My API keys. They are tied to your account, for your own scripts and tests, and stop working if you leave the organization. Admins can always make them. Other members need an admin to turn on Personal API keys for them.
You don't need an API key for the dense CLI. It makes its own key when you sign in.
Permissions
Each key has one or more permissions. A key needs at least one.
| Permission | What the key can do |
|---|---|
| Proxy | Send requests to your own AI provider through condense, with your provider key. On for new keys. |
| Models from condense | Call the models condense provides, without your own provider key. Billed to credits. Shown only when your organization resells models. Off for new keys. |
| Read | Read usage, request logs and keys through the management API. |
| Manage | Also change keys, limits and settings through the management API, as the key's creator could. Includes Read. |
- A key with Proxy off is refused with a
403on every route that forwards to your own provider./v1/compressand rewrite mode still work, because they don't call a provider. - You can also set an expiry and a Requests per minute limit. Over that limit the key gets a
429withRetry-After.
Edit, roll and revoke
- Roll key creates a new secret with the same permissions, limit and lifetime, and moves the key's spend limits to it. The old secret keeps working for 24 hours, so you can deploy the new one first.
- Revoke key stops the key at once.
- Edit access and limit changes its permissions and requests-per-minute limit. A key's lifetime is set when you create it. Rolling starts a fresh one of the same length.
- Members with API Manage access can create company keys, but can edit, roll or revoke only the keys they created. Admins can change any key.
Choose how much API traffic to optimize
Organization admins can split new API conversations between optimized and uncompressed paths. Both use your existing Condense endpoint and requested model. Keep an uncompressed control to compare cost, quality, and latency before expanding optimization.
How the split applies
The percentage applies to new conversations, not tokens. Each conversation keeps its assigned path. Traffic splitting is available to organizations, not personal accounts.
Follow the A/B testing and traffic splitting guide for dashboard setup, conversation assignment, evaluation, and rollout.
Next steps
- Quickstart: send your first request through condense.
- API reference: look up routes, headers and error shapes.
- Models: choose a model for your requests.
- Dashboard map: find keys, logs, usage and limits.