Developers quickstart

Ship your first routed call in minutes

SDKs, APIs, and examples to ship your first routed AI app in minutes — then scale with guardrails.

< 5 min
Time to first request
4
SDK surfaces
50+
Routable models
6
Providers covered

5-minute setup

  1. 1Create a project and copy your API key.
  2. 2Install the SDK.
  3. 3Send requests to the unified `/route` endpoint.
  4. 4Watch traces and savings in the dashboard.
npm install @skyaiapp/sdk

import { SkyAI } from "@skyaiapp/sdk";

const sky = new SkyAI({ apiKey: process.env.SKYAIAPP_API_KEY });

const res = await sky.route({
  goal: "cost",
  strategy: "balanced",
  messages: [{ role: "user", content: "Summarize this document..." }],
});

console.log(res.output);

Routing policies

  • Cost-aware vs quality-first strategies
  • Fallback chains and regional rules
  • Per-tenant budgets and rate limits
  • Prompt versioning + eval A/B

More examples

Agent Runtime

const agent = sky.createAgent({
  tools: ["web_search", "calculator", "code_exec"],
  maxSteps: 10,
  sandbox: true,
});

const result = await agent.run({
  task: "Research latest AI trends and summarize",
  onStep: (step) => console.log(step.action),
});

Streaming

const stream = await sky.route({
  goal: "quality",
  strategy: "quality-first",
  messages: [{ role: "user", content: "Write a story..." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.delta);
}

Need help?

Email the engineering team directly. Discord community opens at public beta.