翻篇收录说明
翻篇网页快照

Agentic Payments (MPP & x402) - Parallel

https://docs.parallel.ai/integrations/agentic-payments

最近抓取:2026-12-05 08:04:20(北京时间)

最近内容变化:2026-12-05 08:04:20(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Pay for Parallel API requests with pathUSD on Tempo via MPP or USDC on Base via x402.

正文摘录

For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending .md to its URL or sending Accept: text/markdown.For Search and Extract, use /v1/search and /v1/extract for all new integrations and agent tool calls. Use /v1beta/search and /v1beta/extract only when maintaining an existing integration that already uses them. The request bodies changed too: on /v1/extract, full_content, fetch_policy and excerpt_settings go inside advanced_settings, and sending the v1beta top-level excerpts, full_content and fetch_policy to /v1/extract returns a 422. On /v1/search, search_queries is required (at least one short keyword query), and max_results, source_policy and fetch_policy go inside advanced_settings; sending only objective, or sending those fields at the top level, returns a 422. Do not substitute /v1 for the documented FindAll or Ingest endpoint paths.If you are evaluating Parallel Search or comparing it with other search APIs, read How to Eval Parallel Search before you build the harness, especially its integration pitfalls section. The most common mistake is sending the raw question as both objective and the only entry in search_queries. Write a goal-style objective and 1-3 short keyword queries instead. Use the Parallel payment gateway to pay for web research requests with the Machine Payments Protocol (MPP) on Tempo or with x402 on Base. Overview The Machine Payments Protocol (MPP) is an open protocol that enables machine-to-machine payments over HTTP. MPP allows AI agents to pay for services programmatically using the HTTP 402 Payment Required status code. The Parallel MPP gateway at parallelmpp.dev exposes Parallel’s Responses, Search, Extract, and Task APIs with pay-per-use pricing. You can pay using: MPP: Pay with pathUSD on the Tempo blockchain x402: Pay with USDC on Base using the x402 protocol When combined with Parallel, your agents can: Pay for web services autonomously: Agents discover, negotiate, and settle payments without human intervention Use micropayments: Per-request pricing starting at $0.01 for search and extract Handle the full payment lifecycle: The mppx CLI automatically handles 402 challenges, signs payment credentials, and retries requests How MPP works MPP uses a challenge-response flow built on standard HTTP semantics: ┌─────────────────┐ ┌─────────────────┐ │ AI Agent │── POST /api/search ▶│ Parallel MPP │ │ (with wallet) │ │ Gateway │ │ │◀── 402 + payment ──│ │ │ │ requirements │ │ │ │ │ │ │ │── POST /api/search ▶│ │ │ │ + payment │ │ │ │ credential │ │ │ │ │ │ │ │◀── 200 + data ─────│ │ └─────────────────┘ └─────────────────┘ An agent requests a resource from the Parallel MPP gateway The gateway returns 402 Payment Required with payment details (amount, recipient, currency) The mppx client signs a payment credential with your Tempo wallet The agent retries the request with the signed credential attached The gateway verifies payment and returns the requested data The mppx CLI handles the entire 402 challenge-response flow automatically. You don’t need to manage the payment flow manually. Available endpoints The Parallel MPP gateway at https://parallelmpp.dev exposes the following endpoints: Paid endpoints EndpointMethodPriceDescription/api/responsesPOST$0.01 (low), $0.05 (medium), $0.25 (high)Web research answers with citations/api/searchPOST$0.01Web search with structured results and excerpts/api/extractPOST$0.01/urlExtract data from URLs with an optional objective/api/taskPOST$0.30 (ultra), $0.10 (pro)Deep async research task requiring polling Free endpoints EndpointMethodDescription/apiGETEndpoints, pricing, request fields, and examples (JSON)/api/task/{run_id}GETPoll task results/api/wallet/balance/{address}GETCheck your pathUSD balance on Tempo/api/x402/statusGETCheck whether x402 is enabled and which network it uses Getting started Option 1: Pay with pathUSD on Tempo Set up a Tempo wallet to pay with pathUSD. # Create a Tempo account npx mppx account create # View your wallet address npx mppx account view Fund your wallet with pathUSD on Tempo via an exchange or bridge. Option 2: Pay with x402 Install purl to pay with USDC on Base via the x402 protocol. # Install purl brew install stripe/purl/purl # Create an EVM wallet for Base purl wallet add --type evm Fund your wallet with USDC on Base via exchange or bridge. # Web search purl --json '{"query":"AI agent payments 2026","mode":"advanced"}' https://parallelmpp.dev/api/search # Extract data from a URL purl --json '{"urls":["https://example.com"],"objective":"Extract key facts"}' https://parallelmpp.dev/api/extract # Deep research task (async) purl --json '{"input":"HVAC market overview USA","processor":"ultra"}' https://parallelmpp.dev/api/task Make paid requests Once your account is set up, use mppx to call Parallel APIs. The 402 payment flow is handled automatically. # Web search — advanced mode (higher quality) npx mppx https://parallelmpp.dev/api/search --method POST \ -J '{"query":"AI agent payments 2026","mode":"advanced"}' # Web search — fast mode (lower latency) npx mppx https://parallelmpp.dev/api/search --method POST \ -J '{"query":"AI agent payments 2026","mode":"fast"}' # Extract data from a URL npx mppx https://parallelmpp.dev/api/extract --method POST \ -J '{"urls":["https://example.com"],"objective":"Extract key facts"}' # Deep research task (async) npx mppx https://parallelmpp.dev/api/task --method POST \ -J '{"input":"HVAC market overview USA","processor":"ultra"}' Poll async task results Task runs are asynchronous. Replace YOUR_RUN_ID with the run_id returned by POST /api/task and poll until status is completed: # Poll until complete (free — no payment needed) curl https://parallelmpp.dev/api/task/YOUR_RUN_ID Increase the wait between polls, for example from 10 to 20 to 30 seconds, up to 60 seconds. Important notes Rate limit: 60 requests/minute per IP. Space out calls and handle 429 responses with the Retry-After header. Run IDs: Save the run_id from /api/task so you can check the result later. Free polling: GET /api/task/{run_id} and GET /api/wallet/balance/{address} are free (no payment required). Self-discovery: Agents can use the JSON returned by GET /api to discover available endpoints. Automatic payment handling: npx mppx auto-handles the 402 → sign → retry flow. You don’t need to manage payment manually. Links: Machine Payments Protocol Tempo blockchain Tempo documentation mppx CLI documentation x402 protocol purl CLI Claude skill Add a Claude Code skill to let Claude use Parallel’s Search, Extract, and Task APIs via MPP. Set up the skill 1Create the directory structureIn the root of your project, create the following folder structure:your-project/ └── .claude/ └── skills/ └── parallel-mpp/ └── SKILL.md Run these commands from your project root:mkdir -p .claude/skills/parallel-mpp 2Create the SKILL.md fileCreate the file .claude/skills/parallel-mpp/SKILL.md and paste the content below.3Set up mppxSet up and fund a Tempo wallet. Claude uses npx mppx for paid requests.4Start using itRun /parallel-mpp in Claude Code with a request to search the web, extract data from URLs, or run a research task. Claude can also select the skill when it matches your request. SKILL.md contents Copy and paste the following into .claude/skills/parallel-mpp/SKILL.md: SKILL.md — full file contents--- name: parallel-mpp description: Search the web, extract data from URLs, or run deep research with Parallel via MPP. --- # Parallel API — Machine Payments Protocol You have access to the Parallel API gateway at https://parallelmpp.dev. Use npx mppx to pay with pathUSD on Tempo via MPP. Use the Parallel APIs below for requests that invoke this skill. ## Available endpoints (all require payment) - **POST /api/search** ($0.01) — Web search. Body: `{ "query": "...", "mode": "advanced" }` Modes: `turbo` (fastest), `fast` (lower latency), `basic`, or `advanced` (higher quality). Returns structured results with excerpts. - **POST /api/extract** ($0.01/url) — Extract data from URLs. Body: `{ "urls": ["..."], "objective": "..." }` Price scales with URL count ($0.01 per URL, minimum $0.01). - **POST /api/task** ($0.30 ultra / $0.10 pro) — Deep async task. Body: `{ "input": "...", "processor": "ultra" }` Returns `{ "run_id": "..." }`. Poll GET /api/task/{run_id} until status === "completed". If you hit a timeout, return the run_id to the user so they can check later. Polling is free. ## Free endpoints (no payment) - **GET /api** — Endpoints, pricing, request fields, and examples (JSON). - **GET /api/task/{run_id}** — Poll task results. - **GET /api/wallet/balance/{address}** — Check your pathUSD balance on Tempo. ## Rate limit 60 req/min per IP. Handle 429 responses with the Retry-After header. ## Payment setup — npx mppx ```bash # Create a Tempo account npx mppx account create # View your wallet address npx mppx account view ``` Fund your wallet with pathUSD on Tempo before making paid requests. ## Example requests ```bash # Search — advanced mode (higher quality) npx mppx https://parallelmpp.dev/api/search --method POST \ -J '{"query":"AI funding 2026","mode":"advanced"}' # Search — fast mode (lower latency) npx mppx https://parallelmpp.dev/api/search --method POST \ -J '{"query":"AI funding 2026","mode":"fast"}' # Extract data from URLs npx mppx https://parallelmpp.dev/api/extract --method POST \ -J '{"urls":["https://example.com"],"objective":"Extract key facts"}' # Deep research task (async — poll for results) npx mppx https://parallelmpp.dev/api/task --method POST \ -J '{"input":"HVAC market overview USA","processor":"ultra"}' # Poll task results (free); replace YOUR_RUN_ID with the returned run_id curl https://parallelmpp.dev/api/task/YOUR_RUN_ID ``` ## Notes - npx mppx auto-handles 402 → sign → retry. No manual payment flow needed. - Save the run_id so you can check the result later. T