{"uid":"cap_5yQOCyozEyxYfIssHkxNa","slug":"api-the402-ai-54450994","name":"the402.ai PDF Generation","description":"Purchase: PDF Generation","url":"https://api.the402.ai/v1/services/svc_fa0c3f78361a4baa/purchase","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string"},"thread_id":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.032","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.032/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N2qfYPtljW8Wh4AM0CYZ0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.032","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a PDF document on-demand via a paid API call on the the402.ai agent service marketplace","exampleAgentPrompt":"Can you generate a PDF of the following invoice text for me and return the file: 'Invoice #1042 — Acme Corp — Due: $450.00 — Due Date: June 15, 2025'?","exampleUseCases":null,"resultDescription":"A generated PDF document returned as binary or downloadable content, produced from the submitted input content or parameters, delivered after a $0.032 USDC micropayment via the x402 protocol.","failureModes":["Payment not submitted or insufficient USDC — 402 Payment Required error","Invalid or missing document content — 400 Bad Request","Service temporarily unavailable — 503 error","Malformed input parameters — validation error response","Generation timeout for very large documents"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically generate a PDF document and can pay per-use via USDC micropayment (x402 protocol). Ideal for agentic workflows where PDF creation is a one-off or infrequent task and a subscription service is not warranted.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T16:27:19.293Z","isFirstParty":false}