Public accessLive inference and wallet funding are available. Serving supply details remain private.View status

Infer API · live

One API. Four price options.

Infer provides one Responses-compatible API with private supply, locked prices, spending limits, a prepaid balance, and clear receipts.

Client evidence

The compatibility record covers exact Codex CLI and OpenCode versions plus receipt-backed live requests for Pydantic AI, LangChain OpenAI, and the Vercel AI SDK, while keeping setup, protocol observations, and current availability separate.

Machine-readable contract

The reviewed OpenAPI 3.1 description covers the public catalog and status resources plus the authenticated model and Responses endpoints. Its publication is not a route-availability signal.

Base URL

https://infer.flow7.org/v1

Quickstart

Go from a new account to the first API request:

  1. Create an account, then confirm the one-time verification link sent by Infer.
  2. Open Wallet and add at least $20 of wallet credit through checkout.
  3. Open API keys, create an API key, and copy it when shown. Set the copied value as INFER_API_KEY in your local shell or secret manager; never put it in a URL, repository, or chat.
  4. Send the Responses request below. The selected model must show as available on current status.
curl https://infer.flow7.org/v1/responses \
  -H "Authorization: Bearer $INFER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: first-request" \
  -d '{
    "model": "infer/claude-haiku-4-5:balanced",
    "input": "Create a typed retry helper with exponential backoff.",
    "max_output_tokens": 1200,
    "relay": {
      "session_id": "repo-acme-42",
      "privacy": "standard"
    }
  }'

Price options

Price optionModel suffixBest for
Low cost:low-costFlexible and background work
Balanced:balancedMost everyday work
Stable:stableContinuity through a redundancy-oriented route pool
Official API:officialThe model lab’s first-party API endpoint at 1.25× supplier cost

The customer-facing options are Low cost, Balanced, Stable, and Official API. Their API suffixes are :low-cost, :balanced, :stable, and :official. Official API is available only when an exact first-party route has passed verification.

Model IDs

A model ID combines the model name and price option. Exact model IDs stay within that model family. Dynamic model IDs return the model that actually ran in the response metadata.

Model IDTypePrice option
infer/claude-haiku-4-5:balancedExact familyBalanced
infer/kimi-k3:balancedExact familyBalanced
infer/auto/code:stableDynamicStable
infer/deepseek-v4-flash:balancedExact familyBalanced

Responses API

Infer returns the normal model response plus the selected price option, final charge, token usage, and receipt under relay. The serving supply identity is never returned.

{
  "id": "resp_…",
  "object": "response",
  "status": "completed",
  "model": "infer/gpt-5.6-terra:balanced",
  "output_text": "…",
  "usage": {
    "input_tokens": 8240,
    "input_tokens_details": {"cached_tokens": 7100},
    "output_tokens": 932
  },
  "relay": {
    "receipt_id": "rcpt_…",
    "price_version": "pv_…",
    "tier": "balanced",
    "resolved_model_class": "GPT-5.6 Terra",
    "cache_status": "partial",
    "environment": "live",
    "provider_disclosed": false,
    "customer_cost_usd": 0.004992
  }
}

How requests are routed

Billing and receipts

Customers fund a prepaid Infer service-credit wallet through secure checkout with no separate Infer checkout fee. The first funding minimum is $20 and later reloads are $50. Applicable tax may be added separately. Wallet credit becomes available only after payment is confirmed. Before a request starts, Infer temporarily holds the maximum estimated cost. After it finishes, Infer charges the actual amount and immediately returns the rest to the wallet. Inspect a completed receipt locally.

FieldMeaning
input_tokensTotal input processed
cached_input_tokensInput granted a valid cache discount
output_tokensGenerated output
price_versionInternal ID for the price used by the request
customer_cost_usdFinal charge

Errors

CodeMeaning
invalid_api_keyMissing, revoked, or invalid key
insufficient_creditsThe wallet cannot cover the estimated request cost
capacity_unavailableNo working route supports the selected option
request_in_progressThe idempotency key is already active
request_failed_use_new_idempotency_keyThe prior operation failed; retry the operation with a new idempotency key
upstream_unavailableAvailable routes failed before the request completed