Get API key

Introduction

View as Markdown

Private AI for financial services: open-weight models behind APIs that work with OpenAI and Anthropic clients, and a full chat app.

PrivateMind runs open-weight models for your organisation, on GPUs pooled across customers or dedicated to you. Your data never leaves your environment and is never used to train a model. We built it for financial services, where compliance, data sovereignty and auditability come first.

What you can do

Get started in 3 steps

  1. Create an API key on the API Keys page in the sidebar.
  2. Pick a model. The fast alias is a good default.
  3. Send your first request:
curl -s "https://api.privatemind.com/v1/chat/completions" \
  -H "Authorization: Bearer $PMIND_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fast",
    "messages": [{"role": "user", "content": "Hello, world."}]
  }'
from openai import OpenAI
client = OpenAI(base_url="https://api.privatemind.com/v1", api_key=PMIND_KEY)
resp = client.chat.completions.create(
    model="fast",
    messages=[{"role": "user", "content": "Hello, world."}],
)
print(resp.choices[0].message.content)
import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.privatemind.com/v1', apiKey: process.env.PMIND_KEY });
const resp = await client.chat.completions.create({
  model: 'fast',
  messages: [{ role: 'user', content: 'Hello, world.' }],
});
console.log(resp.choices[0].message.content);

Pick your path

If you've used the OpenAI API, you already know this one: change the base URL and keep your SDKs and tools. The same key and models also answer the Anthropic Messages API, so the Anthropic SDKs and Claude Code work too. So do clients built on the OpenAI Responses API, such as Codex CLI and the OpenAI Agents SDK.

If you'd rather work in a browser, the PrivateMind app has chat, file uploads, code execution and scheduled automations.

What's in these docs

The sidebar lists every page. Most people start with one of these:

  • Quickstart: your first API call in five minutes
  • Models: the models you can call, live from your environment
  • Authentication: bearer token format and key management
  • Chat: using the web app
  • Rate limits & budgets: how limits work and what happens when you hit them
  • OpenAI SDK: Python, TypeScript, Go, LangChain and other OpenAI clients
  • Anthropic SDK: the Messages API from the Anthropic Python and TypeScript clients
  • Python SDK: training, image generation and batch jobs from Python (pip install privatemind)