{"openapi":"3.1.0","info":{"title":"SuperUzerAI Agent API","description":"Pay-per-call USDC API for SuperUzerAI guide search, an Automate Passive Income playbook, Instagram Reel scripts, and local video tools.","version":"1.0.0","x-guidance":"SuperUzerAI sells IT and DevOps eBooks, an Automate Passive Income kit, and Instagram automation apps.\nPay each call in USDC on Solana or Base. An unpaid request returns HTTP 402 before the body is accepted, including an empty or invalid body. The PAYMENT-REQUIRED header lists both networks. Amounts are USDC atomic units (6 decimals, so $0.01 is 10000).\nGET /api/health is free. It returns {\"status\":\"ok\",\"uptimeSeconds\":number} for a liveness check. Do not send a payment.\nSolana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp pays DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk. Base eip155:8453 pays 0x843c449C79fCB0eF37C4cef3dD6762018835c20E.\nAgentCash discovery pays Solana mainnet (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) and Base (eip155:8453). Tempo (eip155:4217) is listed as a testnet and is only used when MPP is enabled. Solana devnet and Base Sepolia are for local 402 tests, not AgentCash wallets.\nGET /api/guides/search?q= costs $0.005 (5000 atomic units). It returns short snippets and a buy URL. Full chapter markdown is not sold here; the eBook files are not part of this API.\nPOST /api/automate-wealth/playbook costs $0.25 (250000 atomic units). JSON body: { \"niche\"?: string, \"audience\"?: string }. Returns a 6-hour launch playbook.\nPOST /api/instagram/reel-script costs $0.10 (100000 atomic units). JSON body: { \"topic\": string, \"angle\"?: string }. Returns hook, script lines, caption, and hashtags. It does not render or upload video.\nA human-readable catalog with prices, curl examples, and the x402 flow is at /agents.\nSchemas, decimal USD prices, and per-network atomic accepts are in /openapi.json.\nHeadless bots pay with @x402/fetch wrapFetchWithPayment. The example is scripts/bot-pay-example.mjs (Solana and Base). Set SOLANA_RPC_URL for the Solana transaction builder. The default is https://solana-rpc.publicnode.com. Do not use https://api.mainnet-beta.solana.com; it returns HTTP 403 to many clients. The 402 omits recentBlockhash because a cached hash expires; fetch a new one immediately before signing. Do not pay from the Solana payout wallet.\nThis API does not call a Solana RPC. Verify and settle are HTTP requests to the PayAI facilitator. Solana extra.feePayer on the 402 comes from that facilitator's /supported response.\nPOST /api/video/caption downloads a public video, transcribes it with local faster-whisper tiny int8 (1 CPU thread), and burns word-level captions. JSON body: { \"url\": string, \"language\"?: string, \"style\"?: \"karaoke\" | \"bold\" | \"minimal\" }. Price is $0.08 per started minute. The maximum input is 60 seconds and 50000000 bytes, so the maximum charge is $0.08.\nPOST /api/video/ffmpeg runs one local ffmpeg operation. thumbnail costs $0.02. trim, reframe (9:16), and audio (mode replace or add) cost $0.03. concat of 2 to 5 videos costs $0.05. Each source must be at most 60 seconds and 50000000 bytes.\nAfter payment the caption and ffmpeg routes return HTTP 202 with jobId, statusUrl, queuePosition, and estimatedWaitSeconds. Jobs run one at a time in a FIFO queue of 20. Poll GET /api/video/jobs/{id} (free, no payment header) until status is done. outputs.mp4Url, outputs.srtUrl, or outputs.imageUrl appears on that poll when the job is done. Do not pay again for the status URL or the signed file URL. Links expire.\nWhen the queue is full the route returns HTTP 503 and Retry-After before any payment is settled, including an unpaid request. A request that is not rejected returns HTTP 402 until it is paid. These tools do not call Google, Gemini, Veo, OpenAI, or a paid speech API.\nBase settlement uses https://facilitator.payai.network and does not need a Coinbase API key. Coinbase Bazaar catalog discovery is not available in this mode.","contact":{"email":"support@superuzerai.com","url":"https://superuzerai.com"}},"servers":[{"url":"https://superuzerai.com"}],"tags":[{"name":"Automate Wealth"},{"name":"Guides"},{"name":"Health"},{"name":"Instagram"},{"name":"Video"}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Free liveness check. Returns status and process uptime. No payment.","tags":["Health"],"security":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"ok"},"uptimeSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["status","uptimeSeconds"],"additionalProperties":false}}}}}}},"/api/guides/search":{"get":{"operationId":"guides_search","summary":"Search guide snippets and return a buy link. $0.005.","tags":["Guides"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"x402":{"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","decimals":6,"amount":"5000"},{"scheme":"exact","network":"eip155:8453","payTo":"0x843c449C79fCB0eF37C4cef3dD6762018835c20E","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"amount":"5000"}]}},"parameters":[{"in":"query","name":"q","schema":{"type":"string","minLength":1,"maxLength":200,"description":"Words to match against guide titles and excerpts"},"required":true,"description":"Words to match against guide titles and excerpts"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"collection":{"type":"string"},"title":{"type":"string"},"snippet":{"type":"string"},"priceUsd":{"type":"number"},"buyUrl":{"type":"string"}},"required":["slug","collection","title","snippet","priceUsd","buyUrl"],"additionalProperties":false}}},"required":["query","results"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/automate-wealth/playbook":{"post":{"operationId":"automate-wealth_playbook","summary":"Structured 6-hour passive-income playbook. $0.25.","tags":["Automate Wealth"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.25"},"protocols":[{"x402":{}}],"x402":{"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","decimals":6,"amount":"250000"},{"scheme":"exact","network":"eip155:8453","payTo":"0x843c449C79fCB0eF37C4cef3dD6762018835c20E","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"amount":"250000"}]}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"niche":{"description":"Product niche, for example DevOps cheat sheets","type":"string","minLength":1,"maxLength":120},"audience":{"description":"Who the offer is for, for example freelance developers","type":"string","minLength":1,"maxLength":120}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"type":"string"},"niche":{"type":"string"},"audience":{"type":"string"},"horizonHours":{"type":"number"},"steps":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"number"},"name":{"type":"string"},"actions":{"type":"array","items":{"type":"string"}}},"required":["hour","name","actions"],"additionalProperties":false}},"includedWithTheGuide":{"type":"array","items":{"type":"string"}},"offer":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"priceUsd":{"type":"number"},"buyUrl":{"type":"string"}},"required":["title","priceUsd","buyUrl"],"additionalProperties":false},{"type":"null"}]},"note":{"type":"string"}},"required":["product","niche","audience","horizonHours","steps","includedWithTheGuide","offer","note"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/instagram/reel-script":{"post":{"operationId":"instagram_reel-script","summary":"Instagram Reel hook, script, caption, and hashtags. $0.10. No video render.","tags":["Instagram"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.10"},"protocols":[{"x402":{}}],"x402":{"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","decimals":6,"amount":"100000"},{"scheme":"exact","network":"eip155:8453","payTo":"0x843c449C79fCB0eF37C4cef3dD6762018835c20E","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"amount":"100000"}]}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":1,"maxLength":160,"description":"Subject of the Reel"},"angle":{"description":"Tone, for example practical or contrarian","type":"string","minLength":1,"maxLength":80}},"required":["topic"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"hook":{"type":"string"},"script":{"type":"array","items":{"type":"string"}},"caption":{"type":"string"},"hashtags":{"type":"array","items":{"type":"string"}},"durationSeconds":{"type":"number"},"offer":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"priceUsd":{"type":"number"},"buyUrl":{"type":"string"}},"required":["title","priceUsd","buyUrl"],"additionalProperties":false},{"type":"null"}]},"note":{"type":"string"}},"required":["hook","script","caption","hashtags","durationSeconds","offer","note"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/video/caption":{"post":{"operationId":"video_caption","summary":"Burn word-level captions. $0.08 per started minute, max $0.08. Returns 202 and a free status URL.","tags":["Video"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.08","max":"0.08"},"protocols":[{"x402":{}}],"x402":{"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","decimals":6,"amount":"80000","minAmount":"80000","maxAmount":"80000"},{"scheme":"exact","network":"eip155:8453","payTo":"0x843c449C79fCB0eF37C4cef3dD6762018835c20E","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"amount":"80000","minAmount":"80000","maxAmount":"80000"}]}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Direct http(s) URL of the source video"},"language":{"description":"Whisper language code, for example en. Omit to detect it.","type":"string","minLength":2,"maxLength":12},"style":{"description":"Caption look. Default is karaoke word highlight.","type":"string","enum":["karaoke","bold","minimal"]}},"required":["url"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","queued"]},"jobId":{"type":"string"},"statusUrl":{"type":"string"},"queuePosition":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimatedWaitSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"durationSeconds":{"type":"number"},"chargedUsd":{"type":"string"},"outputs":{"type":"object","properties":{"mp4Url":{"type":"string"},"srtUrl":{"type":"string"},"imageUrl":{"type":"string"}},"additionalProperties":false},"timingsMs":{"type":"object","properties":{"total":{"type":"number"},"transcribe":{"type":"number"},"ffmpeg":{"type":"number"}},"required":["total"],"additionalProperties":false},"note":{"type":"string"}},"required":["status","jobId","statusUrl","durationSeconds","chargedUsd","note"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/video/ffmpeg":{"post":{"operationId":"video_ffmpeg","summary":"Local ffmpeg: thumbnail $0.02, trim/reframe/audio $0.03, concat $0.05. Returns 202 and a free status URL.","tags":["Video"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.02","max":"0.05"},"protocols":[{"x402":{}}],"x402":{"accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DDBuNmddRxuJ5Kh9wfqhyzXZ7VvsuC5wuNvAMUi2hvMk","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","decimals":6,"amount":"50000","minAmount":"20000","maxAmount":"50000"},{"scheme":"exact","network":"eip155:8453","payTo":"0x843c449C79fCB0eF37C4cef3dD6762018835c20E","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"amount":"50000","minAmount":"20000","maxAmount":"50000"}]}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"trim"},"url":{"type":"string","format":"uri"},"startSeconds":{"type":"number","minimum":0},"endSeconds":{"type":"number","exclusiveMinimum":0}},"required":["op","url","startSeconds","endSeconds"]},{"type":"object","properties":{"op":{"type":"string","const":"concat"},"urls":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"string","format":"uri"}}},"required":["op","urls"]},{"type":"object","properties":{"op":{"type":"string","const":"reframe"},"url":{"type":"string","format":"uri","description":"Source video, cropped to 9:16"}},"required":["op","url"]},{"type":"object","properties":{"op":{"type":"string","const":"audio"},"url":{"type":"string","format":"uri"},"audioUrl":{"type":"string","format":"uri"},"mode":{"type":"string","enum":["replace","add"]}},"required":["op","url","audioUrl"]},{"type":"object","properties":{"op":{"type":"string","const":"thumbnail"},"url":{"type":"string","format":"uri"},"atSeconds":{"type":"number","minimum":0}},"required":["op","url"]}],"type":"object"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","queued"]},"jobId":{"type":"string"},"statusUrl":{"type":"string"},"queuePosition":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimatedWaitSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"durationSeconds":{"type":"number"},"chargedUsd":{"type":"string"},"outputs":{"type":"object","properties":{"mp4Url":{"type":"string"},"srtUrl":{"type":"string"},"imageUrl":{"type":"string"}},"additionalProperties":false},"timingsMs":{"type":"object","properties":{"total":{"type":"number"},"transcribe":{"type":"number"},"ffmpeg":{"type":"number"}},"required":["total"],"additionalProperties":false},"note":{"type":"string"}},"required":["status","jobId","statusUrl","durationSeconds","chargedUsd","note"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/video/jobs/{id}":{"get":{"operationId":"video_jobs_{id}","summary":"Poll a paid video job by id. Free. The result URL is in outputs when status is done. Do not send a payment.","tags":["Video"],"security":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done","queued"]},"jobId":{"type":"string"},"statusUrl":{"type":"string"},"queuePosition":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimatedWaitSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"durationSeconds":{"type":"number"},"chargedUsd":{"type":"string"},"outputs":{"type":"object","properties":{"mp4Url":{"type":"string"},"srtUrl":{"type":"string"},"imageUrl":{"type":"string"}},"additionalProperties":false},"timingsMs":{"type":"object","properties":{"total":{"type":"number"},"transcribe":{"type":"number"},"ffmpeg":{"type":"number"}},"required":["total"],"additionalProperties":false},"note":{"type":"string"}},"required":["status","jobId","statusUrl","durationSeconds","chargedUsd","note"],"additionalProperties":false}}}}}}}}}