VIA.

Documentation

One account, one key and one prepaid balance for VIA chat models, tools and batches, through an OpenAI-compatible API.

Quickstart

  1. Get an API key (free, zero balance).
  2. Load credit by card (any amount from 5 USD) or USDC (1, 5, 20 or 100); purchased credit does not expire.
  3. Choose a model and try it in the Playground.
  4. Send the same request from your code (below).
  5. Check usage and receipts.

Authentication

Send your key as a bearer token. The header x-credit-token is accepted as an alternative. VIA stores only a fingerprint of the key and cannot recover it: keep it in a password manager and never put it in a URL.

Authorization: Bearer via_YOUR_KEY

Extra keys with their own usage, manager or standard role, and safe replacement of a compromised primary key are in Account → Keys.

First request

curl https://via-router.floot.app/_api/v1/chat/completions \
  -H "Authorization: Bearer $VIA_KEY" -H "Content-Type: application/json" \
  -d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Hello"}],"max_tokens":512}'
from openai import OpenAI
client = OpenAI(base_url="https://via-router.floot.app/_api/v1", api_key=VIA_KEY)
r = client.chat.completions.create(model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello"}], max_tokens=512)
print(r.choices[0].message.content)

The response headers X-VIA-Charge-USD and X-VIA-Receipt-Id give the exact charge and the receipt id.

Models

The live chat models (DeepSeek at launch; the catalog grows as each model is verified). Each entry states its price per million input and output tokens, the minimum per request (from 0.0027 USD), context length and capabilities (tools, vision, JSON schema, streaming mode). Prices never change silently: the catalog is the source.

Searchable model catalog → · GET /v1/models

Inference

  • Accepted: temperature, top_p, stop, seed, penalties, response_format, max_tokens or max_completion_tokens up to 8,192 (default 2,048), tools and tool_choice, images (image_url) on models with vision, stream.
  • Streaming: each model states capabilities.streaming_mode. "buffered" sends standard SSE events once the full answer is ready; "progressive" sends tokens as generated. Both work with stream: true.
  • Billing: the maximum possible cost is reserved, the real usage is charged and the rest returned. A provider failure costs nothing. Repeating a request with the same Idempotency-Key never charges twice.
  • Optional fallback: "fallback_models": ["qwen3.7-flash"] tries the listed models, never more expensive and with the same capabilities, if the requested one fails. The response says which model answered.
  • Errors: 401 unknown or revoked key · 402 insufficient balance (nothing charged) · 429 your rate or spend limit (default 600 requests/minute) · 502/503 provider unavailable (nothing charged; retry with the same Idempotency-Key).

Not available: embeddings, fine-tuning jobs (dataset upload and price quotes only), dedicated GPU capacity, n > 1.

Tools

The same key pays VIA's own tools (or pay each call with x402 instead):

ToolEndpointUSD
API comparisonPOST /_api/api_compare0.01
Document text extractionPOST /_api/extract_page0.02
Web Text LitePOST /_api/extract_web_lite0.001
Hash SHA-256/512 (x402)POST /_api/via_direct0.003
curl https://via-router.floot.app/_api/api_compare -H "Authorization: Bearer $VIA_KEY" -H "Content-Type: application/json" \
  -d '{"intent":"Compare PDF text extraction APIs","country":"US"}'

All APIs and tools → · Agent integration →

Batch processing

Up to 100 chat requests per batch, each billed at the normal price of its model; streaming is not used in batches. Create and follow batches from code or from Account → Batches.

POST https://via-router.floot.app/_api/inference_batches
{"requests":[{"custom_id":"a1","body":{"model":"qwen3.7-flash","messages":[{"role":"user","content":"Hello"}],"max_tokens":512}}]}

GET  https://via-router.floot.app/_api/inference_batches?id=BATCH_ID

OpenAI compatibility

Point any OpenAI SDK at the VIA base URL and use your VIA key as the API key; nothing else changes. Model ids with a dot or slash also have aliases (qwen3-7-flash, openai--gpt-5-4) for models.retrieve.

// Node
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://via-router.floot.app/_api/v1", apiKey: process.env.VIA_KEY });

LiteLLM & LangChain

# LiteLLM
import litellm, os
litellm.completion(model="openai/deepseek-chat", api_base="https://via-router.floot.app/_api/v1",
                   api_key=os.environ["VIA_KEY"], messages=[{"role": "user", "content": "Hello"}])

# LangChain
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="deepseek-chat", base_url="https://via-router.floot.app/_api/v1", api_key=os.environ["VIA_KEY"])
llm.invoke("Hello")

Both use the OpenAI-compatible route; no VIA-specific package is needed.

Payments

MethodHowFor
Card (Stripe)/credits · any amount from 5 USD (up to 999,999.99 USD per payment) · no fee · cards, Apple Pay, Google Pay, Link where available · does not expirePrepaid balance
Bank transfer (USD, Stripe)/credits · "method":"bank_transfer" · from 5 USD up to 999,999.99 USD per transfer · no fee · credited when Stripe confirms the funds (usually 0–3 business days) · same bank details and reference for your accountPrepaid balance, large amounts
USDC (x402, Base)POST /_api/credits_buy {"tier":"5"} · 1, 5, 20, 100Prepaid balance
x402 per requestPOST /_api/inference_x402 · from 0.004 USDCAgents without a key

x402 flow: send the request → HTTP 402 states the exact price → sign it with your wallet → repeat the identical request with PAYMENT-SIGNATURE. Never send a key and a payment on the same request. Low balance: GET /_api/credits_balance returns lowBalance below 0.50 USD with top-up options.

Automatic recharge: in Account you set the balance that triggers it, the amount and a monthly cap, and authorise your card once in Stripe; nothing is charged without that authorisation, and you can change or switch it off at any time. Large amounts: load the same key as often as needed; payment methods enabled on the live Stripe account (and the maximum per payment) are listed by GET /_api/credits_payment_methods. Credit is added only after the funds are confirmed, and purchased credit does not expire. Estimate usage with the simulator on the pricing page.

Full pricing → · Terms

API reference

Base URL: https://via-router.floot.app/_api · OpenAPI · llms.txt

MethodPathPurpose
GET/_api/v1/modelsCatalog with prices, context and capabilities (free)
GET/_api/v1/models/{id}One model (use the one-segment alias for ids with a slash)
POST/_api/v1/chat/completionsChat completions, prepaid key
POST/_api/v1/completionsLegacy completions (one prompt, no streaming)
POST/_api/inference_x402Chat paid per request in USDC (x402), no key
POST / GET/_api/inference_batchesCreate a batch / read it with ?id=
POST/_api/credits_keyNew zero-balance key (free)
POST/_api/credits_card_checkoutCard top-up: returns a checkout URL
GET/_api/credits_payment_methods?amountUsd=Enabled payment methods, card fee and total for an amount (free)
POST/_api/credits_autorechargeAutomatic recharge: status, authorise, switch off
POST/_api/credits_buyUSDC top-up by x402 (tiers 1, 5, 20, 100)
GET/_api/credits_balanceBalance and low-balance signal
GET/_api/credits_usageUsage history, by key and service
GET/_api/credits_receipt?requestId=Receipt of one request
GET/_api/credits_ordersTop-up history
POST/_api/credits_limitsRate limit and monthly spend cap
POST/_api/credits_keysList, create and revoke extra keys
POST/_api/api_compareAPI provider comparison
POST/_api/extract_pageDocument / page text extraction
POST/_api/via_directSingle x402 entry for VIA's own services