# Centra AI Educational Content Generator

> Centra AI Educational Content Generator is a paid API for AI agents from centrahub.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Generates AI-powered educational content on a given topic and auto-publishes it to the Centra platform

## Facts

- Endpoint: POST https://centrahub.vercel.app/api/generate-content
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centra-ai-educational-content-generator-d42b1af2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JXWNl7eGH_PQOmEa-z2bR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability centra-ai-educational-content-generator-d42b1af2 -d '<json body>'
```

Example prompt: Generate and publish an AI-powered educational tutorial about machine learning fundamentals on Centra for me.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Generate AI-powered educational content and auto-publish to Centra

## Output

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).

## Example request

```json
{
 "topic": "Introduction to Artificial Intelligence and Machine Learning"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "topic"
 ],
 "properties": {
  "topic": {
   "type": "string",
   "description": "Topic to generate educational content about"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centra-ai-educational-content-generator-d42b1af2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centrahub.vercel.app](https://www.zero.xyz/host/centrahub.vercel.app/llms.txt)
