DigitSpace

Keep your code. Change one URL.

DigitSpace accepts the OpenAI Chat Completions API and Anthropic's Messages API, so existing code works by changing the base URL and the API key. Any model can be called in either format; DigitSpace translates between them.

- base_url="https://api.openai.com/v1"
+ base_url="https://api.digitspace.ai/v1"
- api_key=OPENAI_API_KEY
+ api_key=DIGITSPACE_API_KEY

Same SDK, same calls. Every model.

The whole change

Before

  • base_url: https://api.openai.com/v1
  • api_key: your OpenAI key
  • One provider

After

  • base_url: https://api.digitspace.ai/v1
  • api_key: your DigitSpace key
  • 47 models from 6 providers
Telephone switchboard operators with headsets at a long switchboard, plugging cords into the panel.

In 1953 an operator put each call through by hand. DigitSpace routes every request.

Switchboard operators, NIH Clinical Center, 1953. NIH History Office, public domain, via Wikimedia Commons.

OpenAI SDK

Python, Node.js and any other OpenAI SDK work the same way.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.digitspace.ai/v1",
  apiKey: process.env.DIGITSPACE_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "claude-sonnet-5-5", // any model, in OpenAI's format
  messages: [{ role: "user", content: "Hello" }],
});

Anthropic SDK and Claude Code

Point Anthropic's SDK, or Claude Code, at the gateway without /v1.

export ANTHROPIC_BASE_URL=https://api.digitspace.ai
export ANTHROPIC_AUTH_TOKEN=$DIGITSPACE_API_KEY
claude

What's supported

FeatureChat CompletionsMessages
StreamingYesYes
Tools and tool choiceYesYes
Images in messagesYesYes
JSON and JSON schema outputYesThrough tools
Prompt cachingPassed through to providers that support itYes
Embeddings, images, audioNot yetNot yet

Questions

Do I need a different SDK?

No. Use the OpenAI or Anthropic SDK you already have.

Can I call a GPT model through the Anthropic API?

Yes. DigitSpace translates the request and the answer, streaming included.

Which tools work with it?

Anything that lets you set an OpenAI-compatible base URL: LangChain, the Vercel AI SDK, LlamaIndex, Cursor, Cline, Aider, OpenCode and more.

Read next

Live in a minute.

Create a key, change the base URL, send a request. No card needed with your own provider keys.

Start free