Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ECOSYSTEM.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BlockRun is a unified API gateway — pay per request with USDC, no API keys nee

| Product | Endpoint | Pricing | Status |
|---------|----------|---------|--------|
| **LLM Chat** | `/v1/chat/completions` | Per token — provider cost, no platform margin, + $0.001/request | ✅ Live |
| **LLM Chat** | `/v1/chat/completions` | Per token — vendor list price + 5% platform fee, + $0.001/request | ✅ Live |
| **Anthropic-Compat** | `/v1/messages` | Per token + $0.001/request | ✅ Live |
| **Responses API** | `/v1/responses` | Per token + $0.001/request | ✅ Live |
| **Image Generation** | `/v1/images/generations` | $0.015–0.15/image | ✅ Live |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Account API and wallet gateways have separate authentication and billing:
| **Polygon / Arbitrum / Optimism / Unichain** | `nano.blockrun.ai` | USDC via Circle Gateway (gas-free, batched) | ✅ Live |
| **Base Sepolia** | `testnet.blockrun.ai` | USDC (testnet) | ✅ Testnet |

**Payment protocol:** x402 (HTTP 402 "Payment Required") — wallet signs payment, no accounts or API keys needed. Per-token chat carries no platform margin — only a flat $0.001 transaction fee per request; media generation and Live Search carry 5%.
**Payment protocol:** x402 (HTTP 402 "Payment Required") — wallet signs payment, no accounts or API keys needed. Per-token chat is billed at the vendor's list price plus a 5% platform fee, then a flat $0.001 transaction fee per request; media generation and Live Search carry 5%.

