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 CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BlockRun LLM SDK (Python)

Python SDK for <!-- br:models.chatVisible -->97<!-- /br:models.chatVisible --> LLMs plus image/video/music/speech generation, standalone search, multi-chain RPC, free market data (crypto / FX / commodity daily closes), and typed judgments (`decisions()`) — paid two ways: a BlockRun API key drawing on prepaid account credit, or USDC micropayments via x402 where the wallet signature is the authentication and the key never leaves your machine.
Python SDK for <!-- br:models.chatVisible -->93<!-- /br:models.chatVisible --> LLMs plus image/video/music/speech generation, standalone search, multi-chain RPC, free market data (crypto / FX / commodity daily closes), and typed judgments (`decisions()`) — paid two ways: a BlockRun API key drawing on prepaid account credit, or USDC micropayments via x402 where the wallet signature is the authentication and the key never leaves your machine.

## Commands

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# BlockRun LLM SDK (Python)

> **blockrun-llm** is a Python SDK for accessing <!-- br:models.chatVisible -->97<!-- /br:models.chatVisible --> large language models (GPT-6, GPT-5.x, Claude 5.x, Gemini 4 / 3.x, DeepSeek, Grok 4.x, GLM, MiniMax, Moonshot and more) plus image / video / music generation, Grok Live Search, prediction-market data (Predexon), Exa neural web search, and free crypto / FX / commodity price data (daily closes). Paid calls are billed per request — no subscription, no seats, no minimum. Built for AI agents that need to operate autonomously.
> **blockrun-llm** is a Python SDK for accessing <!-- br:models.chatVisible -->93<!-- /br:models.chatVisible --> large language models (GPT-6, GPT-5.x, Claude 5.x, Gemini 4 / 3.x, DeepSeek, Grok 4.x, GLM, MiniMax, Moonshot and more) plus image / video / music generation, Grok Live Search, prediction-market data (Predexon), Exa neural web search, and free crypto / FX / commodity price data (daily closes). Paid calls are billed per request — no subscription, no seats, no minimum. Built for AI agents that need to operate autonomously.
>
> **Two ways to pay, same SDK, same catalogue.** Sign up at
> **[user.blockrun.ai](https://user.blockrun.ai)** for an API key and prepaid
> credit (top up with a card), or hold USDC in your own wallet and let each
> request settle itself over x402 — on **Solana or Base**. Every client takes
> either credential in the same first argument.
>
> 🆓 **Includes <!-- br:models.free -->9<!-- /br:models.free --> free models** — Nemotron 3.5 Lightning (1M context), Nemotron 3 Ultra 550B, MiniMax M3.1 Flash (1M context), Nemotron 3 Nano Omni, Nemotron 3.5 Bolt (vision) and Poolside Laguna XS 2.1. Zero USDC, no rate-limit gimmicks. Use `routing_profile="free"` or pin one of the models listed under [Try It Free](#try-it-free-no-balance-required).
> 🆓 **Includes <!-- br:models.free -->8<!-- /br:models.free --> free models** — Nemotron 3.5 Lightning (1M context), Nemotron 3 Ultra 550B, MiniMax M3.1 Flash (1M context), Nemotron 3 Nano Omni, Nemotron 3.5 Bolt (vision) and Poolside Laguna XS 2.1. Zero USDC, no rate-limit gimmicks. Use `routing_profile="free"` or pin one of the models listed under [Try It Free](#try-it-free-no-balance-required).

[![PyPI](https://img.shields.io/pypi/v/blockrun-llm.svg)](https://pypi.org/project/blockrun-llm/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
Expand Down Expand Up @@ -691,7 +691,7 @@ only ranks what `/v1/models` lists.

### Free Tier

The <!-- br:models.free -->9<!-- /br:models.free --> free models are listed under
The <!-- br:models.free -->8<!-- /br:models.free --> free models are listed under
[Try It Free](#try-it-free-no-balance-required). Pin them by full model id, or
use `routing_profile="free"`.

Expand Down Expand Up @@ -2068,7 +2068,7 @@ The `AnthropicClient` wraps `anthropic.Anthropic` with a custom httpx transport
## Frequently Asked Questions

### What is blockrun-llm?
blockrun-llm is a Python SDK that provides pay-per-request access to <!-- br:models.chatVisible -->97<!-- /br:models.chatVisible --> large language models from OpenAI, Anthropic, Google, DeepSeek, NVIDIA, ZAI, and more. Pay with a BlockRun API key (prepaid credit from [user.blockrun.ai](https://user.blockrun.ai)) or with automatic x402 USDC micropayments from your own wallet — no subscriptions, no vendor lock-in.
blockrun-llm is a Python SDK that provides pay-per-request access to <!-- br:models.chatVisible -->93<!-- /br:models.chatVisible --> large language models from OpenAI, Anthropic, Google, DeepSeek, NVIDIA, ZAI, and more. Pay with a BlockRun API key (prepaid credit from [user.blockrun.ai](https://user.blockrun.ai)) or with automatic x402 USDC micropayments from your own wallet — no subscriptions, no vendor lock-in.

### How does payment work?
When you make an API call, the SDK automatically handles x402 payment. It signs a USDC transaction locally using your wallet private key (which never leaves your machine), and includes the payment proof in the request header. Settlement is non-custodial and instant on Base or Solana.
Expand All @@ -2077,7 +2077,7 @@ When you make an API call, the SDK automatically handles x402 payment. It signs
Router Core is BlockRun's built-in routing engine — shared with the TypeScript SDK and the gateway, so the same request routes the same way everywhere. It scores your request across <!-- br:clawrouter.dimensions -->15<!-- /br:clawrouter.dimensions --> dimensions, drops every model that can't actually handle it (context, output length, tools, vision), then picks the cheapest capable one and keeps the rest as a fallback chain. Routing happens locally in under 1ms and makes no extra model call. It can save up to <!-- br:savings.autoVsBaselinePct -->84<!-- /br:savings.autoVsBaselinePct -->% on LLM costs compared to using premium models for every request.

### How much does it cost?
Pay only for what you use. Prices start at **FREE** (<!-- br:models.free -->9<!-- /br:models.free --> free models). Live per-model prices are at [blockrun.ai/pricing](https://blockrun.ai/pricing). There are no minimums, subscriptions, or monthly fees. $5 in USDC gets you thousands of requests.
Pay only for what you use. Prices start at **FREE** (<!-- br:models.free -->8<!-- /br:models.free --> free models). Live per-model prices are at [blockrun.ai/pricing](https://blockrun.ai/pricing). There are no minimums, subscriptions, or monthly fees. $5 in USDC gets you thousands of requests.

### Can I use it with Solana?
Yes. Install with `pip install blockrun-llm[solana]` and use `SolanaLLMClient` instead of `LLMClient`. Same API, different payment chain.
Expand Down
16 changes: 11 additions & 5 deletions brand-numbers.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"$schema": "https://blockrun.ai/brand/numbers.schema.json",
"version": 1,
"models": {
"chatVisible": 97,
"totalVisible": 125,
"free": 9,
"freeWithheld": 29,
"chatVisible": 93,
"totalVisible": 121,
"free": 8,
"freeWithheld": 30,
"image": 14,
"video": 7,
"music": 1,
"speech": 5,
"soundfx": 1,
"withFallback": 33,
"withFallback": 32,
"withFallbackAllEntries": 73
},
"clawrouter": {
Expand All @@ -29,6 +29,12 @@
"chains": {
"rpc": 40
},
"onchainStocks": {
"solana": 23,
"base": 38,
"both": 18,
"total": 43
},
"agentPayments": {
"rank": 1,
"windowDays": 30,
Expand Down
Loading