-
Notifications
You must be signed in to change notification settings - Fork 1k
Add BlockRun.AI to x402 ecosystem #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Heimdall Review Status
|
|
@1bcMax is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
BlockRun.AI is a pay-as-you-go AI gateway providing ChatGPT and all major LLMs (Anthropic, Google, DeepSeek, xAI) via x402 on Base. It also features a catalog to discover all x402 services available on the market. Website: https://blockrun.ai
c88adfe to
d9e14f2
Compare
|
Hi @1bcMax, you write here that you use the exact scheme but on your website it sounds like you charge per input/output token. How does this work? |
|
Hey @phdargen , Thank you for your question. Great question! Here's how it works: We use the exact scheme by estimating tokens upfront before requesting payment:
The client pays this exact calculated amount upfront via x402. After execution, we record actual token usage for analytics, but the charge is based on the upfront estimate. So it's "per-token pricing" in the sense that costs scale with token counts, but it's an estimated upfront charge rather than post-execution billing - which is what makes it compatible with x402's exact scheme.
https://blockrun.ai/models/openai-gpt-4.1-nano
|
|
Thanks for the explanation @1bcMax, that makes sense. I tested your endpoint and it returns a valid response in the body, but it is missing the PAYMENT-RESPONSE header, see Also in your curl code example, you are using " -H "X-Payment: <payment_header>", this should be PAYMENT-SIGNATURE in v2 (see https://docs.cdp.coinbase.com/x402/migration-guide) |
|
Thanks @phdargen for the detailed feedback! Both issues have been fixed and deployed. Fixes1. PAYMENT-RESPONSE Header ✅Added The header now returns a base64-encoded settlement response: {
"success": true,
"transaction": "0x375f40b15011a99a7939f85483a98375fae05a31ea4a83548fc6821cb118bef3",
"network": "eip155:8453",
"payer": "0x4069560641EC74AcFc74ddeC64181f588C64e3A7"
}2. PAYMENT-SIGNATURE Header ✅Updated all documentation and curl examples to use Test ResultsAgentKit IntegrationWe are also working on integrating BlockRun with AgentKit to make x402 payments accessible to more AI agents: coinbase/agentkit#916 This integration would allow any AgentKit-powered agent to:
We believe this could significantly expand the x402 ecosystem by giving thousands of AI agents native payment capabilities. Would love your feedback on that PR as well! |
phdargen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick update @1bcMax, looks all good now

Summary
This PR adds BlockRun.AI to the x402 ecosystem page under Services/Endpoints.
What is BlockRun.AI?
BlockRun.AI is a dual-purpose platform in the x402 ecosystem:
Pay-as-You-Go AI Gateway: Provides instant access to ChatGPT and all major LLMs including:
x402 Service Catalog: Features a discovery catalog showing all x402 services available on the market, making it easy for users to find and use x402-enabled endpoints.
Key Features
Implementation Details
Changes in this PR
partners-data/blockrun/logos/blockrun.png)Similar to the ubounty.ai integration (#645).