diff --git a/src/pages/guide/machine-payments/use-cases/agent-to-agent.mdx b/src/pages/guide/machine-payments/use-cases/agent-to-agent.mdx new file mode 100644 index 00000000..4f5577a0 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/agent-to-agent.mdx @@ -0,0 +1,66 @@ +--- +title: Pay for Agent-to-Agent Services +description: Hire agents for coding, design, writing, and email with Auto.exchange and AgentMail via MPP stablecoin payments on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for agent-to-agent services + +Let your agents hire other agents — for coding, design, writing, research, and email — pay per task with stablecoins on Tempo. No platform accounts, no human intermediaries. + +## The problem + +Agent-to-agent commerce barely exists today. When one agent needs another agent's capabilities — code review, design generation, deep research — there's no standardized way to discover, negotiate, and pay. Current approaches involve hard-coded integrations or human-mediated handoffs. + +## How MPP solves it + +MPP provides the payment layer for agent-to-agent commerce. Any agent can publish a service, set a price, and accept stablecoin payments from other agents. The requesting agent discovers the service, pays via a Tempo Charge, and receives the result — all in a single HTTP round-trip. No accounts, no API keys, no human involvement. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Auto.exchange](https://api.auto.exchange) | Discover and hire agents for coding, design, writing | `api.auto.exchange` | +| [AgentMail](https://mpp.api.agentmail.to) | Email inboxes for AI agents | `mpp.api.agentmail.to` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Hire an agent via Auto.exchange +tempo request api.auto.exchange/v1/tasks \ + -d '{"task": "Review this Python function for bugs", "code": "def add(a, b): return a - b"}' +``` + +## Prompt your agent + +``` +Use api.auto.exchange to hire another agent via Tempo. +Pay per task with stablecoins — no account needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/ai-model-access.mdx b/src/pages/guide/machine-payments/use-cases/ai-model-access.mdx new file mode 100644 index 00000000..9f869f9a --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/ai-model-access.mdx @@ -0,0 +1,74 @@ +--- +title: Pay for AI Models Per Request +description: Let your agents call OpenAI, Anthropic, Gemini, Mistral, and other LLMs without API keys using MPP stablecoin payments on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for AI models per request + +Give your agents access to any LLM — OpenAI, Anthropic, Gemini, DeepSeek, Mistral, and more — without managing API keys, billing accounts, or usage limits. MPP lets agents pay per token with stablecoins on Tempo, and the model provider gets paid instantly. + +## The problem + +Every LLM provider requires a separate API key, billing account, and credit card on file. For a single developer this is manageable. For a fleet of autonomous agents, it's a bottleneck: each agent needs its own credentials, each provider has different billing cycles, and rate limits are tied to account tiers rather than willingness to pay. + +## How MPP solves it + +With MPP, your agent holds a stablecoin balance on Tempo and pays per request. No signup, no API keys, no invoices. The agent discovers the model's price via the `402` Challenge, pays with a stablecoin transfer or session voucher, and gets the response — all in a single HTTP round-trip. + +**Tempo Sessions** are ideal for LLM access. The agent opens a payment channel once, then signs off-chain vouchers for each chunk of tokens received. The model provider verifies vouchers in microseconds — no blockchain calls during inference — and settles in batch later. This makes per-token billing practical without adding latency. + +## Available services + +| Provider | Models | Service URL | +|---|---|---| +| [OpenAI](https://openai.mpp.tempo.xyz) | GPT-4o, o3, DALL·E, Whisper | `openai.mpp.tempo.xyz` | +| [Anthropic](https://anthropic.mpp.tempo.xyz) | Claude Sonnet, Opus, Haiku | `anthropic.mpp.tempo.xyz` | +| [Google Gemini](https://gemini.mpp.tempo.xyz) | Gemini, Veo video, image gen | `gemini.mpp.tempo.xyz` | +| [DeepSeek](https://deepseek.mpp.paywithlocus.com) | DeepSeek-V3, R1 reasoning | `deepseek.mpp.paywithlocus.com` | +| [Mistral](https://mistral.mpp.paywithlocus.com) | Large, Codestral, Pixtral | `mistral.mpp.paywithlocus.com` | +| [OpenRouter](https://openrouter.mpp.tempo.xyz) | 100+ models, unified API | `openrouter.mpp.tempo.xyz` | +| [Grok](https://grok.mpp.tempo.xyz) | xAI chat, search, code exec | `grok.mpp.tempo.xyz` | +| [Perplexity](https://perplexity.mpp.paywithlocus.com) | Sonar search + grounding | `perplexity.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Call OpenAI with pay-per-request — no API key needed +tempo request openai.mpp.tempo.xyz/v1/chat/completions \ + -d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}]}' +``` + +## Prompt your agent + +``` +Use openai.mpp.tempo.xyz to call GPT-4o via Tempo. +Pay per request with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/blockchain-data.mdx b/src/pages/guide/machine-payments/use-cases/blockchain-data.mdx new file mode 100644 index 00000000..efa658be --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/blockchain-data.mdx @@ -0,0 +1,71 @@ +--- +title: Pay for Blockchain Data and Analytics +description: Query on-chain data from Alchemy, Allium, Nansen, Dune, and Codex using MPP stablecoin payments on Tempo — no API keys required. +--- + +import { Card, Cards } from 'vocs' + +# Pay for blockchain data and analytics + +Access on-chain data — token prices, wallet analytics, DEX trades, stablecoin flows, and smart contract events — from any MPP-enabled blockchain data provider. Pay per query with stablecoins on Tempo. + +## The problem + +Blockchain data APIs gate access behind API keys, developer accounts, and monthly subscription tiers. Agents that need to query multiple providers — one for wallet balances, another for DEX analytics, a third for historical prices — must manage separate credentials and billing for each. Free tiers run out fast, and upgrading means committing to monthly plans before knowing actual usage. + +## How MPP solves it + +With MPP, your agent pays per query. No accounts, no API keys, no tier commitments. The agent calls any blockchain data provider, pays with a stablecoin transfer on Tempo, and gets the data back in the same response. + +**Tempo Charge** is a natural fit for data queries: each request has a known cost, settlement takes ~500ms, and the agent only pays for queries it actually makes. + +## Available services + +| Provider | Data | Service URL | +|---|---|---| +| [Alchemy](https://mpp.alchemy.com) | Core RPC, prices, portfolios, NFTs across 100+ chains | `mpp.alchemy.com` | +| [Allium](https://agents.allium.so) | Token prices, wallet balances, transactions, PnL, SQL | `agents.allium.so` | +| [Nansen](https://api.nansen.ai) | Smart money, wallet profiling, DEX trades, flow analysis | `api.nansen.ai` | +| [Dune](https://api.dune.com) | Raw transactions, decoded events, stablecoin flows, DeFi | `api.dune.com` | +| [Codex](https://graph.codex.io) | Token data, prediction markets, charts, wallet analytics | `graph.codex.io` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Query blockchain data via Alchemy +tempo request mpp.alchemy.com/v2 \ + -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' +``` + +## Prompt your agent + +``` +Use agents.allium.so to query token prices and wallet balances via Tempo. +Pay per query with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/browser-automation.mdx b/src/pages/guide/machine-payments/use-cases/browser-automation.mdx new file mode 100644 index 00000000..db18f950 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/browser-automation.mdx @@ -0,0 +1,69 @@ +--- +title: Pay for Browser Automation and Web Scraping +description: Run headless browsers, solve CAPTCHAs, and scrape web pages using Browserbase, 2Captcha, and Oxylabs via MPP on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for browser automation and web scraping + +Let your agents run headless browser sessions, solve CAPTCHAs, and scrape web pages with geo-targeting — pay per task with stablecoins on Tempo. No API keys, no browser infrastructure to manage. + +## The problem + +Browser automation at scale requires managing headless browser infrastructure, proxy networks, and CAPTCHA-solving services — each with separate accounts, API keys, and billing. Agents that need to interact with the web face a fragmented stack of tools, each requiring its own integration. + +## How MPP solves it + +With MPP, your agent pays per browser session, per page scrape, or per CAPTCHA solve using stablecoins on Tempo. The agent sends a request, the service returns its price via a `402` Challenge, the agent pays, and the work is done. No infrastructure setup, no API key management. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Browserbase](https://mpp.browserbase.com) | Headless browser sessions, web search, page fetching | `mpp.browserbase.com` | +| [2Captcha](https://twocaptcha.mpp.tempo.xyz) | reCAPTCHA, Turnstile, hCaptcha, image captchas | `twocaptcha.mpp.tempo.xyz` | +| [Oxylabs](https://oxylabs.mpp.tempo.xyz) | Web scraping with geo-targeting and JS rendering | `oxylabs.mpp.tempo.xyz` | +| [Firecrawl](https://firecrawl.mpp.tempo.xyz) | Web crawling and structured data extraction | `firecrawl.mpp.tempo.xyz` | +| [Diffbot](https://diffbot.mpp.paywithlocus.com) | Article, product, and discussion extraction | `diffbot.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Scrape a page via Oxylabs +tempo request oxylabs.mpp.tempo.xyz/v1/queries \ + -d '{"source": "universal", "url": "https://example.com"}' +``` + +## Prompt your agent + +``` +Use mpp.browserbase.com to run headless browser sessions via Tempo. +Pay per session with stablecoins — no account needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/compute-and-code-execution.mdx b/src/pages/guide/machine-payments/use-cases/compute-and-code-execution.mdx new file mode 100644 index 00000000..2a386d02 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/compute-and-code-execution.mdx @@ -0,0 +1,69 @@ +--- +title: Pay for Compute and Code Execution +description: Run code, deploy containers, and access GPU compute via MPP with stablecoin payments on Tempo — no cloud accounts needed. +--- + +import { Card, Cards } from 'vocs' + +# Pay for compute and code execution + +Let your agents run code in sandboxed environments, deploy containers, and access GPU compute — pay per use with stablecoins on Tempo. No cloud accounts, no billing dashboards, no credit cards. + +## The problem + +Cloud compute requires account creation, billing setup, and credential management before running a single line of code. For agents that need to execute code snippets, deploy temporary services, or run GPU workloads, the overhead of provisioning cloud accounts is disproportionate to the task. Sandbox environments like CodeSandbox or Replit target human developers, not programmatic access. + +## How MPP solves it + +With MPP, your agent pays per execution or per compute-minute with stablecoins on Tempo. Submit code, pay, get results — all in one HTTP request. No accounts, no API keys, no cloud provider onboarding. + +**Tempo Charge** works well for discrete tasks like running a code snippet. For longer-running workloads or metered compute, **Tempo Sessions** let the agent pay incrementally as resources are consumed. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Modal](https://modal.mpp.tempo.xyz) | Serverless GPU compute, AI/ML workloads | `modal.mpp.tempo.xyz` | +| [Judge0](https://judge0.mpp.paywithlocus.com) | Code execution in 60+ languages, sandboxed | `judge0.mpp.paywithlocus.com` | +| [Build With Locus](https://mpp.buildwithlocus.com) | Containers, Postgres, Redis, custom domains | `mpp.buildwithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Execute Python code via Judge0 +tempo request judge0.mpp.paywithlocus.com/submissions \ + -d '{"source_code": "print(42)", "language_id": 71}' +``` + +## Prompt your agent + +``` +Use judge0.mpp.paywithlocus.com to run Python code via Tempo. +Pay per execution with stablecoins — no account needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/data-enrichment-and-leads.mdx b/src/pages/guide/machine-payments/use-cases/data-enrichment-and-leads.mdx new file mode 100644 index 00000000..9818867a --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/data-enrichment-and-leads.mdx @@ -0,0 +1,70 @@ +--- +title: Pay for Data Enrichment and Lead Generation +description: Enrich contacts, find emails, profile companies, and generate leads using Apollo, Hunter, Clado, and more via MPP on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for data enrichment and lead generation + +Let your agents enrich contacts, find emails, profile companies, and search LinkedIn — pay per lookup with stablecoins on Tempo. No API keys, no monthly minimums, no seat-based pricing. + +## The problem + +Sales and marketing data APIs charge monthly subscriptions with per-seat pricing, even when usage is sporadic. An agent that enriches 50 leads one week and zero the next still pays the same monthly fee. Each provider requires its own account, API key, and billing setup. + +## How MPP solves it + +With MPP, your agent pays per enrichment request. Look up a company, enrich a contact, verify an email — each operation is a single paid HTTP request. No contracts, no minimums, no wasted spend during quiet periods. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Apollo](https://apollo.mpp.paywithlocus.com) | 275M+ contacts, company enrichment, lead search | `apollo.mpp.paywithlocus.com` | +| [Hunter](https://hunter.mpp.paywithlocus.com) | Email finding, verification, company enrichment | `hunter.mpp.paywithlocus.com` | +| [Clado](https://clado.mpp.paywithlocus.com) | People search, LinkedIn enrichment, deep research | `clado.mpp.paywithlocus.com` | +| [Company Enrichment](https://abstract-company-enrichment.mpp.paywithlocus.com) | Company data from domain name | `abstract-company-enrichment.mpp.paywithlocus.com` | +| [Email Reputation](https://abstract-email-reputation.mpp.paywithlocus.com) | Email reputation and risk scoring | `abstract-email-reputation.mpp.paywithlocus.com` | +| [BuiltWith](https://builtwith.mpp.paywithlocus.com) | Technology profiling for 100M+ websites | `builtwith.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Enrich a company via Apollo +tempo request apollo.mpp.paywithlocus.com/v1/organizations/enrich \ + -d '{"domain": "tempo.xyz"}' +``` + +## Prompt your agent + +``` +Use apollo.mpp.paywithlocus.com to enrich company data via Tempo. +Pay per lookup with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/financial-data.mdx b/src/pages/guide/machine-payments/use-cases/financial-data.mdx new file mode 100644 index 00000000..77f295fd --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/financial-data.mdx @@ -0,0 +1,69 @@ +--- +title: Pay for Financial and Market Data +description: Access stock prices, forex rates, SEC filings, crypto data, and economic indicators via MPP with stablecoin payments on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for financial and market data + +Access real-time stock prices, forex rates, crypto market data, SEC filings, and economic indicators — pay per request with stablecoins on Tempo. No API keys, no subscriptions, no billing accounts. + +## The problem + +Financial data is fragmented across dozens of providers, each with its own API key, pricing tier, and billing cycle. Agents that need multi-source data — stock prices from one provider, SEC filings from another, crypto data from a third — face credential sprawl and unpredictable monthly bills. Free tiers are limited, and most providers require credit cards before returning a single data point. + +## How MPP solves it + +With MPP, your agent pays per data request using stablecoins on Tempo. No signup, no API keys. Point your agent at any MPP-enabled financial data provider, and it handles the rest: price discovery via the `402` Challenge, payment via a TIP-20 transfer, and data delivery in the same response. + +## Available services + +| Provider | Data | Service URL | +|---|---|---| +| [Alpha Vantage](https://alphavantage.mpp.paywithlocus.com) | Stocks, forex, crypto, commodities, technicals | `alphavantage.mpp.paywithlocus.com` | +| [CoinGecko](https://coingecko.mpp.paywithlocus.com) | Crypto prices, market cap, exchanges, trending | `coingecko.mpp.paywithlocus.com` | +| [EDGAR (SEC)](https://edgar.mpp.paywithlocus.com) | Company filings, XBRL financials, full-text search | `edgar.mpp.paywithlocus.com` | +| [EDGAR Full-Text](https://edgar-search.mpp.paywithlocus.com) | 10-K, 10-Q, 8-K, proxy statement search | `edgar-search.mpp.paywithlocus.com` | +| [Exchange Rates](https://abstract-exchange-rates.mpp.paywithlocus.com) | Live and historical FX rates for 150+ currencies | `abstract-exchange-rates.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Get stock data via Alpha Vantage +tempo request alphavantage.mpp.paywithlocus.com/query \ + -d '{"function": "TIME_SERIES_DAILY", "symbol": "AAPL"}' +``` + +## Prompt your agent + +``` +Use edgar.mpp.paywithlocus.com to search SEC filings via Tempo. +Pay per query with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/image-and-media-generation.mdx b/src/pages/guide/machine-payments/use-cases/image-and-media-generation.mdx new file mode 100644 index 00000000..2b9d591a --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/image-and-media-generation.mdx @@ -0,0 +1,71 @@ +--- +title: Pay for Image, Video, and Audio Generation +description: Generate images, videos, audio, and speech with fal.ai, OpenAI, Gemini, and Deepgram via MPP stablecoin payments on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for image, video, and audio generation + +Let your agents generate images, videos, audio, and speech — pay per generation with stablecoins on Tempo. Access 600+ models through fal.ai, or use OpenAI, Gemini, and Deepgram directly. + +## The problem + +Media generation APIs require separate accounts and API keys per provider. Costs vary wildly by model and resolution, making budgeting unpredictable. Agents that need to generate a product image, a voiceover, and a video clip in a single workflow must juggle three sets of credentials and billing systems. + +## How MPP solves it + +With MPP, your agent pays per generation using stablecoins on Tempo. The price is declared upfront in the `402` Challenge — the agent knows exactly what it will pay before generating anything. One wallet, one balance, any provider. + +**Tempo Charge** is ideal for media generation: each request is a discrete unit with a known cost. The agent signs a TIP-20 transfer, the provider verifies it in ~500ms, and returns the generated media. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [fal.ai](https://fal.mpp.tempo.xyz) | 600+ models: Flux, SD, Recraft, Grok | `fal.mpp.tempo.xyz` | +| [OpenAI](https://openai.mpp.tempo.xyz) | DALL·E image generation, Whisper audio | `openai.mpp.tempo.xyz` | +| [Google Gemini](https://gemini.mpp.tempo.xyz) | Veo video, Nano Banana image gen | `gemini.mpp.tempo.xyz` | +| [Deepgram](https://deepgram.mpp.paywithlocus.com) | Nova-3 transcription, Aura-2 TTS | `deepgram.mpp.paywithlocus.com` | +| [Mathpix](https://mathpix.mpp.paywithlocus.com) | OCR for math, science docs, LaTeX | `mathpix.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Generate an image via fal.ai +tempo request fal.mpp.tempo.xyz/fal-ai/flux/dev \ + -d '{"prompt": "a futuristic city skyline at sunset"}' +``` + +## Prompt your agent + +``` +Use fal.mpp.tempo.xyz to generate images via Tempo. +Pay per image with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/location-and-maps.mdx b/src/pages/guide/machine-payments/use-cases/location-and-maps.mdx new file mode 100644 index 00000000..454f3599 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/location-and-maps.mdx @@ -0,0 +1,70 @@ +--- +title: Pay for Maps, Geocoding, and Location Data +description: Access Google Maps, Mapbox, weather, and flight data via MPP with stablecoin payments on Tempo — no API keys required. +--- + +import { Card, Cards } from 'vocs' + +# Pay for maps, geocoding, and location data + +Let your agents geocode addresses, get directions, check weather, and track flights — pay per request with stablecoins on Tempo. No Google Cloud accounts, no Mapbox tokens, no API keys. + +## The problem + +Location APIs require cloud platform accounts with billing verification before returning data. Google Maps requires a Google Cloud project with a credit card. Mapbox requires a developer account with access tokens. Weather and flight APIs have their own signup flows. For agents that need location data as part of a larger workflow, this credential overhead is a barrier. + +## How MPP solves it + +With MPP, your agent pays per geocode, per route, or per weather query using stablecoins. No cloud accounts, no access tokens. The agent makes a request, the service returns its price, the agent pays, and the data arrives. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Google Maps](https://googlemaps.mpp.tempo.xyz) | Geocoding, directions, places, routes, weather | `googlemaps.mpp.tempo.xyz` | +| [Mapbox](https://mapbox.mpp.paywithlocus.com) | Geocoding, directions, isochrones, static maps | `mapbox.mpp.paywithlocus.com` | +| [OpenWeather](https://openweather.mpp.paywithlocus.com) | Current weather, forecasts, air quality, alerts | `openweather.mpp.paywithlocus.com` | +| [StableTravel](https://stabletravel.dev) | Flights, hotels, activities, transfers, tracking | `stabletravel.dev` | +| [FlightAPI](https://flightapi.mpp.tempo.xyz) | Flight prices, tracking, airport schedules | `flightapi.mpp.tempo.xyz` | +| [IPinfo](https://ipinfo.mpp.paywithlocus.com) | IP geolocation, ASN, privacy detection | `ipinfo.mpp.paywithlocus.com` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Geocode an address via Google Maps +tempo request googlemaps.mpp.tempo.xyz/maps/api/geocode/json \ + -d '{"address": "1600 Amphitheatre Parkway, Mountain View, CA"}' +``` + +## Prompt your agent + +``` +Use googlemaps.mpp.tempo.xyz to geocode addresses via Tempo. +Pay per request with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/monetize-your-api.mdx b/src/pages/guide/machine-payments/use-cases/monetize-your-api.mdx new file mode 100644 index 00000000..2c286d30 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/monetize-your-api.mdx @@ -0,0 +1,111 @@ +--- +title: Monetize Your API with Machine Payments +description: Accept stablecoin payments for your API using MPP on Tempo. Charge per request without requiring signups, billing accounts, or API keys. +--- + +import { Card, Cards } from 'vocs' + +# Monetize your API with machine payments + +Accept stablecoin payments for any HTTP endpoint. No signup flows, no billing accounts, no API key management. Your users — agents, apps, or humans — pay per request with stablecoins on Tempo, and you get paid instantly. + +## The problem + +Monetizing an API today means building a billing system: user registration, API key provisioning, usage metering, invoicing, and payment collection. For most developers, the billing infrastructure is harder to build than the API itself. Stripe and similar tools help, but still require account creation and credit card onboarding from every customer. + +## How MPP solves it + +With MPP, you add a few lines of code to your HTTP endpoint and it becomes payment-gated. The server returns a `402` Challenge with the price, the client pays with a stablecoin transfer, and the server delivers the response with a `Receipt`. Settlement happens in ~500ms on Tempo. + +**Two billing models** are available out of the box: +- **Tempo Charge** — One-time payment per request. Best for single API calls, content access, or discrete operations. +- **Tempo Session** — Continuous pay-as-you-go via payment channels. Best for LLM APIs, metered services, or streamed responses. + +## Get started in 5 minutes + +::::steps + +### Install the SDK + +:::code-group +```bash [npm] +npm install mppx viem +``` +```bash [pnpm] +pnpm add mppx viem +``` +```bash [bun] +bun add mppx viem +``` +::: + +### Add payment gating + +```ts +import { Mppx, tempo } from 'mppx/server' + +const mppx = Mppx.create({ + methods: [tempo({ + currency: '0x20c0000000000000000000000000000000000000', + recipient: '0xYOUR_ADDRESS_HERE', + })], +}) + +export async function handler(request: Request) { + const result = await mppx.charge({ + amount: '0.01', + description: 'API call', + })(request) + + if (result.status === 402) return result.challenge + + // Your API logic here + return result.withReceipt(Response.json({ data: '...' })) +} +``` + +### Test it + +```bash +npx mppx account create +npx mppx http://localhost:3000/api/endpoint +``` + +:::: + +## Why Tempo for API monetization + +- **~500ms settlement** — Fast enough for synchronous request/response flows +- **Sub-cent fees** — Charge $0.001 per request and still be profitable +- **No customer onboarding** — Clients pay with a wallet, no signup required +- **Fee sponsorship** — Cover gas fees for your customers so they only need stablecoins +- **Any stablecoin** — Accept pathUSD, USDC.e, or any TIP-20 token + +## Next steps + + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/storage.mdx b/src/pages/guide/machine-payments/use-cases/storage.mdx new file mode 100644 index 00000000..217318f7 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/storage.mdx @@ -0,0 +1,66 @@ +--- +title: Pay for Object Storage and Git Repos +description: Store files and create Git repositories using MPP with stablecoin payments on Tempo — no cloud accounts required. +--- + +import { Card, Cards } from 'vocs' + +# Pay for object storage and Git repos + +Let your agents store files, upload objects, and create Git repositories — pay per operation with stablecoins on Tempo. No AWS accounts, no access keys, no billing dashboards. + +## The problem + +Cloud storage requires account creation, IAM configuration, and billing setup before an agent can store a single byte. Even "simple" object storage like S3 requires access keys, bucket policies, and region selection. For agents that need temporary or task-specific storage, the overhead of cloud account provisioning is disproportionate to the need. + +## How MPP solves it + +With MPP, your agent pays per upload or per repo creation using stablecoins. The storage service publishes its pricing via the `402` Challenge, the agent pays, and the operation completes. No cloud credentials, no IAM roles. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Object Storage](https://storage.mpp.tempo.xyz) | S3/R2-compatible storage, dynamic per-size pricing | `storage.mpp.tempo.xyz` | +| [Code Storage](https://codestorage.mpp.tempo.xyz) | Paid Git repo creation, authenticated clone URLs | `codestorage.mpp.tempo.xyz` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Upload a file to object storage +tempo request storage.mpp.tempo.xyz/upload \ + -F "file=@document.pdf" +``` + +## Prompt your agent + +``` +Use storage.mpp.tempo.xyz to upload files via Tempo. +Pay per upload with stablecoins — no cloud account needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/translation-and-language.mdx b/src/pages/guide/machine-payments/use-cases/translation-and-language.mdx new file mode 100644 index 00000000..0f7f8116 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/translation-and-language.mdx @@ -0,0 +1,67 @@ +--- +title: Pay for Translation and Language Services +description: Translate text, transcribe audio, and process language using DeepL, Deepgram, and other MPP services with stablecoin payments on Tempo. +--- + +import { Card, Cards } from 'vocs' + +# Pay for translation and language services + +Let your agents translate text across 30+ languages, transcribe audio, generate speech, and analyze sentiment — pay per request with stablecoins on Tempo. + +## The problem + +Language APIs require separate developer accounts for each provider, with usage tied to monthly subscription tiers. An agent that needs to translate a document, transcribe a call, and generate a voiceover must manage three sets of credentials and billing cycles. Most providers don't offer true pay-per-use pricing. + +## How MPP solves it + +With MPP, your agent pays per translation, per transcription, or per TTS request using stablecoins. One Tempo wallet works across all language service providers. The agent pays only for what it uses — no monthly commitments, no unused credits. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [DeepL](https://deepl.mpp.paywithlocus.com) | 30+ languages, professional quality translation | `deepl.mpp.paywithlocus.com` | +| [Deepgram](https://deepgram.mpp.paywithlocus.com) | Nova-3 transcription, Aura-2 TTS, sentiment | `deepgram.mpp.paywithlocus.com` | +| [OpenAI](https://openai.mpp.tempo.xyz) | Whisper transcription, TTS | `openai.mpp.tempo.xyz` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Translate text via DeepL +tempo request deepl.mpp.paywithlocus.com/v2/translate \ + -d '{"text": ["Hello, world!"], "target_lang": "DE"}' +``` + +## Prompt your agent + +``` +Use deepl.mpp.paywithlocus.com to translate text via Tempo. +Pay per request with stablecoins — no API key needed. +``` + +## Next steps + + + + + + diff --git a/src/pages/guide/machine-payments/use-cases/web-search-and-research.mdx b/src/pages/guide/machine-payments/use-cases/web-search-and-research.mdx new file mode 100644 index 00000000..8cd2b731 --- /dev/null +++ b/src/pages/guide/machine-payments/use-cases/web-search-and-research.mdx @@ -0,0 +1,72 @@ +--- +title: Pay for Web Search and Research +description: Let agents search the web, extract content, and crawl pages using MPP services like Parallel, Exa, Brave, and Firecrawl with stablecoin payments. +--- + +import { Card, Cards } from 'vocs' + +# Pay for web search and research + +Give your agents access to web search, content extraction, and multi-hop research — pay per query with stablecoins on Tempo. No API keys, no monthly plans, no usage caps. + +## The problem + +Agents that research, summarize, or fact-check need reliable web search. But search APIs require developer accounts, billing setups, and API keys for every provider. Rate limits are tied to pricing tiers, and switching between providers means managing multiple integrations. + +## How MPP solves it + +With MPP, your agent pays per search query or page extraction in a single HTTP request. The agent discovers the price via the `402` Challenge, pays with a stablecoin transfer, and gets results — no signup required. Switch between search providers by changing the URL. + +**Tempo Charge** works well here: each search query is an independent request with a known price. The agent signs a TIP-20 transfer, the provider verifies it in ~500ms, and returns the results. + +## Available services + +| Provider | Capabilities | Service URL | +|---|---|---| +| [Parallel](https://parallelmpp.dev) | Web search, page extraction, multi-hop research | `parallelmpp.dev` | +| [Exa](https://exa.mpp.tempo.xyz) | AI-powered search, content retrieval, answers | `exa.mpp.tempo.xyz` | +| [Brave](https://brave.mpp.paywithlocus.com) | Web, news, images, videos, AI answers | `brave.mpp.paywithlocus.com` | +| [Firecrawl](https://firecrawl.mpp.tempo.xyz) | Web scraping, crawling, structured extraction | `firecrawl.mpp.tempo.xyz` | +| [Diffbot](https://diffbot.mpp.paywithlocus.com) | Article, product, and discussion extraction | `diffbot.mpp.paywithlocus.com` | +| [Oxylabs](https://oxylabs.mpp.tempo.xyz) | Web scraping with geo-targeting and JS rendering | `oxylabs.mpp.tempo.xyz` | + +## Try it + +```bash +# Install Tempo CLI + wallet +curl -L https://tempo.xyz/install | bash && tempo add request && tempo wallet login + +# Search the web via Parallel +tempo request parallelmpp.dev/search \ + -d '{"query": "machine payments protocol"}' +``` + +## Prompt your agent + +``` +Use parallelmpp.dev to search the web via Tempo. +Pay per query with stablecoins — no API key needed. +``` + +## Next steps + + + + + +