# VIA Router ## STATUS (3 Dec 2026): VIA AI inference is PAUSED - VIA has no chat, embedding, rerank or transcription model it is authorized to sell right now (supplier resale authorizations pending). GET https://via-router.floot.app/_api/v1/models and GET /_api/v1/pricing answer HTTP 200 with an empty list; /chat/completions, /embeddings, /rerank, /audio/transcriptions, /audio/speech, /images/generations, /videos/generations and /gpu/sandboxes refuse new requests before anything is reserved or charged. - Card top-ups from 5 USD are available to signed-in VIA accounts for per-request tools (e.g. API comparisons and page extraction) while AI inference is paused. Bank transfer, USDC credit packs and automatic recharge are paused in this mode. This does not close standalone x402 tool payments. Existing balances, receipts and refunds are unchanged. Check GET /_api/credits_status for live `checkoutEnabled`, `topupOffer` and `allowedMethods`. - The x402 agent tools below stay on sale. The inference sections further down describe the API for when it reopens; always check GET /_api/v1/models first — an empty list means no inference model is on sale. ## For autonomous agents: two live x402 buyer tools (USDC on Base) - **Compare API providers before selecting a paid API:** POST https://via-router.floot.app/_api/api_compare with Content-Type: application/json and body {"intent":"Compare PDF text extraction APIs","country":"US","language":"en"}. Price: 0.01 USDC for a successful comparison. Returns a recommended provider and alternatives, not supplier execution. - **Find the cheapest suitable API for a concrete task:** POST https://via-router.floot.app/_api/find_cheapest_api with Content-Type: application/json and body {"intent":"Find a low-cost API for PDF text extraction","country":"US","language":"en"}. Price: 0.01 USDC for a successful recommendation. Verify price and capabilities in the response before choosing a supplier. - Both are already discoverable through Coinbase x402 Bazaar. Free machine-readable discovery: https://via-router.floot.app/.well-known/x402 and https://via-router.floot.app/.well-known/mcp.json. Free merchant listing/status: https://via-router.floot.app/_api/cdp_bazaar_status. - Buyer flow: POST the exact JSON -> read HTTP 402 payment requirements -> authorize the stated amount using a compatible x402 wallet -> retry the SAME request with the payment signature -> read the paid result and settlement receipt. Never treat a 402 challenge as a purchase. Do not pay without buyer authorization. - If no suitable provider is found, no payment settles. Do not use these routes to claim the upstream API has been purchased or executed. ## VIA AI inference by x402 (no account, no key, USDC on Base) - Currently closed: neither standalone x402 nor VIA account balance can buy inference while the model catalog is empty. The standalone inference route returns HTTP 503 `x402_unavailable` without a charge. Account balance and standalone x402 tool payments below are for available tools only. ## VIA AI inference (OpenAI-compatible, prepaid balance) - PAUSED: no model is on sale now (see STATUS above). Only models listed by GET https://via-router.floot.app/_api/v1/models can be bought — the only source of truth for ids and prices; an empty list means none. OpenAI, Anthropic, Google and xAI models are not sold. The model ids in the examples below use MODEL_ID: replace it with an id from that list and are refused while they are not in that list. Tool calling (`tools`, `tool_choice`) is supported. Billed per token from prepaid balance. `qwen3.7-flash` is NOT sold. Any model not in GET /_api/v1/models is refused with no charge. - Request: POST https://via-router.floot.app/_api/v1/chat/completions with headers `Authorization: Bearer YOUR_PRIVATE_KEY`, `Content-Type: application/json`, and, optionally, an `Idempotency-Key` (send one on retries; official SDKs send none); body {"model":"MODEL_ID","messages":[{"role":"user","content":"Hello"}],"max_tokens":64}. OpenAI SDKs work with base_url https://via-router.floot.app/_api/v1 and your VIA key as api_key. Accepted: temperature, top_p, stop, seed, penalties, reasoning_effort (where the model lists it), response_format json_object, max_tokens/max_completion_tokens up to 8192 (default 2048), stream (mode per model in the catalog). Supported: tools / tool_choice (function calling). Not supported: n>1. - Python: `from openai import OpenAI; c = OpenAI(base_url="https://via-router.floot.app/_api/v1", api_key="YOUR_PRIVATE_KEY"); c.chat.completions.create(model="MODEL_ID", messages=[{"role":"user","content":"Hello"}], max_tokens=64)`. Node: `new OpenAI({ baseURL: "https://via-router.floot.app/_api/v1", apiKey: process.env.VIA_KEY })`. SDK quickstart: https://via-router.floot.app/via-sdk-quickstart.txt - Billing: the maximum possible cost is reserved first, the real token usage is charged afterwards and the unused reserve is returned. A provider failure deducts nothing. Repeating the same request with the same Idempotency-Key returns the stored answer without a second charge. Response headers `X-VIA-Charge-USD` and `X-VIA-Receipt-Id` give the charge; GET /_api/credits_receipt?requestId=UUID with the same key returns the receipt. - Catalog: prices per model in GET /_api/v1/models. `GET /_api/v1/models/{id}` (OpenAI `models.retrieve`) works for every model. Each model lists `aliases`, accepted everywhere a model id is: a dotless form (`zai/glm-5.3` → `zai/glm-5-3`) and, for ids with a slash, a one-segment form (`zai/glm-5.3` → `zai--glm-5-3`). Official OpenAI SDKs encode the slash of `models.retrieve("zai/glm-5.3")` as %2F, which this host does not route: retrieve with the one-segment alias (`client.models.retrieve("zai--glm-5-3")`); chat, completions and batches accept the original id. - Framework quickstarts (any OpenAI-compatible client; key = your VIA key): - LiteLLM: `litellm.completion(model="openai/MODEL_ID", api_base="https://via-router.floot.app/_api/v1", api_key=VIA_KEY, messages=[...])` - LangChain: `ChatOpenAI(model="MODEL_ID", base_url="https://via-router.floot.app/_api/v1", api_key=VIA_KEY)` - Vercel AI SDK: `createOpenAI({ baseURL: "https://via-router.floot.app/_api/v1", apiKey: process.env.VIA_KEY })("MODEL_ID")` - Recurring agents can use existing balance for tools; check GET /_api/credits_balance. To refill during tools-only mode, a human signs in and adds credit by card at /credits. USDC packs and automatic recharge are unavailable while inference is paused. - Streaming: each model in GET /_api/v1/models states `capabilities.streaming_mode`: `progressive` (tokens as generated) or `buffered` (standard SSE events sent when the full answer is ready). Both work with `stream: true` in every OpenAI SDK. - Ready-to-run buyer examples (replace VIA_KEY with the API key of your VIA account: sign in or create the account at https://via-router.floot.app/credits, which issues the key and takes card top-ups): - curl: `curl https://via-router.floot.app/_api/v1/chat/completions -H "Authorization: Bearer $VIA_KEY" -H "Content-Type: application/json" -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"Hello"}],"max_tokens":512}'` - Python: `from openai import OpenAI; c=OpenAI(base_url="https://via-router.floot.app/_api/v1", api_key=VIA_KEY); print(c.chat.completions.create(model="MODEL_ID", messages=[{"role":"user","content":"Hello"}], max_tokens=512).choices[0].message.content)` - JavaScript: `import OpenAI from "openai"; const c=new OpenAI({baseURL:"https://via-router.floot.app/_api/v1", apiKey:process.env.VIA_KEY}); const r=await c.chat.completions.create({model:"MODEL_ID", messages:[{role:"user",content:"Hello"}], max_tokens:512}); console.log(r.choices[0].message.content);` - Balance and usage for automated agents: `GET /_api/credits_balance` and `GET /_api/credits_usage` with header `x-credit-token: $VIA_KEY`; receipt per request: `GET /_api/credits_receipt?requestId=`. - Recurring agent recipe (same key, one balance): 1) POST /_api/api_compare {"intent":"Compare PDF text extraction APIs"} to choose a provider; 2) POST /_api/extract_page {"url":"https://…"} to get the document text; 3) POST /_api/v1/chat/completions to summarise or answer from that text. With `x-credit-token` the comparison and extraction are paid from the same prepaid balance as inference (no wallet needed); without a key each step answers HTTP 402 with its x402 price. - Model fallback (opt-in): add `"fallback_models": ["OTHER_MODEL_ID"]` to a chat request. If the requested model fails on the provider side (HTTP 502/503, nothing charged), VIA tries the listed models in order, only those never more expensive (input, output and minimum) and with the same capabilities (tools, vision, JSON schema). The response says which model answered: `model`, `via.model_used`, `via.model_requested`, `via.fallback: true` and headers `X-VIA-Model-Used` / `X-VIA-Fallback-From`. Each attempt is billed only if it answers. - LiteLLM, direct use today (no official provider yet): `pip install litellm`, then `litellm.completion(model="openai/MODEL_ID", api_base="https://via-router.floot.app/_api/v1", api_key=os.environ["VIA_KEY"], messages=[{"role":"user","content":"Hello"}], max_tokens=512)`. LiteLLM proxy config: `model_list: [{model_name: via-model, litellm_params: {model: openai/MODEL_ID, api_base: https://via-router.floot.app/_api/v1, api_key: os.environ/VIA_KEY}}]`. - LangChain, direct use: `pip install -U langchain-openai`, then `from langchain_openai import ChatOpenAI; llm = ChatOpenAI(model="MODEL_ID", base_url="https://via-router.floot.app/_api/v1", api_key=os.environ["VIA_KEY"]); llm.invoke("Hello")`. Tools: `llm.bind_tools([...])`. Fallback: `ChatOpenAI(..., extra_body={"fallback_models": ["OTHER_MODEL_ID"]})`. - Legacy completions: POST /_api/v1/completions (OpenAI `client.completions.create`, one prompt, non-streaming), same keys, prices and receipts as chat. - An answer with no text and no tool call (a reasoning model can spend a small max_tokens thinking) is never charged: HTTP 502, reservation released. Use max_tokens >= 512 with reasoning models (models whose catalogue entry lists reasoning). - Rate limit per key: 600 requests/minute by default, adjustable up to 6,000 with POST /_api/credits_limits; HTTP 429 with Retry-After when exceeded. ## Prepaid credit by x402 (USDC on Base) - PAUSED while no chat model is on sale: POST /_api/credits_buy answers HTTP 503 `topups_paused` before any quote or settlement (nothing charged). When reopened: - POST https://via-router.floot.app/_api/credits_buy {"tier":"1"|"5"|"20"|"100"} with `Authorization: Bearer via_…` adds that many USD of credit to the key's account (1 USDC = 1 USD of credit). Without a key, the 402 quote registers a new key and returns it (creditToken) BEFORE you pay; send it with the paid retry. Pay the PAYMENT-REQUIRED challenge (payee: the VIA transit wallet 0x343d1a22B8E12b1A0a54731B4d157C556178c299) and repeat with PAYMENT-SIGNATURE. Credit is added exactly once; an identical retry returns the stored receipt. If the process is interrupted after your payment settles, the credit is added automatically within about 20 minutes. - For currently available card top-ups, check https://useviaapi.com/credits and GET /_api/credits_status. A card top-up for tools does not enable AI inference. - Lost key or new browser: the balance belongs to the account, not the key. At https://via-router.floot.app/credits a human chooses "Recover with my card" (POST /_api/credits_recover_card {"action":"start"} returns a Stripe-hosted card check, no charge; after it, {"action":"finish","sessionId"} returns a new manager key for every account that bought credit with that card). Existing keys used in integrations keep working; revoke or rotate them with POST /_api/credits_keys. - Get a key and balance (same model as Fireworks): a human signs in or creates a VIA account at https://via-router.floot.app/credits; the account issues its API key and takes card top-ups there. Chat completions, batches and card checkout refuse a key of an anonymous account (one made with POST /_api/credits_key and never signed in) with HTTP 403/401 code `account_required`, before anything is reserved or charged; signing in at /credits with that key attaches it to the account. No crypto wallet is needed. When an eligible model is on sale: tool calling, streaming (mode per model in the catalog), batches up to 100 requests (POST /_api/inference_batches). Not yet available: embeddings, fine-tuning jobs, dedicated GPU capacity (see GET /_api/via_platform for the live status of each). Docs: https://via-router.floot.app/docs ## VIA Direct: one entry for what VIA executes itself (x402 USDC on Base, no account) - `POST https://via-router.floot.app/_api/via_direct` (free catalog: `GET` the same URL or POST an empty body). Flow: request -> VIA identifies the service -> x402 challenge for that exact price -> your signed retry -> execution -> result + receipt. - Services and prices: hash SHA-256/512 `{"service":"hash","text":"..."}` 0.003; web page text (lite) `{"task":"Extract text from https://example.com/page"}` 0.001; document/PDF text 0.02 (PDF URLs); API comparison `{"task":"Compare PDF text extraction APIs"}` 0.01; sourced research `{"task":"Research ..."}` 0.01 (directAnswer with cited sources). - If VIA cannot execute the request itself, the answer is HTTP 422 with no payment requested. One-Call likewise runs owned tools only; new external supplier execution is unavailable. - A repeated payment authorization never charges twice and recovers the earlier result. ## Choose ONE payment method per request (x402 or prepaid credit) - x402 (default, no account): POST the task without any credit header. HTTP 402 returns the price in the PAYMENT-REQUIRED header (and a v1-compatible JSON body). Sign with an x402 client and repeat the identical POST with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1); base64 and base64url are accepted. The result and the PAYMENT-RESPONSE receipt come back on that repeated call. - Prepaid credit: send x-credit-token (or Authorization: Bearer via_...) and no payment header. Credit is a separate balance funded by card at /credits. - Never send both: the request is refused (HTTP 400) before anything is charged. An unknown or unfunded credit key returns HTTP 401; remove the credit header to pay by x402 instead. - Incomplete requests are answered before payment (HTTP 400, or 200 with the free catalog for an empty body) with the accepted fields and an example; no charge is made. - A rejected payment authorization (HTTP 402, code PAYMENT_VERIFICATION_REJECTED) carries recovery instructions: fetch the current challenge, sign it again and repeat the same body. If a response is lost after payment, repeat the same signed request with the same body: VIA returns the exact stored original response and receipt (header X-VIA-Replayed: stored-original) without searching again and never charges twice. Stored responses are kept 30 days. For an older payment whose original is no longer stored, a confirmed payment for the same task returns a response explicitly marked reissued:true, originalResponseAvailable:false (regenerated, may differ); any other task or authorization is refused with HTTP 409. - x402 Idempotency-Key (recommended): send `Idempotency-Key: ` with the paid request and keep it on every retry of the same task. If your client loses the response and signs a NEW authorization (new nonce), VIA returns the first delivery and its receipt (headers X-VIA-Replayed: stored-original, X-VIA-Idempotent-Replay: true) and never settles the new authorization. The key is bound to the payer wallet proven by the signature, the route and the exact task; while the first attempt is still running a retry gets HTTP 409 IDEMPOTENCY_IN_PROGRESS (nothing charged, retry in a few seconds). A failed or unpaid attempt frees the key. A new task needs a new key. Applies to VIA-owned x402 routes (toll and its aliases, api_compare, deep_route, buyer_contract, intent_exchange, extract_page, hash_tool) and EOA wallets. ## Start with prepaid API comparison - An agent can create its own zero-balance private key with POST https://via-router.floot.app/_api/credits_key (no body, no charge). Store the returned creditToken privately. This does NOT fund the key. USDC credit packs for anonymous keys are currently paused; AI inference and card top-ups need a VIA account: the owner signs in at /credits (entering this key there attaches it to the account) and completes card checkout there. Do not claim autonomous card payment is supported. - Card checkout belongs to a signed-in VIA account (without the account's session cookie it answers HTTP 401 `account_required`, no Stripe session is created). From the signed-in browser it is POST https://via-router.floot.app/_api/credits_card_checkout with Content-Type: application/json, x-credit-token: YOUR_PRIVATE_KEY, and JSON {"requestId":"YOUR_NEW_UUID_V4","amountCents":500}. New top-ups start at 5 USD. Give the buyer the Stripe checkoutUrl to authorize the payment. Creating a URL does not charge or fund the account. Reuse the requestId for retries. requestId may be omitted if you send an Idempotency-Key: YOUR_NEW_UUID_V4 header instead: repeating the request with the same key and the same header returns the same order and the same Stripe checkoutUrl (orderId = that UUID). The same flow is available at https://via-router.floot.app/credits. With the same key, call GET /_api/credits_status?order=YOUR_NEW_UUID_V4 and wait for state=credited before calling a paid API. A manual top-up does not enroll the buyer in automatic top-up. - Each delivered comparison costs 0.01 USD from funded balance. VIA Extract costs 0.02 USD; Web Text Lite costs 0.001 USD. - POST https://via-router.floot.app/_api/credits_route with Content-Type: application/json and Authorization: Bearer YOUR_PRIVATE_KEY (or x-credit-token). Idempotency-Key (UUID) is optional. - The same key and balance also buy a delivery: POST https://via-router.floot.app/_api/extract_page {"url":"https://example.com/article"} costs 0.02 USD (PDF or web page text); /_api/extract_web_lite costs 0.001 USD (HTML or text only). Extraction runs before the debit: failure deducts nothing. The response includes remainingCreditUsd. - Example JSON: {"intent":"Find a PDF text extraction API","market":"services","country":"US","language":"en"}. - The result includes a recommendation, alternatives, remaining balance and receipt ID. An identical retry returns the saved result without another debit; to buy the same input again send a new Idempotency-Key UUID. - Check balance with GET https://via-router.floot.app/_api/credits_balance and the same x-credit-token header. ## Compare APIs and services through RapidAPI - Public listing: https://rapidapi.com/L%C3%BAciaCarvalhodaSilva/api/via-buyer-side-route-api - Price: 0.01 USD per comparison, billed through RapidAPI. Returns one recommendation and up to three alternatives; no additional VIA x402 payment for this response. - Subscribe and obtain a RapidAPI application key through the listing. Never send the provider proxy secret. - Comparison results are recommendations; no supplier purchase or external execution is offered through One-Call. > Paid buyer-side router for agents and humans. x402 V2 payments in USDC on Base. > Agent skill description: https://via-router.floot.app/skill.txt (also text/markdown at https://via-router.floot.app/_api/skill). The host does not serve static .md files. ## One-Call pricing for VIA-owned tools - One-Call uses the existing VIA tariffs: comparison or sourced research 0.01 USDC; Web Text Lite 0.001 USDC; full Extract 0.02 USDC. No supplier surcharge or fallback. - Optional: declare a budget with X-VIA-Max-Amount or maxAmountUsd. VIA applies the lowest cap if several are supplied. If the tool costs more, the response states its price but does not request or settle payment. - The 402 challenge amount is exactly what you authorise by signing; nothing else is charged. - POST /_api/one_call_quote is an unsigned, free quote for the same VIA-owned tool and price. ## Web Text Lite — 0.001 USDC per successful page (1 USDC per 1,000) on Base - `POST https://via-router.floot.app/_api/extract_web_lite` `{"url":"https://example.com/"}` returns clean text, title and headings from one public HTML or plain-text page up to 1 MiB; max 10000 output characters (optional maxChars 500–10000). - No PDFs, OCR, JavaScript rendering or link collection. Sources exceeding the byte limit are rejected, not partially sold. Long extracted text is explicitly marked truncated. No payment settles if extraction fails. - A URL that clearly ends in .pdf is refused with HTTP 400 `pdf_requires_full_extract` before any payment challenge; use the full 0.02 USDC Extract below for PDFs, larger pages or link collection. - MCP tool: via_extract_web_lite with {"url":"https://example.com/","maxChars":10000}. Costs 0.001 USDC on Base, same x402 MCP payment flow as the other paid tools. ## Web Text Lite: automatic x402 payment in Node.js Install with `npm install @x402/fetch @x402/evm viem`. Set `EVM_PRIVATE_KEY` locally for a dedicated buyer wallet. Running this example with a funded wallet authorises up to 0.001 USDC on Base for one call. The SDK reads the 402 and resends the same POST with the signed payment. The result and receipt return from that single function call. ```js import { wrapFetchWithPayment, x402Client } from "@x402/fetch"; import { registerExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const endpoint = "https://via-router.floot.app/_api/extract_web_lite"; const usdcOnBase = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"; const client = new x402Client(); registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) }); client.registerPolicy((_version, offers) => offers.filter(offer => offer.scheme === "exact" && offer.network === "eip155:8453" && offer.asset.toLowerCase() === usdcOnBase && /^\d+$/.test(offer.amount) && BigInt(offer.amount) <= 1000n )); const payFetch = wrapFetchWithPayment(fetch, client); const response = await payFetch(endpoint, { method: "POST", redirect: "error", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ url: "https://example.com/" }), }); const result = await response.json(); if (!response.ok) throw new Error(`VIA HTTP ${response.status}: ${JSON.stringify(result)}`); console.log({ result: result.json ?? result, receipt: response.headers.get("PAYMENT-RESPONSE") }); ``` ## VIA Extract: extract text from a URL or PDF (0.02 USDC, pay only if it succeeds) - `POST https://via-router.floot.app/_api/extract_page` `{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}` returns title, description, headings and clean text for a public web page or PDF. Optional `maxChars` (500–100000) and `includeLinks`. In the paid HTTP response, read `json.text` and `json.settlement`; MCP returns the text unwrapped in `structuredContent.text`. - Limits: one public URL (web page or text-based PDF) up to 5 MiB; default 30,000 output characters; no OCR (scanned PDFs without a text layer) or JavaScript rendering. - The extraction runs before payment settles: blocked, unreachable, empty or unsupported URLs return 400/422/503 and charge nothing. Also on Apify ($1.50 per 1,000 successfully extracted URLs, platform usage included): https://apify.com/lucarvalho/via-extract - The paid HTTP 200 body is JSON with the result under a top-level `json` key, e.g. `{"json":{"paid":true,"url":"...","title":"...","text":"...","characters":123,"truncated":false,"settlement":{"transaction":"0x...","network":"eip155:8453"}}}`; the receipt is also in the PAYMENT-RESPONSE header. Errors returned before settlement have no `json` key. The MCP tools return the result without the `json` wrapper. ## What agents ask VIA for, and the cheapest way in (live prices, USDC on Base via x402) - Extract text from a web page or PDF URL: `POST /_api/extract_page` `{"url":"https://..."}` — 0.02 (VIA-operated, no commission layer). - Compare products and prices (shopping, "find the cheapest X"): `POST /_api/product_offers` `{"intent":"noise cancelling headphones"}` — 0.01. - Compare APIs and providers ("which API for PDF extraction / weather / email"): `POST /_api/api_compare` `{"intent":"Compare PDF text extraction APIs"}` — 0.01. - Pick a provider or the cheapest API for a task: `POST /_api/provider_selection` or `/_api/find_cheapest_api` — 0.01. - Sourced research and evidence: `POST /_api/research_brief`, `/_api/source_evidence`, `/_api/official_sources_research` — 0.01. Information requests also return `directAnswer` (text, up to 3 cited sources, `basis`, `caveat`): a source-based summary, not a guarantee; no supplier purchase is made. - Buy within a budget (constrained procurement): `POST /_api/buyer_contract` or `/_api/procure_under_budget` — 0.02. - Execute a matching VIA-owned tool via POST /_api/one_call. Unsupported tasks return a refusal without a payment challenge. - Every route returns an HTTP 402 challenge (x402 v2 header and v1 body) with the exact amount before you authorise anything. No account or API key is needed. ## Connect an MCP client (discovery, paid comparison and extraction) - Streamable HTTP endpoint: https://via-router.floot.app/_api/mcp - Protocols: 2025-11-25, 2025-06-18, 2025-03-26. Stateless JSON responses; no session, SSE stream or API key required. - Free tools: via_list_services (optional query) and via_get_service (exact service name). - Paid extraction tool: via_extract_page with {"url":"https://example.com","maxChars":30000,"includeLinks":false}. Costs 0.02 USDC on Base. The MCP x402 PaymentRequired result has isError=true; buyer-authorized payment goes in params._meta["x402/payment"], and the settlement receipt in _meta["x402/payment-response"]. Extraction failure is not settled. - Returns current service descriptions, advertised prices, exact HTTP input schemas and request examples. - Paid tool: via_api_compare with {"intent":"Compare PDF extraction APIs","country":"US","language":"en"}. Costs 0.01 USDC on Base. An x402-compatible MCP client receives the challenge as an isError tool result, obtains buyer approval and retries identical arguments with params._meta["x402/payment"]. The result and _meta["x402/payment-response"] receipt return in the same tool call. The server never signs buyer payments. Free discovery needs no wallet. ## What VIA can route - API and software-service comparison: find a service/API and compare real alternatives. - Commerce/product search: find product offers from connected live catalogs. - Information research: return current sourced information routes. - Travel research: return current sourced travel research routes; booking is separate. - Each standard fulfilled route returns one recommendation plus up to 3 alternatives. ## VIA Intent Exchange - Free feasibility quote: POST https://via-router.floot.app/_api/intent_exchange_quote - Paid federated match: POST https://via-router.floot.app/_api/intent_exchange - Price: $0.10 USDC on Base for a fulfilled paid match. - PayAPI listing verified with a test payment on 20 October 2026: https://payapi.market/api/via-intent-exchange. This is integration verification, not evidence of an organic customer sale. - Input supports a machine-readable Goal Contract: {"intent":"economic goal","market":"auto|services|commerce|information|travel","country":"US","maxBudgetUsd":25,"successCriteria":["objective condition"],"deadline":"RFC3339 date-time","recurrence":"one_time|recurring","preferredCurrency":"USD"} - Extended shortlist: VIA searches existing live markets and sources, applies the optional maximum known supplier-price filter and returns up to eight candidates. The $0.01 standard API comparison returns up to four candidates and is the recommended starting point for ordinary API selection. Neither offer purchases or executes a supplier. Goal-contract fields are returned as context; they do not prove that arbitrary success criteria, deadlines or recurrence were executed. - The buyer describes the goal and constraints once; VIA is designed to map that intent across agent interfaces and economic rails rather than requiring the buyer to choose a protocol. - V1 is federated matching, not a claim that suppliers are bidding. Supplier execution is only claimed where an executable route is explicitly proven. - No matching candidate: no settlement. ## One-Call — VIA-owned execution - Canonical machine integration contract: GET https://via-router.floot.app/_api/gateway (free, reports actual external execution gate). - Node integration client: GET https://via-router.floot.app/_api/gateway_client. Guide: https://via-router.floot.app/gateway-integration.txt. Uses the existing One-Call routes, explicit buyer authorization and a persistent caller-side submission journal; no automatic signing or financial retry. - One-Call does not look up, buy or execute paid external suppliers. - Fast entry: POST https://via-router.floot.app/_api/one_call with JSON {"task":"Compare API prices for PDF text extraction"}. If supported internally, the same endpoint issues its x402 challenge; sign and retry the exact request body with PAYMENT-SIGNATURE. - Free VIA tool quote: POST https://via-router.floot.app/_api/one_call_quote. - Paid request: POST https://via-router.floot.app/_api/one_call with the SAME JSON task; an optional client UUIDv4 orderId is recommended for receipt recovery. VIA-owned tasks may return their own live x402 challenge. - New external supplier execution is unavailable via One-Call. Historical verified internal validation is not a customer sale. - Do not transfer funds manually. Only authorize the exact challenge through a compatible x402 client, and preserve the request body and any supplied orderId on signed retry. - For external Transit status and receipt recovery, submit your own UUIDv4 orderId before authorizing and preserve it on retry. GET https://via-router.floot.app/_api/transit_order?orderId=. An orderId marked provisional in a 402 is not a status lookup ID. Treat the orderId as private. VIA-owned routes currently do not support receipt retrieval via this endpoint. - A 402 is a payment proposal, not a completed purchase. - Legacy paid preflight stays unavailable. Card-funded credit for other VIA tools is separate from One-Call. ## Purpose-built $0.01 USDC agent tools - API/service comparison: POST https://via-router.floot.app/_api/api_compare - Product/commerce search: POST https://via-router.floot.app/_api/product_search - Sourced information research: POST https://via-router.floot.app/_api/sourced_research - Travel research: POST https://via-router.floot.app/_api/travel_research - Each fixes the relevant market automatically and returns one recommendation plus up to 3 alternatives. - No matching result: no settlement. - For a free availability check before paying, POST the same intent to /_api/intent_exchange_quote. Only proceed if satisfiableNow is true. - A compatible x402 wallet must explicitly authorize the payment. HTTP 402 alone is not a sale; repeat the same request with PAYMENT-SIGNATURE after authorization. - VIA does not charge on behalf of a crawler or without a payer authorization. ## Acquisition route — $0.01 USDC - Route task: POST https://via-router.floot.app/_api/route_task - Research brief written by an agent: POST https://via-router.floot.app/_api/research_brief_written - Source evidence: POST https://via-router.floot.app/_api/source_evidence - Agent utilities product offers: POST https://via-router.floot.app/_api/product_offers - Research brief agent work: POST https://via-router.floot.app/_api/research_brief - Provider selection before external spend: POST https://via-router.floot.app/_api/provider_selection - Find cheapest suitable API/software service: POST https://via-router.floot.app/_api/find_cheapest_api - Compare API/software prices: POST https://via-router.floot.app/_api/compare_api_prices - Official/authoritative sources research: POST https://via-router.floot.app/_api/official_sources_research - Web research with sources: POST https://via-router.floot.app/_api/web_research_sources - Product search + price comparison: POST https://via-router.floot.app/_api/product_search_compare - Price: $0.01 USDC on Base. - Built for agent queries such as "provider selection before paying", "provider selection before external spend", "find cheapest API", "compare API prices", "official sources research", "API pricing" and "low cost API". - Returns one recommendation plus alternatives. No matching result: no settlement. ## General entry route - POST https://via-router.floot.app/_api/toll - Price: $0.01 USDC on Base. - Body: {"intent":"plain-language task","market":"auto|services|commerce|information|travel","country":"US","language":"en|pt"} - Live x402 settlement was validated in production by VIA's own internal test; that is not an organic customer sale. ## Buyer Contract — constrained procurement - Free preflight: POST https://via-router.floot.app/_api/buyer_contract_quote — returns satisfiableNow + qualifying candidate count, withholding candidate identities/details. - Paid contract: POST https://via-router.floot.app/_api/buyer_contract - Literal budget route for agent matching: POST https://via-router.floot.app/_api/procure_under_budget - Price: $0.02 USDC on Base for paid execution. - Buyer declares objective constraints before authorization: maximum known USD supplier price, minimum alternatives, allowed upstream sources, and/or require-known-price. - VIA settles only if the returned shortlist passes every declared constraint. - Success returns a machine-readable PASS receipt with observed values. - If the contract cannot be satisfied: HTTP 422 and no settlement. - V1 supports services and commerce only; VIA does not claim subjective quality or supplier verification it cannot prove. ## Deep Route - POST https://via-router.floot.app/_api/deep_route - Price: $1.00 USDC on Base. - Premium buyer-side decision route: evaluates up to 8 real candidates and returns a decision brief, selection rationale and explicit watchouts. - Payment settles only after matching candidates and decision analysis are successfully prepared. ## Prepaid credits - Cryptocurrency-based credit-pack purchases remain disabled. Card-funded standard VIA credit checkout is enabled at /credits when Stripe payment readiness passes; credits are issued only after confirmed payment. ## Card-funded agent credit (no crypto wallet) - Customer entry: https://useviaapi.com/credits. In tools-only mode, sign in and add credit by card from 5 USD. The amount credited and any card fee are shown before payment. No subscription; purchased credit does not expire. Do not offer automatic recharge, bank transfer or USDC credit packs while `topupOffer` is `tools`. Check the live allowed methods and limits before describing any other payment route. - Before sending a buyer to checkout, GET https://via-router.floot.app/_api/credits_status without credentials to check `checkoutEnabled`, `minAmountCents`, `maxAmountCents`, `currency` and `routePriceUsd`. This lookup is free and creates no checkout. - A standard comparison costs 0.01 USD, debited only when its result is durably saved. When available, AI inference is billed per token at the prices listed by GET /_api/v1/models (USD per million input / output tokens; a minimum per request only where a model lists one). This credit does not fund external suppliers, Deep, Intent Exchange or Buyer Contract. - POST https://via-router.floot.app/_api/api_compare or /_api/credits_route with JSON {"intent":"Find a PDF text extraction API","country":"US","language":"en"}; headers Content-Type: application/json and Authorization: Bearer YOUR_PRIVATE_KEY (or x-credit-token: YOUR_PRIVATE_KEY). Idempotency-Key is optional. - Without an Idempotency-Key, VIA derives one from key and input: an identical retry after a connection failure returns the saved answer without another debit. To repeat the same input as a new purchase, send a new UUID. A UUID reused with changed input returns409. - The same credit also pays VIA Extract (0.02 USD) and Web Text Lite (0.001 USD) on /_api/extract_page and /_api/extract_web_lite; failed extraction deducts nothing. - GET /_api/credits_balance with x-credit-token returns available balance and expiry. Never put the private key in a URL, public repository or trace. - HTTP402 without a token remains the normal x402 quote. Card credit is a separate alternative, not an automatic conversion from another asset. No credit is issued merely by returning from Checkout.