# Rafid Social Video Generator

> Rafid Social Video Generator is a paid API for AI agents from api.rafidsystem.com, paid per call via x402, $1.5/call, status unknown (last checked 2026-10-12).

Generates short-form social media videos from a topic or script for TikTok, Instagram Reels, YouTube Shorts, or generic use

## Facts

- Endpoint: POST https://api.rafidsystem.com/api/v1/x402/video/social-generate?utm_source=zero.xyz
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rafid-social-video-generator-b268fa9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rQ5PcQ41VFQpd7DjdS_wz

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 rafid-social-video-generator-b268fa9f -d '<json body>'
```

Example prompt: Create a 30-second viral TikTok video about sustainable fashion in English, with subtitles and background music, using a 9:16 aspect ratio — auto-select the stock footage and voiceover.

## When to prefer this

Choose this endpoint when you need to programmatically generate short-form social media videos (TikTok, Reels, YouTube Shorts) from a topic or pre-written script, with automatic voiceover, subtitles, background music, and stock footage assembly. Prefer it over static image or text generators when the output must be a playable video file ready for social upload. Best suited for content automation pipelines where video is produced at scale without manual editing.

## Known failure modes

- Topic or script too short or missing — returns validation error
- Duration out of range (below 5s or above 120s) — returns schema validation error
- Upstream MoneyPrinterTurbo task failure — task status may reflect error state
- No suitable stock footage found for topic — materialUrls may be empty
- Insufficient payment or x402 payment failure — request rejected before processing
- Unsupported language or voice combination — may produce degraded or fallback output

## How this service works

Rafid Agent API provides structured intelligence and paid APIs for AI agents across property, company and risk, supplier, finance, document, website, automotive, logistics, recruitment, trading, voice, video and business-planning workflows.

## Output

Returns a JSON object containing a hosted MP4 video URL at the specified resolution and aspect ratio, along with optional audio and subtitle file URLs, the generated or provided script text, task ID, engine provider details, billing confirmation at $1.50 USD, and a timestamp of generation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "style": {
   "type": "string",
   "default": "viral",
   "maxLength": 120
  },
  "topic": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  },
  "voice": {
   "type": "string",
   "default": "auto",
   "maxLength": 128
  },
  "script": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 8000,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "language": {
   "type": "string",
   "default": "en",
   "maxLength": 32,
   "minLength": 2
  },
  "platform": {
   "enum": [
    "tiktok",
    "instagram_reels",
    "youtube_shorts",
    "generic"
   ],
   "type": "string",
   "default": "generic"
  },
  "subtitles": {
   "type": "boolean",
   "default": true
  },
  "aspectRatio": {
   "enum": [
    "9:16",
    "16:9",
    "1:1"
   ],
   "type": "string",
   "default": "9:16"
  },
  "materialSource": {
   "enum": [
    "auto",
    "pexels",
    "pixabay",
    "coverr",
    "local"
   ],
   "type": "string",
   "default": "auto"
  },
  "backgroundMusic": {
   "type": "boolean",
   "default": true
  },
  "durationSeconds": {
   "type": "integer",
   "default": 30,
   "maximum": 120,
   "minimum": 5
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "task": {
   "id": "mpt-task-id",
   "status": "completed"
  },
  "video": {
   "url": "https://video.example/mpt-task-id.mp4",
   "resolution": "1080x1920",
   "aspectRatio": "9:16",
   "durationSeconds": null
  },
  "assets": {
   "audioUrl": null,
   "subtitleUrl": null,
   "materialUrls": []
  },
  "engine": {
   "provider": "MoneyPrinterTurbo",
   "upstreamTaskId": "mpt-task-id"
  },
  "billing": {
   "priceUsd": 1.5
  },
  "content": {
   "script": null,
   "language": "en"
  },
  "success": true,
  "capability": "social_video_generate",
  "generatedAt": "2026-01-01T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rafid-social-video-generator-b268fa9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.rafidsystem.com](https://www.zero.xyz/host/api.rafidsystem.com/llms.txt)
