# ScrapFly Content Compose API

> ScrapFly Content Compose API is a paid API for AI agents from scravfly.vercel.app, paid per call via x402, $0.6/call, status unknown (last checked 2026-09-15).

Generates written content from a prompt with customizable tone, style, length, and target audience

## Facts

- Endpoint: POST https://scravfly.vercel.app/api/content/compose
- Price: $0.6/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-content-compose-api-9b6fcf91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zB4pg5qZ0kV_LWyBOVTS1

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-9b6fcf91 -d '<json body>'
```

Example prompt: Can you write a 500-word blog post about the benefits of remote work, in a conversational tone, using simple language aimed at small business owners?

## When to prefer this

Choose this endpoint when you need to programmatically generate written content from a natural language prompt with fine-grained control over tone, style, length, and audience — especially when integrating content generation into an automated workflow that pays per request via x402 on Base chain. Best for agents that need on-demand copywriting without managing an LLM API key directly.

## Known failure modes

- Missing required 'prompt' field returns a validation error
- Overly vague or empty prompt may yield low-quality or generic output
- Payment failure on Base chain results in a 402 response and no content generated
- Very long prompts may be truncated or result in timeouts
- Unsupported tone or style values may be ignored or cause unexpected output

## How this service works

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

## Output

Returns a success boolean and a data object containing the generated text content composed according to the provided prompt, tone, style, length, and audience 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-9b6fcf91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scravfly.vercel.app](https://www.zero.xyz/host/scravfly.vercel.app/llms.txt)
