Unified AI API
The AI gateway
for agents
Access 700+ leading AI models through one OpenAI-compatible router.
Drop-in OpenAI SDK compatible, crypto-native, pay-as-you-go.
import OpenAI from "openai";const client = new OpenAI({apiKey: "YOUR_QYN_API_KEY",baseURL: "https://api.qyn.io/v1"});const response = await client.chat.completions.create({model: "anthropic/claude-sonnet-4-5",messages: [{ role: "user", content: "Hello!" }],});
Paste this into a coding agent like Claude Code, Cursor or Codex and it will set up and build with qynio for you.
Models
Every frontier model, one API
AI inference for 700+ models across text, image, voice, and video.
Reliability
Higher model availability
Automatic failover across multiple providers, with measured uptime for every route.
Apps
Use any agent on any model
Pay in crypto with 0% fees, and switch the model behind any app anytime.
Agent control plane
Control the agents you run
Start with the gateway. Add control and privacy as you scale.
Get started
Up and running in minutes
One key, every model, paid in qyn.
OpenAI SDK compatible. Or have your AI agent set it up for you.
# Add the qynio gateway
Set up qynio so this project can call 700+ AI models through a single API.
## Step 1: Get an API key
Have the user sign up at https://api.qyn.io/login and create an API key. Set it as `QYN_API_KEY` in the environment.
## Step 2: Use the OpenAI SDK with qynio's compat endpoint
```ts
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.QYN_API_KEY,
baseURL: "https://api.qyn.io/v1",
});
const completion = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4-5",
messages: [{ role: "user", content: "Hello" }],
});
```
## When to use what
- **Drop-in OpenAI SDK swap (above)** — fastest path, works with any existing OpenAI SDK code.
- **Agent SDK (Python or TypeScript)** — building autonomous agents with tools, MCP, span tracing, multi-agent composition. /docsagents
- **Structured outputs** — typed input/output with schemas. /docsbuild/task/calls
- **Indexes** — semantic storage for RAG. /docscapabilities/indexes
- **Agent CLI** — launch existing agents (Claude Code, Codex, OpenCode, ...) on qynio's gateway. https://qyn.io/agent-cli
## Critical rules
- Read `QYN_API_KEY` from env, never hardcode
- Pass models as `provider/model` strings (e.g. `anthropic/claude-opus-4-7`, `openai/gpt-5`)
- Use baseURL `https://api.qyn.io/v1`
- No markup on tokens. 0% fees on every crypto deposit
- 700+ models available — see /docscapabilities/models
Full docs (agent-readable): https://qyn.io/llms-full.txtAdd qynio as a skill so your agent picks it up automatically. Works with Claude Code, Cursor, Cline, Copilot, Codex, and Windsurf.
$npx skills add qynioHQ/qynio-skills