Embedding Space

vega Proxy docs

The vega Proxy sits between your app and your LLM. It learns the decisions you ask your LLM to make, answers the ones it is sure of in milliseconds, and sends the rest to your LLM as before. You change the base URL and add a key. Nothing else.

How it works

  • Your LLM teaches. At first every decision goes to your LLM. vega reads the same request and checks its own answer against your LLM's.
  • vega earns trust, per question. Once its answers above a confidence level agree with your LLM at least 95% of the time, over at least 30 checks, vega answers that question itself.
  • Checks never stop. 5% of vega's answers still go to your LLM. If agreement drops, vega sends that question back to your LLM until it recovers.
  • Everything else passes through. Chat, tool calls, streaming and anything that is not a decision go straight to your LLM, untouched.

Set up in two lines

Create a key on the Keys page, then point your SDK at the proxy:

from openai import OpenAI

client = OpenAI(
    base_url="https://2hbeebp6je0i7o-8888.proxy.runpod.net/proxy/v1",                        # 1. point at vega
    default_headers={"x-vega-key": "YOUR_VEGA_KEY",       # 2. your vega key
                     "x-vega-decision": "support-route"},
)

# Your code stays the same. Your OpenAI key (OPENAI_API_KEY) passes through.
r = client.chat.completions.create(
    model="gpt-5-mini",
    messages=[{"role": "user", "content": "I was charged twice for my plan"}],
    response_format={"type": "json_schema", "json_schema": {"name": "route", "schema": {
        "type": "object",
        "required": ["team", "urgent"],
        "additionalProperties": False,
        "properties": {
            "team": {"type": "string", "enum": ["billing", "technical", "sales"]},
            "urgent": {"type": "boolean"},
        },
    }}},
)
print(r.choices[0].message.content)

Every response carries x-vega-source: vega (vega answered), llm (your LLM answered) or passthrough.

What counts as a decision

A request that asks for structured output (response_format with a JSON schema on OpenAI, output_config.format on Anthropic) where every required field is an enum, a boolean or a small integer range. Routing a ticket, tagging a lead, flagging a risk, picking a next step: these are decisions. Writing a reply is not, and passes through.

Text, images (as base64 or data URLs), audio and conversations of any length are read. Media sent as an http URL passes through; the proxy never fetches URLs.

Headers

HeaderWhat it does
x-vega-keyYour vega key. Required.
x-vega-decisionA name for this decision, so its numbers show up under it (letters, digits, - _ .).
x-vega-modelive (default), shadow, vega or off, for one request.
x-vega-trustPer-field bars, e.g. team=0.9,urgent=0.97. Higher is stricter.
x-vega-contextHow much of a long conversation vega reads: full, recent or last.

Responses add x-vega-id (for corrections), x-vega-confidence, x-vega-latency-ms and, when your LLM answered, x-vega-escalated with the reason.

Modes

  • live: vega answers what it has earned, your LLM the rest. The default.
  • shadow: your LLM answers everything; vega only learns and reports what it would have answered. Safe for a first week.
  • vega: vega answers everything, for testing.
  • off: a plain pass-through.
curl https://2hbeebp6je0i7o-8888.proxy.runpod.net/proxy/v1/vega/mode -H "x-vega-key: YOUR_VEGA_KEY" \
  -d '{"decision": "support-route", "mode": "shadow"}'

Corrections

When a person on your team fixes an answer, send the correction. vega replaces the wrong answer with yours (it never keeps both) and learns from it at once, even when the correction disagrees with what it learned before.

# Someone on your team fixed an answer? Tell vega. It replaces the wrong one and learns.
# The id is the x-vega-id header of the response you are correcting.
curl https://2hbeebp6je0i7o-8888.proxy.runpod.net/proxy/v1/vega/feedback \
  -H "x-vega-key: YOUR_VEGA_KEY" -H "content-type: application/json" \
  -d '{"id": "vg_...", "answers": {"team": "technical"}}'

API

EndpointWhat it returns
POST /v1/chat/completions, POST /v1/messagesOpenAI and Anthropic, as usual.
POST /v1/vega/feedbackSend a correction.
GET /v1/vega/usage?days=30Your totals, daily series, and breakdowns by decision and model.
GET /v1/vega/logsYour latest requests.
GET /v1/vega/statsWhat vega has learned, per decision and question.
POST /v1/vega/mode, POST /v1/vega/trustChange a decision's mode or bars.

Privacy and keys

  • Your LLM key (OpenAI or Anthropic) passes through to your provider and is never stored.
  • We record what happened to a request (who answered, model, time, tokens, cost, confidence), never its content.
  • We store only a fingerprint of your vega key. Revoking a key stops it at once.
  • Need it on your own servers? vega runs on-premise; talk to us.

Plans and billing

You pay only for decisions vega answers on its own. Decisions your LLM answers, and everything that passes through, are never counted. Plans are monthly, paid by UPI or card through Razorpay, in rupees or dollars, and you can cancel any time from the Billing page (the plan runs to the end of the month you paid for).

PlanA monthvega answers included
Free₹0 / $010,000
Starter₹8,500 / $99100,000
Growth₹68,000 / $7991,000,000
Scale₹2,99,000 / $3,5005,000,000

Beyond a plan, the per-1,000 rate falls as you grow:

First 1M vega answers$1 per 1,000₹85 per 1,000
1M to 10M$0.60 per 1,000₹51 per 1,000
10M to 50M$0.35 per 1,000₹30 per 1,000
Above 50M$0.20 per 1,000₹17 per 1,000

Large volumes (about 30 million decisions a month and up) or data that must stay inside your network: an enterprise licence runs vega on your own servers with unlimited decisions. Talk to us.

Your dashboard

  • Overview: money saved against what you would have paid, the share vega answers, your plan's usage, and a setup checklist until you are live.
  • Keys: create, name and revoke keys. A key is shown once; we keep only its fingerprint.
  • Usage: daily charts (who answered, money saved, the share vega takes, its answer time) and tables by decision, model and escalation reason, with what vega has learned per question.
  • Logs: every request, newest first, filterable by who answered. What happened, never what was said.
  • Billing: your plan, its usage, and upgrades through Razorpay.

Limits

  • Up to 200 named decisions per user.
  • Conversations are read up to 400,000 characters; longer ones are cut from the start, keeping the newest turns.
  • Media sent as an http URL is passed to your LLM, not read by vega.