{"uid":"cap_JXWNl7eGH_PQOmEa-z2bR","slug":"centra-ai-educational-content-generator-d42b1af2","name":"Centra AI Educational Content Generator","description":"Generate AI-powered educational content and auto-publish to Centra","url":"https://centrahub.vercel.app/api/generate-content","method":"POST","headers":{},"bodySchema":{"type":"object","required":["topic"],"properties":{"topic":{"type":"string","description":"Topic to generate educational content about"}}},"responseSchema":{"type":"object","properties":{"access":{"type":"object","properties":{"contentUrl":{"type":"string"},"previewUrl":{"type":"string"}}},"message":{"type":"string"},"payment":{"type":"object","properties":{"from":{"type":"string"},"amount":{"type":"number"},"txHash":{"type":"string"}}},"success":{"type":"boolean"},"tutorial":{"type":"object","properties":{"id":{"type":"string"},"price":{"type":"string"},"title":{"type":"string"},"preview":{"type":"string"},"createdAt":{"type":"string"}}}}},"example":{"request":{"topic":"Introduction to Artificial Intelligence and Machine Learning"},"response":{"access":{"contentUrl":"/api/content?id=content_1781238740720_iociti2a4","previewUrl":"/api/preview?id=content_1781238740720_iociti2a4"},"message":"Educational content generated and published successfully","payment":{"from":"0x9CC42f3d9245B867ACccd630B43f906c1665b176","amount":0.03,"txHash":"0xb0fb5fc515699799dab2d77ac16f73fcf884b4e3e0e82804e868d6f9655b1e51"},"success":true,"tutorial":{"id":"content_1781238740720_iociti2a4","price":0.01,"title":"Introduction to Artificial Intelligence and Machine Learning","preview":"# Introduction to Artificial Intelligence and Machine Learning ## Overview This tutorial provides a foundational understanding of Artificial Intelligence (AI)...","createdAt":"2026-06-12T04:32:20.720Z"}}},"exampleRequest":{"topic":"Introduction to Artificial Intelligence and Machine Learning"},"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jszRIE5FxzZwrUF7GqyTK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI-powered educational content on a given topic and auto-publishes it to the Centra platform","exampleAgentPrompt":"Generate and publish an AI-powered educational tutorial about machine learning fundamentals on Centra for me.","exampleUseCases":null,"resultDescription":"Returns a success flag, a tutorial object (with ID, title, preview text, price, and creation timestamp), access URLs (content URL and preview URL), a confirmation message, and payment details (sender address, amount, transaction hash).","failureModes":["Missing required 'topic' field returns validation error","Payment of $0.03 USDC fails or is insufficient, blocking content generation","Topic too vague or empty string causes poor or failed AI generation","Network timeout during AI generation step","Centra publishing step fails after generation, leaving content unpublished","Invalid x402 payment header results in 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need to instantly generate and host a structured educational tutorial on a specific topic with automatic publishing to the Centra platform, paying only $0.03 USDC per piece. Prefer this over manual content pipelines when you want AI-drafted lessons auto-published without separate CMS steps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:10.765Z","isFirstParty":false}