Developers
Your credits, everywhere you work.
One API key spends your VelATL balance inside external tools - same rates as the web app, same ledger, per-key spend tracking in Settings.
1. Create a key
Log in → Settings → API keys → name it (e.g. “opencode laptop”) → copy the secret once - it is never shown again. Revoke anytime; revocation is instant.
2. Connect your tool
OpenCode - provider preset (opencode.json)
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"velatl": {
"npm": "@ai-sdk/openai-compatible",
"name": "VelATL",
"options": {
"baseURL": "https://velatl.ai/api/v1",
"apiKey": "velatl_..."
},
"models": {
"fast": { "name": "Swift (DeepSeek V4.1 Flash / GPT-6 Luna)" },
"balanced": { "name": "Balanced (Gemini 4 Hydrogen / GPT-6.1 Terra)" },
"coder": { "name": "Coder (Muse Spark 1.3 / Qwen4 Max / GLM-5.3)" },
"deep": { "name": "Deep (GPT-6.2 Sol / Kimi K3.1 Pro)" }
}
}
}
}
# then use model: "velatl/coder", "velatl/fast", "velatl/balanced" or "velatl/deep"Cline / Continue / any OpenAI SDK
Base URL: https://velatl.ai/api/v1 API key: velatl_... (Settings -> API keys; legacy vtai_... keys still work) Model: fast | balanced | coder | deep | prime | prime-max | ultra Everything else stays exactly as your tool expects.
Claude Code (Anthropic-compatible)
export ANTHROPIC_BASE_URL="https://velatl.ai/api" export ANTHROPIC_API_KEY="velatl_..." # model: fast, balanced, coder, deep, prime, prime-max, ultra (see the table below for plan gating) # tool use, streaming and sampling params supported
Claude Desktop / MCP clients
# MCP server (Streamable HTTP): https://velatl.ai/api/mcp # Authorization: Bearer velatl_... # Tools: chat (billed, supports document_id), web_research (billed), generate_image (billed), get_balance, list_models, list_documents (free)
curl - OpenAI shape
curl https://velatl.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer velatl_..." \
-d '{"model":"fast","messages":[{"role":"user","content":"Hi"}]}'curl - Image generation & image-to-image edits (OpenAI Images shape)
curl https://velatl.ai/api/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer velatl_..." \
-d '{"model":"standard","prompt":"A monsoon street in Mumbai at dusk","size":"1536x1024"}'
# Supported sizes: "1024x1024" (square), "1536x1024" (landscape), "1024x1536" (portrait)
# Image-to-image edits (+100 cr per reference image, up to 3 PNG/JPEG/WebP under 4 MB):
curl https://velatl.ai/api/v1/images/edits \
-H "Authorization: Bearer velatl_..." \
-F "model=standard" -F "size=1024x1024" \
-F "prompt=Turn this sketch into a sunlit watercolor" \
-F "image=@sketch.png"
# Or pass JSON {"prompt":"...","source_image_ids":["<gallery_image_id>"],"input_images":["data:image/png;base64,..."]}curl - tool calling (then JSON in a follow-up)
curl https://velatl.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer velatl_..." \
-d '{
"model": "balanced",
"messages": [{"role":"user","content":"Weather in Chennai?"}],
"tools": [{"type":"function","function":{
"name":"get_weather","description":"Current conditions",
"parameters":{"type":"object","properties":{"city":{"type":"string"}}}}}],
"tool_choice": "auto",
"temperature": 0.2
}'
# assistant turn: finish_reason "tool_calls" with reassembled arguments;
# send tool results back as {role:"tool", tool_call_id, content} turns.
# NOTE: response_format json_object cannot ride along with tools
# (providers reject the combo, so v1 400s it before billing).
# Ask for JSON in a follow-up call without tools:
# {"model":"balanced","messages":[...tool results...],
# "response_format":{"type":"json_object"}}curl - Anthropic shape
curl https://velatl.ai/api/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: velatl_..." \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"fast","max_tokens":8192,"messages":[{"role":"user","content":"Hi"}]}'
# Anthropic tools work too: pass tools[] + tool_choice {type:"auto"};
# replies stream as tool_use blocks with stop_reason "tool_use".Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(base_url="https://velatl.ai/api/v1", api_key="velatl_...")
r = client.chat.completions.create(
model="fast",
messages=[{"role": "user", "content": "Hi"}],
)
print(r.choices[0].message.content)3. Models & pricing
Slugs below are the model values both protocols accept. Billed from the same balance at web rates - see per-key spend in Settings. GET /api/v1/models returns the same catalog programmatically, per-1k credit rates included.
Swift (DeepSeek V4.1 Flash / GPT-6 Luna) fast
High-speed, cost-efficient reasoning powered by DeepSeek V4.1 Flash and GPT-6 Luna.
2 cr / 1k in · 9 cr / 1k out · max 64,000 out
Balanced (Gemini 4 Hydrogen / GPT-6.1 Terra) balanced
Multimodal daily driver with 1M context window and fast tool calling.
25 cr / 1k in · 125 cr / 1k out · max 65,536 out
Coder (Muse Spark 1.3 / Qwen4 Max / GLM-5.3) coder
Dedicated price-performance coding tier for IDEs, CLI tools, and refactoring.
22 cr / 1k in · 75 cr / 1k out · max 64,000 out
Deep (GPT-6.2 Sol / Kimi K3.1 Pro) deep
Frontier reasoning for complex codebase planning, mathematics, and architecture.
35 cr / 1k in · 165 cr / 1k out · max 65,536 out
Prime (Claude Sonnet 5.5) prime
Flagship agentic coding and analysis engine with ultra-low cached input rates.
35 cr / 1k in · 165 cr / 1k out · max 128,000 out
Prime Max (Claude Opus 5.5 / Gemini 4 Neon / Muse Wonder) prime-max
Top-tier agentic frontier model for massive repository audits and complex tasks.
70 cr / 1k in · 330 cr / 1k out · max 128,000 out
Ultra (Claude Fable 5.2 / GPT-6.2 Astra) ultra
Maximum frontier intelligence ceiling for mission-critical verification.
175 cr / 1k in · 825 cr / 1k out · max 128,000 out
Billing & limits
- Every call reserves max cost first, then settles actuals - unused reserved credits are returned; partial replies may be charged.
- Token billing counts the full prompt sent upstream: your messages, conversation history, and tool/JSON schema definitions all bill as input tokens - keep tool lists lean.
- Out of credits →
402 insufficient_credits. Top up or upgrade in billing. - Fair-use rate limits per key + plan caps shared with the web app. New keys start capped at 5,000 credits/month (settled + in-flight spend) - adjust per key in Settings.
- Every response carries
X-Request-Id- quote it in support mail. GET /api/v1/modelslists the models your plan can use.- Data handling: your prompt goes to the selected provider; fallback may send it to another provider if a call fails; history is owner-only. Full path in the privacy data-flow.
Teams - one pool, many members
Teams share conversations and credits. The owner funds one pool from their balance; every thread shared with the team bills the pool at normal rates, whoever continues it. Members never touch their own credits inside shared threads. Manage it in Teams (create, fund/withdraw, add by email, share any thread from its share bar).
- Open Teams while signed in and create a team.
- Fund the pool from your personal balance. Only the owner can fund or withdraw.
- Add members who already have active accounts using their email addresses.
- Share a conversation from its share bar; subsequent replies use the team pool.
Team management and conversation sharing require a signed-in web session. These routes do not accept API keys. Bearer keys are supported by the documented model, inference and MCP endpoints.
What v1 supports - and what it rejects
Tool calling and JSON mode are supported on both protocols (see the curl examples above): send tools[] with tool_choice auto/none and get tool_calls / tool_use blocks back; send response_format: {"type": "json_object"} (OpenAI protocol) for JSON mode. Anything outside this list is rejected with a clear 400 before anything is billed.
- Not supported: image/audio inputs, thinking blocks, document blocks - text and tools only.
tool_choicemust be auto/none (forced or named tool choice is rejected); the legacyfunctions/function_callAPI is not served. Tools andresponse_formatjson_object cannot be combined (providers reject it) - request JSON in a follow-up call.- Anthropic protocol:
stop_sequencesandresponse_formatare rejected; top-k and other provider-specific sampling knobs run provider defaults. - Only
n=1is served. For streaming token totals, sendstream_options: {"include_usage": true}. A final usage-only chunk follows successful settlement. Editor dollar estimates depend on your editor configuration; review VelATL billing for actual credit charges.
Tool guides
First coding task: fix a bug, run three tests and inspect the credits — a reproducible walkthrough with a measured OpenCode result and UPI top-up steps.
- VelATL + OpenCode - 1-minute provider setup with spend guardrails.
- VelATL + Claude Code - ANTHROPIC_BASE_URL with tool_use blocks.
- VelATL MCP server - chat (with document RAG), web_research, generate_image, get_balance, list_models and list_documents for any MCP client.
- VelATL + Cline - OpenAI-Compatible provider in VS Code.
- VelATL + Continue - chat, edit and apply roles in config.yaml.
- OpenAI-compatible API guide - drop-in baseURL quickstart and reliable errors.
- Why VelATL - the factual case against chatbots, marketplaces and going direct.