BlockRun
Get started
Back to Pricing

GPT-4o Mini

openai/gpt-4o-mini

openai

Fast and affordable GPT-4o model

Code Examples

from blockrun_llm import LLMClient

client = LLMClient()  # Uses BLOCKRUN_WALLET_KEY (never sent to server)
response = client.chat("openai/gpt-4o-mini", "Hello!")

Pricing

Input$0.15 / 1M tokens
Output$0.60 / 1M tokens
Context128K tokens
Max Output16K tokens

5% markup on official openai API prices.

Payment

Network
Base
Currency
USDC
Protocol
x402

Pay per request with USDC on Base. No subscription required.

Try It

Send a message to try GPT-4o Mini

Connect your wallet to enable payments

About OpenAI GPT-4o Mini

Fast and affordable GPT-4o model. It is built by OpenAI and served through BlockRun's OpenAI-compatible API, which means you can call it without an account, an API key, or a subscription. Requests are paid for individually, in USDC, at the moment they are made.

What it costs

GPT-4o Mini is billed per token. The underlying rates are $0.15 per million input tokens and $0.60 per million output tokens; a flat platform margin and a small per-transaction fee covering on-chain settlement are 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 16,384 tokens of output, a single call can carry a substantial working set.

Specifications

Context window
128,000 tokens
Maximum output
16,384 tokens
API compatibility
OpenAI-compatible
Payment
USDC via x402
Categories
chat, coding

Calling it from your code

Pass openai/gpt-4o-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 comes back as an HTTP 402 carrying a signed price quote. Your client signs that quote with a wallet holding USDC and retries; the second request returns the completion, and the payment settles on-chain. Client libraries handle this handshake for you, so in practice it is a single call. See the documentation for request and response shapes, or browse the full catalog of 71 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 GPT-4o Mini: