Frameworks

LangChain + Velisity

ChatOpenAI with our base_url: chains, agents and tools work as with OpenAI.

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. Install the package

    No separate provider needed.

    pip install langchain-openai
  3. Create the model

    base_url and key from environment variables.

    python
    import osfrom langchain_openai import ChatOpenAI llm = ChatOpenAI(    model="anthropic/claude-sonnet-4-5",    base_url="https://api.velisity.live/v1",    api_key=os.environ["VELISITY_API_KEY"],)print(llm.invoke("ping").content)
  4. Embeddings

    OpenAIEmbeddings with the same URL.

    python
    from langchain_openai import OpenAIEmbeddings emb = OpenAIEmbeddings(model="openai/text-embedding-3-small", base_url="https://api.velisity.live/v1")
  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.