Public API

Build with coordinat.io

Add AI governance to any application using our OpenAI-compatible API. Same calls, same structure — with DLP, budget limits, and full auditability.

View API docs Quick start
OpenAI-compatible
Change only the baseURL and your API key. The rest of your code stays the same.
Automatic governance
DLP, budget limits, and human approvals on every request.
Full traceability
Every call is audited by project, assistant, and user.
IA Orchestrator
Automatically selects the most efficient model for each query.

Quick start

1. Install the SDK

npm install coordinat-sdk

2. Create an API key

In the Admin Panel, go to Settings → API Keys and create a new key. It will have the format sk-coord-...

3. Make your first call

import { CoordinatClient } from 'coordinat-sdk';

const client = new CoordinatClient({
  apiKey: 'sk-coord-your-api-key',
  projectId: 'your-project-id',  // optional
});

const response = await client.chat.completions.create({
  messages: [{ role: 'user', content: 'What is photosynthesis?' }],
});

console.log(response.choices[0].message.content);
// Governance metadata
console.log(response.x_coordinat.costUsd);   // 0.000012
console.log(response.x_coordinat.provider);  // "openai"

Already using the OpenAI SDK?

Change just two lines of code to route your calls through coordinat.io:

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-coord-your-api-key',        // ← change this
  baseURL: 'https://api.coordinat.io/v1', // ← add this
});

const response = await client.chat.completions.create({
  model: 'gpt-4o-mini',
  messages: [{ role: 'user', content: 'Hello' }],
});

Streaming

const stream = await client.chat.completions.create({
  messages: [{ role: 'user', content: 'Write me a short poem' }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || '');
}

Error handling

HTTPCodeDescription
401 Missing or invalid API key
403 policy_blocked Blocked by DLP, model, or budget policy
429 Rate limit reached
502 AI provider error (OpenAI, Anthropic…)

Interactive documentation

Try the endpoints directly in your browser with Swagger UI.

Open Swagger UI