**Account registration is open:** [user.blockrun.ai](https://user.blockrun.ai). Manage [API keys](https://user.blockrun.ai/dashboard/keys) and [credits](https://user.blockrun.ai/dashboard/credits) in the dashboard. See the dashboard for account pricing and usage.

Expand Down Expand Up @@ -468,7 +468,7 @@ BlockRun is agent-native — it supports account API keys as well as wallet sign
The x402 protocol is an HTTP-native payment standard based on HTTP status code 402 ("Payment Required"). It allows any HTTP request to include a cryptographic USDC payment, enabling machine-to-machine payments without accounts, credit cards, or identity verification. BlockRun is a leading implementation of x402.

### How much does BlockRun cost?
BlockRun uses pay-per-request pricing with no subscriptions. Per-token chat is billed at provider cost with no platform margin — only a flat $0.001 transaction fee is added per request; media generation and Live Search carry a 5% margin. Prices start at $0.002 per request for the cheapest data endpoints. $5 in USDC is enough for thousands of requests.
BlockRun uses pay-per-request pricing with no subscriptions. Per-token chat is billed at the vendor's list price plus a 5% platform fee, then a flat $0.001 transaction fee per request; media generation and Live Search carry a 5% margin. Prices start at $0.002 per request for the cheapest data endpoints. $5 in USDC is enough for thousands of requests.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Ask for an LLM completion, an image, a market quote, a swap. Your client signs a
:::

:::step{title="Pay per call"}
Per-token chat is billed at provider cost with no platform margin, plus a flat $0.001 transaction fee; media generation and Live Search carry 5%. The 402 quotes input plus output at your `max_tokens`. An `exact` payment settles that quote, so set `max_tokens` to what you need. Pay with `upto` (Base) or batch settlement (Solana) and you are charged only the tokens produced. No monthly bill, no seats, no minimums.
Per-token chat is billed at the vendor's list price plus a 5% platform fee, then a flat $0.001 transaction fee; media generation and Live Search carry 5%. The 402 quotes input plus output at your `max_tokens`. An `exact` payment settles that quote, so set `max_tokens` to what you need. Pay with `upto` (Base) or batch settlement (Solana) and you are charged only the tokens produced. No monthly bill, no seats, no minimums.
:::

::::
Expand Down
6 changes: 3 additions & 3 deletions docs/api-reference/models.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Models
description: List and price 125 models — chat, image, video, music and speech — from one BlockRun API — provider rates, no margin on chat tokens, $0.001 per call.
description: List and price 125 models — chat, image, video, music and speech — from one BlockRun API — vendor list prices, a 5% platform fee on chat, $0.001 per call.
---

# Models
Expand Down Expand Up @@ -71,7 +71,7 @@ Only models that are currently available are returned. Chat rows also carry `ava
**93 chat / LLM models** are publicly listed on mainnet, plus **14 image**, **7 video**, **1 music**, **5 text-to-speech**, and **1 sound-effects** model — covering chat, image, video, music, speech, and sound-effects generation from one API. Additional deprecated / superseded LLM IDs remain routable for backwards compatibility but are hidden from the catalog. The catalog also carries one `judgment` row, `openai/gpt-6-luna-decisions`, for the [Decisions](decisions.md) endpoint. Call `GET /api/v1/models` for the exact live list.
:::

All prices shown are provider rates — and, for per-token chat, also the billed rates: BlockRun adds **no platform margin** on chat tokens, only the flat $0.001/request transaction fee. Media carries a 5% platform margin; Live Search is a flat per-call price (see [Search](search.md)).
All prices shown are the vendor's list rates. Per-token chat paid per call adds a **5% platform fee** on the token amount, then the flat $0.001/request transaction fee. Media carries a 5% platform margin; Live Search is a flat per-call price (see [Search](search.md)).

### OpenAI GPT-6 Family

Expand Down Expand Up @@ -389,7 +389,7 @@ Prices are per 1 million tokens. Your actual cost depends on:

1. **Input tokens** - Length of your prompt and context
2. **Output tokens** - Length of the model's response
3. **Transaction fee** - a flat $0.001 per request; chat tokens carry no platform margin (media and Live Search carry 5%)
3. **Transaction fee** - a flat $0.001 per request; per-token chat also carries a 5% platform fee (media and Live Search carry 5%)

The SDK calculates the exact price before each request.

Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ All paid OpenAI models: GPT-5.x (including `-pro` tiers), o-series, and the code

Identical to Chat Completions: send the request without payment, receive a `402` with a USDC quote, sign the x402 authorization, and resend with the `PAYMENT-SIGNATURE` header. The [SDKs](../getting-started/sdk-developers.md) handle this automatically.

The 402 quotes input plus output at your `max_output_tokens` (the model's `max_output` when you send none), at the model's list rates (per-token chat carries no platform margin), floored at $0.001, plus the flat **$0.001 transaction fee**, so the smallest possible charge is $0.002. An `exact` payment settles that quote, so set `max_output_tokens` to what you need: `gpt-5.2` with a one-word input and no `max_output_tokens` is quoted for its full 128,000-token maximum, $1.793030. The `402` body uses the OpenAI error envelope. This is the live quote for the first example below (`gpt-5.2`, 200 `max_output_tokens`):
The 402 quotes input plus output at your `max_output_tokens` (the model's `max_output` when you send none), at the model's list rates plus the 5% platform fee, floored at $0.001, plus the flat **$0.001 transaction fee**, so the smallest possible charge is $0.002. An `exact` payment settles that quote, so set `max_output_tokens` to what you need: `gpt-5.2` with a one-word input and no `max_output_tokens` is quoted for its full 128,000-token maximum, $1.882632. The `402` body uses the OpenAI error envelope. This is the live quote for the first example below (`gpt-5.2`, 200 `max_output_tokens`):

```json
{
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/claude-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Full list in [Skills](../mcp/skills.md). [Trading](../products/trading/overview.

## Pricing

- **Intelligence:** Provider cost, no platform margin on chat tokens, plus $0.001 per request (no subscriptions)
- **Intelligence:** Vendor list price plus a 5% platform fee on chat tokens, plus $0.001 per request (no subscriptions)
- **Images:** from about $0.017 per image
- **Free tier:** `mode:"free"` chat, DEX data, crypto/FX/commodity prices, model list, Polymarket reads — $0
- **Trading tools:** Built into Franklin, free and open source — you pay only for the data they buy
Expand Down
2 changes: 1 addition & 1 deletion docs/mcp/blockrun-mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ claude mcp remove blockrun -s user

## Pricing

- **Intelligence:** Provider cost, no platform margin on chat tokens, plus $0.001 per request
- **Intelligence:** Vendor list price plus a 5% platform fee on chat tokens, plus $0.001 per request
- **Images:** from about $0.017 per image (`zai/cogview-4`) — see [Image Generation](../api-reference/image-generation.md) for every model
- **Free tier:** `blockrun_chat mode:"free"`, `blockrun_dex`, crypto/FX/commodity `blockrun_price`, `blockrun_models`, `blockrun_polymarket_read`, and `blockrun_speech action:"voices"` cost $0
- **No subscriptions, no minimums**
Expand Down
2 changes: 1 addition & 1 deletion docs/products/franklin.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Franklin is the AI agent with a wallet. It writes code and spends U
**Source:** [github.com/BlockRunAI/Franklin](https://github.com/BlockRunAI/Franklin) · [npm: @blockrun/franklin](https://www.npmjs.com/package/@blockrun/franklin) · Apache-2.0 · current npm release **3.49.27** (2026-11-10)

:::tip{title="YOPO — You Only Pay Outcome"}
Not a subscription (pay for access), not generic pay-per-call (pay for trying). You set an outcome and a budget; Franklin decides what to call, what to pay for, and when to stop. Provider rates plus a flat $0.001 per request (no margin on chat tokens; media generation and Live Search carry 5%), settled per action in USDC — no monthly fees, no rate limits, and no overdraft: when the wallet is empty, Franklin stops.
Not a subscription (pay for access), not generic pay-per-call (pay for trying). You set an outcome and a budget; Franklin decides what to call, what to pay for, and when to stop. Vendor list rates plus a 5% platform fee on chat tokens and a flat $0.001 per request (media generation and Live Search carry 5%), settled per action in USDC — no monthly fees, no rate limits, and no overdraft: when the wallet is empty, Franklin stops.
:::

## Quick start
Expand Down
4 changes: 2 additions & 2 deletions docs/products/intelligence/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ No API keys. No monthly bills. Just usage-based payments in USDC.

## Available Models

Provider rates per 1M tokens. Since 2026-08-07 these are also the BILLED rates — per-token chat carries no platform margin; only the flat $0.001/request transaction fee is added. See [Pricing](pricing.md).
Vendor list rates per 1M tokens. Per-token chat paid per call adds a 5% platform fee (since 2026-11-18), then the flat $0.001/request transaction fee. See [Pricing](pricing.md).

### OpenAI
| Model | Input | Output |
Expand Down Expand Up @@ -116,7 +116,7 @@ See [Pricing](pricing.md) for complete list and calculator.
## Pricing Model

```
Your cost = Provider cost (no platform margin on chat tokens) + $0.001 per request
Your cost = Vendor list price × 1.05 (5% platform fee on chat tokens) + $0.001 per request
```

The 402 quotes input plus output at your `max_tokens`. An `exact` payment settles that quote, so set `max_tokens` to what you need. Pay with `upto` (Base) or batch settlement (Solana) and you are charged only the tokens produced.
Expand Down
2 changes: 1 addition & 1 deletion docs/products/trading/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Earlier versions of these pages documented `alpha-mcp`, a standalone MCP server.

- Signals and crypto / FX / commodity prices: free
- Prediction-market data, on-chain RPC, web search: paid per call from the agent wallet — the tool descriptions show the per-call price before Franklin calls them
- Model calls: provider cost, no platform margin, plus $0.001 per request
- Model calls: vendor list price plus a 5% platform fee, plus $0.001 per request
- Polymarket bets: your own funds on Polygon, plus network fees — bets do **not** draw from the `--max-spend` AI budget

## Quick Start
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Projects, integrations, and partners building with BlockRun and x402. Every row

| Product | Endpoint | Pricing | Status |
|---------|----------|---------|--------|
| **LLM Chat** | `/api/v1/chat/completions` | Per token (provider cost, no platform margin) + $0.001/request | ✅ Live |
| **LLM Chat** | `/api/v1/chat/completions` | Per token (vendor list price + 5% platform fee) + $0.001/request | ✅ Live |
| **Anthropic-Compat** | `/api/v1/messages` | Per token + $0.001/request | ✅ Live |
| **Responses API** | `/api/v1/responses` | Per token + $0.001/request | ✅ Live |
| **Image Generation** | `/api/v1/images/generations` | from about $0.017/image | ✅ Live |
Expand Down Expand Up @@ -110,7 +110,7 @@ Projects, integrations, and partners building with BlockRun and x402. Every row
| **Pricing** | `/api/pricing` | Free | ✅ Live |
| **Balance** | `/api/v1/balance` | Free | ✅ Live |

Per-token chat carries **no platform margin** — only the flat $0.001 transaction fee. Media generation and Live Search carry 5%. See [Pricing](../products/intelligence/pricing.md) and the full [x402 endpoint catalog](../x402/endpoints.md).
Per-token chat carries a **5% platform fee** on the vendor's list price, then the flat $0.001 transaction fee. Media generation and Live Search carry 5%. See [Pricing](../products/intelligence/pricing.md) and the full [x402 endpoint catalog](../x402/endpoints.md).

## Framework Integrations

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BlockRun is economic infrastructure for AI agents. It provides:

- **Trading (Franklin):** Free and open source — you pay only for the market data and models the tools use
- **Creation:** Pay-per-use — images from about $0.017, video from $0.05/sec, music $0.20/track, text-to-speech $0.0525–0.105 per 1k chars (Seed Audio $0.003 per second of audio)
- **Intelligence:** Provider cost with **no platform margin** on per-token chat (since 2026-08-07) — only a flat $0.001 transaction fee per request. Media generation and Live Search carry 5%.
- **Intelligence:** Vendor list price plus a **5% platform fee** on per-token chat (since 2026-11-18), then a flat $0.001 transaction fee per request. Media generation and Live Search carry 5%.
- **Free tier:** 9 free chat, reasoning and vision models with no per-token charge

## Products
Expand Down Expand Up @@ -115,7 +115,7 @@ No. Franklin's trading tools are free and open source. You pay only for the paid

### Is there a per-request fee?

Yes — a flat $0.001 transaction fee on every paid call, which covers on-chain settlement. That is the only thing added on top of provider cost for chat; there is no percentage margin on tokens.
Yes — a flat $0.001 transaction fee on every paid call, which covers on-chain settlement, and on per-token chat a 5% platform fee on the vendor's list price.

## Technical

Expand Down
2 changes: 1 addition & 1 deletion docs/x402/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The same paths are available on each gateway. The 402 response advertises which

All live gateways implement [x402 v2](https://x402.org). Facilitators: Coinbase CDP for Base, PayAI for Solana, Circle Gateway for `nano.blockrun.ai`.

Per-token chat (`/chat/completions`, `/messages`, `/responses`) is billed at provider cost with **no platform margin** — only the flat **$0.001 / request** transaction fee is added. Media generation carries a 5% margin; Live Search is a flat $0.08 per call. Flat prices quoted below already include the transaction fee; per-unit rates (per 1k characters, per second) are shown with the fee separately.
Per-token chat (`/chat/completions`, `/messages`, `/responses`) is billed at the vendor's list price plus a **5% platform fee**, then the flat **$0.001 / request** transaction fee. Media generation carries a 5% margin; Live Search is a flat $0.08 per call. Flat prices quoted below already include the transaction fee; per-unit rates (per 1k characters, per second) are shown with the fee separately.

## Discovery

Expand Down
2 changes: 1 addition & 1 deletion docs/x402/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ When you make a request without payment, the server returns HTTP 402 with:

The requirements are base64-encoded in three equivalent headers — `PAYMENT-REQUIRED` (x402 v2), `X-Payment-Required`, and `WWW-Authenticate: X402 requirements="…"` — and the JSON body repeats the price as `price.amount` in USD, plus the challenge itself (`x402Version`, `accepts`) mirrored at the top level for clients that only read the body.

On BlockRun chat is priced at the model's list rate with no platform margin, plus a flat **$0.001 transaction fee** per paid call. The 402 quotes input plus output at your `max_tokens` (8192 when you send none). An `exact` payment settles that quote, so set `max_tokens` to what you need. Pay with `upto` (Base) or batch settlement (Solana) and you are charged only the tokens produced. Media generation (image, video, music, speech) carries a 5% margin on top of its list rate, plus the same fee; Live Search is a flat $0.08 per call plus the fee.
On BlockRun chat is priced at the model's list rate plus a 5% platform fee, then a flat **$0.001 transaction fee** per paid call. The 402 quotes input plus output at your `max_tokens` (8192 when you send none). An `exact` payment settles that quote, so set `max_tokens` to what you need. Pay with `upto` (Base) or batch settlement (Solana) and you are charged only the tokens produced. Media generation (image, video, music, speech) carries a 5% margin on top of its list rate, plus the same fee; Live Search is a flat $0.08 per call plus the fee.

### Payment Authorization

Expand Down
Loading