5 minute quickstart
Quick Start
Follow these steps to integrate SkyAIApp in under 5 minutes.
Prerequisites
- Node.js 18+ or Python 3.9+
- SkyAIApp account (free to sign up)
- API Key
1
Get your API Key
Sign in to SkyAIApp Dashboard and create a new API Key in Settings → API Keys
# Your API Key will look like this:
sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Store it securely in your environment
export SKYAIAPP_API_KEY="sk_live_xxxx..."2
Install the SDK
Install the SDK for your preferred language
npm
yarn
pnpm
pip
npm install @skyaiapp/sdk3
Make your first request
Use intelligent routing to auto-select the optimal model
import { SkyAI } from "@skyaiapp/sdk";
const sky = new SkyAI({
apiKey: process.env.SKYAIAPP_API_KEY,
});
async function main() {
const response = await sky.route({
goal: "cost", // Optimize for cost
strategy: "balanced", // Use balanced strategy
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "What is the capital of France?" }
],
});
console.log("Model:", response.model);
console.log("Response:", response.choices[0].message.content);
console.log("Cost:", response.routing.cost_usd);
}
main();4
See the result
Run the code and see intelligent routing in action
$ npx ts-node app.ts
Model: gpt-5.2-instant
Response: The capital of France is Paris.
Cost: $0.00012🎮 Try it Now
Test intelligent routing directly in your browser (demo simulation)
Interactive API Playground
Adjust parameters and see routing in action
Response
Click 'Run' to see the result
Equivalent Code
import { SkyAI } from "@skyaiapp/sdk";
const sky = new SkyAI({
apiKey: process.env.SKYAIAPP_API_KEY
});
const response = await sky.route({
goal: "cost",
strategy: "balanced",
messages: [
{ role: "user", content: "Explain quantum computing in simple terms" }
]
});Next Steps
Having trouble?
We're here to help
Was this page helpful?
Let us know how we can improve