Setup
Key
Create a key in the console and put it in the VELISITY_API_KEY environment variable. The configs below read it from there.
Get a key →export VELISITY_API_KEY="vls_live_…"Install the package
pip install llama-index-llms-openai-likeConnect the model
is_chat_model=True — otherwise LlamaIndex calls /completions.
import osfrom llama_index.llms.openai_like import OpenAILike llm = OpenAILike( model="anthropic/claude-sonnet-4-5", api_base="https://api.velisity.live/v1", api_key=os.environ["VELISITY_API_KEY"], is_chat_model=True, context_window=200_000,)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.
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.