SDKs

OpenAI SDK + Velisity

Official OpenAI SDKs: only the base_url changes — and every catalog model sits behind it.

5 steps

Setup

  1. Key

    Create a key in the console and put it in the VELISITY_API_KEY environment variable. The configs below read it from there.

    bash
    export VELISITY_API_KEY="vls_live_…"
    Get a key →
  2. Python

    python
    import osfrom openai import OpenAI client = OpenAI(base_url="https://api.velisity.live/v1", api_key=os.environ["VELISITY_API_KEY"])client.chat.completions.create(model="anthropic/claude-sonnet-4-5", messages=[{"role": "user", "content": "ping"}])
  3. Node.js

    ts
    import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.velisity.live/v1", apiKey: process.env.VELISITY_API_KEY });await client.chat.completions.create({ model: "anthropic/claude-sonnet-4-5", messages: [{ role: "user", content: "ping" }] });
  4. Go

    go
    client := openai.NewClient(    option.WithBaseURL("https://api.velisity.live/v1/"),    option.WithAPIKey(os.Getenv("VELISITY_API_KEY")),)
  5. Check that it works

    A request to /v1/key returns the key name, limits and balance — if you get JSON back, the key and URL are right.

    bash
    curl https://api.velisity.live/v1/key -H "Authorization: Bearer $VELISITY_API_KEY"

Your first request in a minute

Create a key, change the base_url — and your code already works with any model. You only pay for answers.