# ScrapFly Content Compose API

> ScrapFly Content Compose API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-24).

Generates composed written content based on a prompt with configurable tone, style, length, and audience

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/content/compose?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-content-compose-api-af33d38c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c9qDs8v1mSWNruZNvjDSe

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 scrapfly-content-compose-api-af33d38c -d '<json body>'
```

Example prompt: Can you compose a 500-word blog post about the benefits of remote work, written in an informative tone, using a conversational style, aimed at small business owners?

## When to prefer this

Choose this endpoint when you need AI-generated written content with explicit control over tone, style, length, and audience — especially when integrating into an automated content pipeline that pays per-request via x402 on Base chain. Prefer over generic LLM APIs when you need a simple REST interface with USDC micropayment billing and no API key management.

## Known failure modes

- Missing required prompt field returns validation error
- Overly vague prompt may produce generic or low-quality output
- Very long prompts may exceed processing limits
- Invalid or unsupported tone/style values may be ignored or cause errors
- Timeout if generation takes too long for complex prompts

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing the generated/composed content text based on the provided prompt and style parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "tone": {
   "type": "string",
   "description": "tone"
  },
  "style": {
   "type": "string",
   "description": "style"
  },
  "length": {
   "type": "string",
   "description": "length"
  },
  "prompt": {
   "type": "string",
   "description": "prompt"
  },
  "audience": {
   "type": "string",
   "description": "audience"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-content-compose-api-af33d38c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
