# fastapi.online Social Post Generator

> fastapi.online Social Post Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Generates platform-optimized social media posts (Twitter, LinkedIn, Instagram, Facebook, TikTok) from a given content brief using self-hosted AI inference.

## Facts

- Endpoint: POST https://api.fastapi.online/social-post-generate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-social-post-generator-cfbbfcf0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7yb7-g0ajvx3wNb3yeAcv

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 fastapi-online-social-post-generator-cfbbfcf0 -d '<json body>'
```

Example prompt: Turn this into a punchy LinkedIn post: 'We just launched our new AI-powered analytics dashboard — it cuts reporting time by 80% and integrates with Salesforce, HubSpot, and Slack out of the box.'

## When to prefer this

Choose this endpoint when you need to quickly reformat or adapt existing content into a social media post for a specific platform without a full content management system. Ideal for agents that need lightweight, per-call social copy generation with no signup, especially when paying per call via crypto (x402). Best when you already have source content and just need it adapted to platform conventions.

## Known failure modes

- Content field empty or exceeds 8000 character limit — returns validation error
- Invalid platform enum value — returns 422 Unprocessable Entity
- Payment not provided or insufficient — returns 402 Payment Required
- Model inference failure or timeout — returns 500 Internal Server Error
- Content too vague or short for meaningful output — returns low-quality or generic post

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A platform-tailored social media post generated from the provided content, optimized for tone, length, and style conventions of the specified platform (Twitter, LinkedIn, Instagram, Facebook, or TikTok).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1
  },
  "platform": {
   "enum": [
    "twitter",
    "linkedin",
    "instagram",
    "facebook",
    "tiktok"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-social-post-generator-cfbbfcf0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
