Skip to content

Conversation

@1bcMax
Copy link

@1bcMax 1bcMax commented Jan 9, 2026

Summary

Add BlockRun AI integration - access 30+ AI models with x402 micropayments.

Usage

from ampersend_sdk.integrations.blockrun import BlockRunAI

async with BlockRunAI(treasurer=treasurer) as ai:
    response = await ai.chat("gpt-4o", "What is 2+2?")
    print(response)  # "4"

Features

  • 30+ AI models (GPT-4o, Claude, Gemini, DeepSeek, Llama)
  • Pay-per-request with USDC on Base
  • No API keys needed - wallet is your identity
  • Automatic x402 payment handling via Treasurer

Files

  • src/ampersend_sdk/integrations/blockrun.py - BlockRunAI client
  • tests/test_blockrun_integration.py - 9 unit tests
  • examples/blockrun_ai_example.py - Usage example

Test plan

  • All 51 tests pass
  • Lint passes

Powered by BlockRun.ai

@1bcMax 1bcMax force-pushed the feat/blockrun-ai-integration branch from 3d03c5c to 950847d Compare January 9, 2026 20:21
@1bcMax 1bcMax force-pushed the feat/blockrun-ai-integration branch from 950847d to d2ec583 Compare January 9, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant