o4-mini
openai/o4-mini
Latest generation efficient reasoning model
Code Examples
from blockrun_llm import LLMClient
client = LLMClient() # Uses BLOCKRUN_WALLET_KEY (never sent to server)
response = client.chat("openai/o4-mini", "Hello!")import { LLMClient } from '@blockrun/llm';
const client = new LLMClient(); // Uses BLOCKRUN_WALLET_KEY (never sent to server)
const response = await client.chat('openai/o4-mini', 'Hello!');curl -X POST https://blockrun.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: <payment_header>" \
-d '{
"model": "openai/o4-mini",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 1024
}'Pricing
No markup on official OpenAI rates; $0.001 fee per call.
Payment
Pay per request with USDC on Base. No subscription required.
Try It
Send a message to try o4-mini
Connect your wallet to enable payments
About OpenAI o4-mini
o4-mini is a reasoning and coding model from OpenAI with a 128K-token context window and up to 100K tokens of output per call. It is billed per token at the provider's list rate, with no markup on chat tokens. It is served through BlockRun's OpenAI-compatible API, so it can be called without an account, an API key, or a subscription.
What it costs
o4-mini is billed per token. The underlying rates are $1.10 per million input tokens and $4.40 per million output tokens with no platform margin on chat tokens; only a small per-transaction fee covering on-chain settlement is added on top, and the resulting price is quoted in the 402 before you pay. You are charged for the tokens a request actually consumes — there is no monthly commitment and no unused balance to forfeit. With a context window of 128,000 tokens and up to 100,000 tokens of output, a single call can carry a substantial working set.
Specifications
- Context window
- 128,000 tokens
- Maximum output
- 100,000 tokens
- API compatibility
- OpenAI-compatible
- Payment
- USDC via x402
- Categories
- reasoning, coding
Calling it from your code
Pass openai/o4-mini as the model field. Because the endpoint mirrors the OpenAI chat completions schema, any existing OpenAI client works by changing the base URL — streaming, tool use, and multi-turn messages all behave the same way.
The first request returns a 402 carrying the exact price; a signed retry runs it, and client libraries fold the two into one call — how the payment works. See the documentation for request and response shapes, the LLM API page for every model on this endpoint, or browse the full catalog of 78 chat models to compare alternatives.
Related models
Every model on BlockRun is reached through the same endpoint and the same payment flow, so switching is a one-line change to the model field. These are the closest alternatives to o4-mini:
- OpenAI GPT-6 Astra$10.00 in / $50.00 out per 1M
- OpenAI GPT-5.6 Sol$4.00 in / $20.00 out per 1M
- OpenAI GPT-5.6 Terra$2.00 in / $12.00 out per 1M
- OpenAI GPT-5.6 Luna$0.20 in / $1.20 out per 1M
- OpenAI GPT-5.6 Sol Pro$4.00 in / $20.00 out per 1M
- Anthropic Claude Haiku 4.5$1.00 in / $5.00 out per 1M