{
  "service": "BlockRun API",
  "version": "1.0.0",
  "baseUrl": "https://api.blockrun.ai/v1",
  "product": "BlockRun is the routing and payment layer for AI. One OpenAI-compatible endpoint routes to 100+ LLMs plus image, video, music and speech generation, web search, prediction-market and on-chain data, and multi-chain RPC. This host is the account-balance entry point: authenticate with an API key and pay from a BlockRun account funded by card or wire \u2014 no wallet signature per call. The same services are also sold per call in USDC over x402 at blockrun.ai (Base), sol.blockrun.ai (Solana) and arc.blockrun.ai (Arc).",
  "payment": {
    "method": "account balance",
    "auth": "Authorization: Bearer <api key>",
    "fund": "https://user.blockrun.ai/dashboard/credits",
    "alternatives": {
      "x402": [
        "https://blockrun.ai",
        "https://sol.blockrun.ai",
        "https://arc.blockrun.ai"
      ]
    }
  },
  "endpoints": {
    "free": [
      {
        "method": "GET",
        "path": "/v1/models",
        "resource": "https://api.blockrun.ai/v1/models",
        "description": "Live model catalog with per-token prices."
      },
      {
        "method": "GET",
        "path": "/v1/images/models",
        "resource": "https://api.blockrun.ai/v1/images/models",
        "description": "Image/video model catalog with per-call prices."
      },
      {
        "method": "GET",
        "path": "/v1/images",
        "resource": "https://api.blockrun.ai/v1/images",
        "description": "Account-owned image request history with cursor pagination. API key required; free and read-only. No legacy import."
      },
      {
        "method": "GET",
        "path": "/v1/usage",
        "resource": "https://api.blockrun.ai/v1/usage",
        "description": "One row per request over a window."
      },
      {
        "method": "GET",
        "path": "/v1/usage/summary",
        "resource": "https://api.blockrun.ai/v1/usage/summary",
        "description": "Totals over a window: per day, model, endpoint, key."
      },
      {
        "method": "GET",
        "path": "/v1/balance",
        "resource": "https://api.blockrun.ai/v1/balance",
        "description": "Available balance, recorded spend, open reservations."
      },
      {
        "method": "GET",
        "path": "/v1/credits",
        "resource": "https://api.blockrun.ai/v1/credits",
        "description": "Balance; also OpenRouter's GET /credits body (data.total_credits, data.total_usage)."
      },
      {
        "method": "GET",
        "path": "/v1/key",
        "resource": "https://api.blockrun.ai/v1/key",
        "description": "This key's spend today, this week, this month and lifetime, plus the account's limits, in OpenRouter's GET /key shape."
      },
      {
        "method": "GET",
        "path": "/v1/activity",
        "resource": "https://api.blockrun.ai/v1/activity",
        "description": "Spend per UTC day and model for the last 30 completed days, in OpenRouter's GET /activity shape."
      },
      {
        "method": "GET",
        "path": "/v1/generation",
        "resource": "https://api.blockrun.ai/v1/generation",
        "description": "One call's cost and tokens by response id or x-blockrun-request-id, in OpenRouter's GET /generation shape."
      }
    ],
    "paid": [
      {
        "method": "POST",
        "path": "/v1/models/{model}:generateContent",
        "resource": "https://api.blockrun.ai/v1/models/{model}:generateContent",
        "description": "Gemini native JSON, including Argon long decode. Preserves continuationToken; resend the original request with the token to continue. Full usageMetadata retained for billing audits.",
        "billing": "per token per hop, including thinking and cached tokens",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/chat/completions",
        "resource": "https://api.blockrun.ai/v1/chat/completions",
        "description": "OpenAI Chat Completions for every model; streaming and tools.",
        "billing": "per token",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/messages",
        "resource": "https://api.blockrun.ai/v1/messages",
        "description": "Anthropic Messages, native envelopes.",
        "billing": "per token",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/responses",
        "resource": "https://api.blockrun.ai/v1/responses",
        "description": "OpenAI Responses API.",
        "billing": "per token",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/images/generations",
        "resource": "https://api.blockrun.ai/v1/images/generations",
        "description": "Image generation.",
        "billing": "per image",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/images/edits",
        "resource": "https://api.blockrun.ai/v1/images/edits",
        "description": "SDK-compatible image editing. On HTTP 202, poll the returned poll_url with the same key.",
        "billing": "per token for GPT Image; per image otherwise",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/videos/generations",
        "resource": "https://api.blockrun.ai/v1/videos/generations",
        "description": "Video generation; returns a poll_url to use verbatim. Reference video/audio clips add a per-clip surcharge; the 202 body's price.amount is the exact quote.",
        "billing": "per second plus a per-clip reference-media surcharge",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/audio/speech",
        "resource": "https://api.blockrun.ai/v1/audio/speech",
        "description": "Text to speech.",
        "billing": "per character",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/search",
        "resource": "https://api.blockrun.ai/v1/search",
        "description": "Live web / news / X search.",
        "billing": "flat per call",
        "priceSheet": "https://api.blockrun.ai/v1/models"
      },
      {
        "method": "POST",
        "path": "/v1/decisions",
        "resource": "https://api.blockrun.ai/v1/decisions",
        "description": "Typed judgments for agents (predicate, choice, score) over text or images, with probabilities. OpenAI Decisions API compatible, model gpt-6-luna. Billed from credit on the input tokens OpenAI reports, at the gpt-6-luna input price ($0.10 per million) plus your account margin; a call that is not answered is not charged.",
        "billing": "per input token"
      },
      {
        "method": "POST",
        "path": "/v1/decide",
        "resource": "https://api.blockrun.ai/v1/decide",
        "description": "The same judgments in System One's wire format (noul, choice, score over text or JSON state), kept for existing callers. Billed exactly like /v1/decisions.",
        "billing": "per input token"
      }
    ]
  },
  "links": {
    "llms": "https://api.blockrun.ai/llms.txt",
    "llmsFull": "https://api.blockrun.ai/llms-full.txt",
    "openapi": "https://api.blockrun.ai/openapi.json",
    "agentCard": "https://api.blockrun.ai/.well-known/agent-card.json",
    "discovery": "https://api.blockrun.ai/discovery",
    "models": "https://api.blockrun.ai/v1/models",
    "pricing": "https://blockrun.ai/api/pricing",
    "signup": "https://user.blockrun.ai",
    "keys": "https://user.blockrun.ai/dashboard/keys",
    "x402Gateways": [
      "https://blockrun.ai",
      "https://sol.blockrun.ai",
      "https://arc.blockrun.ai"
    ],
    "contact": "mailto:hello@blockrun.ai"
  }
}
