⚡ freedom-m2m (v2.9.0) — Official Python SDK for Freedom Engine M2M Gateway
Zero-registration, pay-per-request HTTP 402 (x402 Base/Solana USDC, L402 Bitcoin Lightning, OpenAI Drop-In /v1/chat/completions + /v1/embeddings, and 0ms Prepaid Session Passes) SDK for 47+ AI Agent Tools (LangChain, CrewAI, AutoGen, LlamaIndex, and custom autonomous bots).
Installation
pip install freedom-m2m
# Or install directly from GitHub or the Production Gateway:
pip install git+https://github.com/m2mfreedom/freedom-m2m-python-sdk.git
curl -fsSLO https://m2mfreedom.com/packages/freedom_sdk.py
Quick Start
from freedom_sdk import FreedomM2MClient
# 1. Unlimited FREE 0-Sat Pre-Flight Readiness & Schema Verification (?dryRun=true)
client = FreedomM2MClient()
print(client.oracle(sats_amount=100000, dryRun=True))
print(client.deep_research(query="x402 AI agent marketplaces", dryRun=True))
# 2. High-Frequency 0ms Execution with a Prepaid M2M Session Pass (from 50 Sats / $0.047 USDC)
pass_client = FreedomM2MClient(m2m_pass="m2m-pass-your-token-here")
print(pass_client.llm(prompt="Summarize HTTP 402 in one sentence.", model="openai/gpt-oss-120b"))
print(pass_client.deep_research(query="x402 AI agent marketplaces", max_sources=3))
print(pass_client.token_due_diligence(address="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", chain="base"))
OpenAI Python SDK Drop-In Compatibility (/v1)
from openai import OpenAI
ai = OpenAI(base_url="https://m2mfreedom.com/v1", api_key="m2m-pass-your-token-here")
res = ai.chat.completions.create(
model="openai/gpt-oss-120b",
messages=[{"role": "user", "content": "Explain L402 + x402 dual-rail settlement."}],
)
print(res.choices[0].message.content)
Stipulated Pricing (100/100 Atomic SLA — 0 Sats Charged on Pre-Flight Error)
| Method | Endpoint | Cost (Sats) | Cost (USDC) |
|---|---|---|---|
client.oracle() |
POST /api/v1/router/tools/oracle |
5 Sats | ~$0.0047 USDC |
client.embeddings() |
POST /api/v1/router/tools/embeddings (/v1/embeddings) |
10 Sats | ~$0.0094 USDC |
client.llm() |
POST /api/v1/router/tools/llm (/v1/chat/completions) |
10 Sats | ~$0.0094 USDC |
client.web_search() |
POST /api/v1/router/tools/search |
10 Sats | ~$0.0094 USDC |
client.whois_rdap() |
POST /api/v1/router/tools/whois-rdap |
10 Sats | ~$0.0094 USDC |
client.news_pulse() |
POST /api/v1/router/tools/news-pulse |
10 Sats | ~$0.0094 USDC |
client.qr_svg() |
POST /api/v1/router/tools/qr-svg |
10 Sats | ~$0.0094 USDC |
client.captcha() |
POST /api/v1/router/tools/captcha (12-in-1) |
10–25 Sats | ~$0.0094–$0.0236 USDC |
client.wallet_intel() |
POST /api/v1/router/tools/wallet-intel |
15 Sats | ~$0.0141 USDC |
client.defi_quote() |
POST /api/v1/router/tools/defi-quote |
15 Sats | ~$0.0141 USDC |
client.contract_intel() |
POST /api/v1/router/tools/contract-intel |
20 Sats | ~$0.0189 USDC |
client.youtube() |
POST /api/v1/router/tools/youtube |
20 Sats | ~$0.0189 USDC |
client.memory() |
POST /api/v1/router/tools/memory |
25 Sats | ~$0.0236 USDC |
client.transcribe() |
POST /api/v1/router/tools/transcribe |
25 Sats | ~$0.0236 USDC |
client.doc_parse() |
POST /api/v1/router/tools/doc-parse |
30 Sats | ~$0.0283 USDC |
client.scrape() |
POST /api/v1/router/tools/scrape |
40 Sats | ~$0.0377 USDC |
client.token_due_diligence() |
POST /api/v1/router/tools/token-due-diligence |
45 Sats | ~$0.0424 USDC |
client.topup() |
POST /api/v1/router/topup |
From 50 Sats | ~$0.0471 USDC |
client.deep_research() |
POST /api/v1/router/tools/deep-research |
60 Sats | ~$0.0565 USDC |
client.python_sandbox() |
POST /api/v1/router/tools/python |
60 Sats | ~$0.0565 USDC |
client.extract() |
POST /api/v1/router/tools/extract |
85 Sats | ~$0.0801 USDC |
client.stealth() |
POST /api/v1/router/tools/stealth |
120 Sats | ~$0.1131 USDC |
client.request_capability() |
POST /api/v1/capabilities/request |
FREE | $0.00 USDC |
client.list_tasks() |
GET /api/v1/tasks |
FREE | $0.00 USDC |
client.post_bounty() |
POST /api/v1/market/bounty |
Min 150 Sats | ~$0.1414 USDC |
Official Treasury Coordinates
- Base Mainnet USDC (
eip155:8453):0x50A9f6256F1d9c20E5Bc76FED6eEdB65C1219D34 - Solana Mainnet USDC:
3vNDgwYpnFyJ16MLkekifB6FNVrFdCCUKmUsgqGd64TZ - Lightning Address (L402):
Lordbryce@coinos.io
Metadata
Release files for freedom-m2m 2.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freedom_m2m-2.9.0.tar.gz | 8.8 kB | Without provenance | Details for freedom_m2m-2.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freedom_m2m-2.9.0-py3-none-any.whl | Python 3 | none | any | Details for freedom_m2m-2.9.0-py3-none-any.whl |
Total release size: 17.8 kB
Release files / freedom_m2m-2.9.0.tar.gz
| Download URL | freedom_m2m-2.9.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e19c93be001f5e613580ec99759ecc20df63908b08ec88b8bd8174393ca4c7b3
|
|
BLAKE2b-256 checksum How to use checksums |
7a06e9a48926ee2071c3acd126a524d39f6d846efe2838995c4089a8ee23fd41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / freedom_m2m-2.9.0-py3-none-any.whl
| Download URL | freedom_m2m-2.9.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fea65bff1f013a7f7f658c36414fab325c1af3b4fc4389749a9a48305cbd764
|
|
BLAKE2b-256 checksum How to use checksums |
91749aa35f260628ecac0eb6ca2eb6dab1d9e70ea46eb8bc942cfc98f778cccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for freedom-m2m 2.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.