DocsIntegrations
SDKs and tools
A Velaron.AI key works anywhere that speaks the OpenAI or Anthropic API. Change the base URL, paste the key, keep everything else.
https://velaron.ai/v1OpenAI SDKs#
Pass base_url (Python) or baseURL (Node) and your key as api_key. Chat Completions, Responses, embeddings and images all go through.
from openai import OpenAI
client = OpenAI(base_url="https://velaron.ai/v1", api_key="sk_••••••••")
reply = client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role": "user", "content": "Explain an API rate limit in one line."}],
)
print(reply.choices[0].message.content)Anthropic SDKs#
Same idea. The SDK sends the key in x-api-key, which Velaron.AI accepts, and errors come back in Anthropic's shape.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({ baseURL: "https://velaron.ai/v1", apiKey: "sk_••••••••" });
const reply = await client.messages.create({
model: "anthropic/claude-sonnet-4.5",
max_tokens: 1024,
messages: [{ role: "user", content: "hi" }],
});
console.log(reply.content[0].text);Command line#
The Velaron.AI CLI talks to any model, shows your balance and reads your bill from a terminal. It installs straight from this server, so there is nothing to sign up for. Node 22 or newer.
npm install -g https://velaron.ai/cli/kredit-cli.tgz
kredit login # paste a key from the dashboard
kredit chat "explain rate limits in one line"
kredit chat -m anthropic/claude-haiku-4.5 # a conversation, turn by turn
cat notes.md | kredit chat -s "summarize" # pipe text in
kredit models claude # find a model and its price
kredit usage --from 2026-09-01 # what this month costEvery command takes --json for scripts; the cost of each call goes to stderr, so stdout stays clean for pipes. KREDIT_API_KEY and KREDIT_BASE_URL in the environment override the saved settings.
Claude Code#
Point Claude Code at this host's /v1 with two environment variables, and pick a model id from the model list.
export ANTHROPIC_BASE_URL="https://velaron.ai/v1"
export ANTHROPIC_API_KEY="sk_••••••••"
export ANTHROPIC_MODEL="anthropic/claude-sonnet-4.5"
claudeVercel AI SDK#
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";
const kredit = createOpenAICompatible({ name: "kredit", baseURL: "https://velaron.ai/v1", apiKey: "sk_••••••••" });
const { text } = await generateText({ model: kredit("openai/gpt-4o"), prompt: "hi" });
console.log(text);Switching from OpenRouter#
Velaron.AI works the way OpenRouter does: one key, every model, the OpenAI request format. Model ids use the same maker/model shape, so code written for OpenRouter usually needs two changes: the base URL, from https://openrouter.ai/api/v1 to this host's /v1, and the key. OpenRouter's optional HTTP-Referer and X-Title headers are not needed. The cost of each call comes back in x-vels-credits-charged instead of a usage dashboard.
Editors and desktop tools#
| Tool | Where to put it |
|---|---|
| Cursor | Settings → Models → OpenAI API key: paste the key, turn on “Override OpenAI base URL” and enter this host's /v1. Add model ids by name. |
| Continue | In config, an openai provider with apiBase set to this host's /v1 and apiKey set to the key. |
| Open WebUI | Connections → OpenAI API: base URL this host's /v1, key the Velaron.AI key. |
| Postman | Import /v1/openapi.json, set the bearer token to the key. |
| Anything set up for OpenRouter | Replace https://openrouter.ai/api/v1 with this host's /v1 and the OpenRouter key with a Velaron.AI key. Model ids stay as they are. |
Frameworks#
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="openai/gpt-4o", openai_api_base="https://velaron.ai/v1", openai_api_key="sk_…")
print(llm.invoke("hi").content)Reading the bill in code#
Most SDKs expose raw response headers. Two lines keep your app aware of its balance:
const { data, response } = await client.chat.completions.create({ /* … */ }).withResponse();
console.log(response.headers.get("x-vels-credits-charged"), response.headers.get("x-vels-balance"));