Skip to content

Sypnia AI documentation

Sypnia AI is the layer between your app and the AI models. One key and one API reach many models, from OpenRouter and from AWS, and you choose the right one for each task. Every call is paid with credits, shown under the use case that made it, kept inside the limits you set, and sent to Telemetry as part of the case’s trace. Your keys never reach a browser.

Make your first call

Name the task, not the model. Sypnia AI picks the model for it, charges the call to your credits and files it under the use case.

npm install @sypnia/ai
import { createAI } from '@sypnia/ai/server';

const ai = createAI({ apiKey: process.env.SYPNIA_SECRET_KEY! });

const { text } = await ai.chat({
  task: 'write',
  case: 'publish-bread-of-the-day',
  messages: [{ role: 'user', content: 'Today: rye loaf and almond croissants.' }],
});

Full quickstart

Or let your agent do it

Models, routes, usage and recent calls are in the API. Your agent reads them through MCP and drafts route changes; a person applies them.

claude mcp add --transport http sypnia-ai https://mcp.ai.sypnia.com

The MCP tools

Our provider accounts, paid with credits

Use Sypnia AI in Sypnia Cloud

  • Models fromSypnia’s accounts, zero-retention providers only; or your own key, which Sypnia does not charge for.
  • Paid withPrepaid credits, shown by project, case, key and person.
  • LogsSpans in your project’s Telemetry, inside the case’s trace.

Open source, with your own OpenRouter or AWS account

Run the open-source gateway with your own keys

  • Models fromYour OpenRouter key, AWS account or any OpenAI-compatible endpoint.
  • Paid withYour provider’s bill; the gateway counts it for you.
  • LogsSpans to any OpenTelemetry endpoint, Telemetry included.

Sypnia Cloud runs the same open-source gateway, plus Sypnia’s provider accounts, the console, usage in credits and the limits of your organization. Compare the two, line by line

The map

Every page says whether it is about the gateway, Sypnia Cloud or both.

Written for people and for coding agents. Every page is also plain Markdown: add .md to its address, or use the «Copy page for your agent» button. Agents can start from the index.

    Search pages, sections and terms