Catalog PyPI
Back to packageRELEASE DETAILS

2.0.0

PyPI

aimpn

Official Python SDK & x402 Zero-Gas Micropayment Paywall Decorator for HuggingFace Spaces and AI Agents on Base Mainnet

ai-agentsaimpnbaseerc4337fastapigradiohuggingfacemicropaymentsweb3x402
Published29 Jul 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 2.0.0 documentation

🤖 aimpn — Official Python SDK for AI Micropayment Network v2.0

Zero-Gas x402 Micropayment Paywalls for HuggingFace Spaces, Gradio, FastAPI, and AI Agents on Base Mainnet (L2).

PyPI version License: MIT Base Mainnet


⚡ Installation

pip install aimpn

🚀 Quick Start (HuggingFace Spaces / Gradio / FastAPI)

Add an instant zero-gas x402 paywall to any AI model inference endpoint in just 1 line of code:

from aimpn import require_x402_payment

@require_x402_payment(amount="0.01", recipient="0xYourBaseWalletAddress", model_name="Llama-3-70B Space")
def predict(prompt: str, payment_header: str = None):
    # Your standard AI generation logic here
    return f"🤖 AI Generated response for: {prompt}"

🎁 Why developers love this

When an AI agent calls your monetized endpoint without a payment header, aimpn automatically returns an HTTP 402 Payment Required exception with full instructions on how to send the $0.01 USDC micropayment using our Zero-Gas ERC-4337 Paymaster (0x7Df0AA...).

Bonus: Builders who call your endpoint 100 times automatically receive a $10.00 USDC Builder Bounty from our on-chain indexer!


Visit https://github.com/tdpeta754-design/ai-micropayment-network for full documentation and interactive playgrounds.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

2 collected
aimpn-2.0.0-py3-none-any.whl

bdist_wheel · 3.95 KB · Python py3

Source file
aimpn-2.0.0.tar.gz

sdist · 3.64 KB · Python source

Source file

Repository

PENDING
tdpeta754-design/ai-micropayment-network

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:24 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3ee2981f022d238cee634492ede0ec6a2ebc1a89c49e93264a045686af17bebb

Other collected versions

View all collected versions →