English | Русский
A skill for AI agents (Cursor, Claude Code, Windsurf, etc.) that enables building applications, services, and integrations using the VEGA Chat API — an OpenRouter proxy at api.vega.chat.
VEGA Chat API is a full OpenRouter proxy. The entire OpenRouter feature set is supported — the only difference is the base URL:
https://api.vega.chat/api/v1
Any code written for OpenRouter works with VEGA by simply replacing https://openrouter.ai/api/v1 with https://api.vega.chat/api/v1.
- Chat Completions — streaming and non-streaming, tool calling, structured outputs
- Models — list models, filtering, get by slug
- Embeddings — text and image vector embeddings
- Responses API — OpenAI Responses API
- Anthropic Messages — Anthropic Messages API
- Audio — text-to-speech (TTS) and speech-to-text (STT)
- Images — image generation and analysis
- Video Generation — text-to-video and image-to-video
- Rerank — document reranking by relevance
- Generation Metadata — generation stats, token counts, costs
- Error Handling — error codes, streaming errors, retry logic
npx skills add lingeniare/api-vega-chat -g -yCopy the api-vega-chat/ folder into your AI agent's skills directory:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Windsurf:
~/.windsurf/skills/
Once installed, the skill automatically activates when you ask your AI agent to build an application using VEGA API, api.vega.chat, or any VEGA endpoint.
Build a Python chatbot that streams responses from the openai/gpt-4o model using VEGA Chat API
from openai import OpenAI
client = OpenAI(
base_url="https://api.vega.chat/api/v1",
api_key="YOUR_VEGA_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.vega.chat/api/v1',
apiKey: 'YOUR_VEGA_API_KEY',
});
const completion = await client.chat.completions.create({
model: 'openai/gpt-4o',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(completion.choices[0].message);- Go to https://api.vega.chat/keys
- Create a key, set a name and optionally a credit limit
- Use the key in the
Authorization: Bearer YOUR_VEGA_API_KEYheader
api-vega-chat/
├── SKILL.md # Main skill file
├── references/ # Detailed endpoint documentation
│ ├── chat-completions.md
│ ├── models.md
│ ├── embeddings.md
│ ├── responses-api.md
│ ├── anthropic-messages.md
│ ├── audio.md
│ ├── images.md
│ ├── video-generation.md
│ ├── rerank.md
│ ├── generation-metadata.md
│ └── error-handling.md
└── evals/
└── evals.json # Test prompts
- VEGA API: https://api.vega.chat/docs
- OpenAPI spec: https://api.vega.chat/openapi.json
- OpenRouter docs: https://openrouter.ai/docs
MIT