# Strale API Documentation Generator

> Strale API Documentation Generator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.216/call, status unknown (last checked 2026-09-15).

Generates markdown API documentation from an OpenAPI spec or natural language endpoint description

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/api-docs-generate
- Price: $0.216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-api-documentation-generator-a3daf1d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7OTu_3irCWn732AmYC_Bb

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 strale-api-documentation-generator-a3daf1d1
```

Example prompt: Generate markdown API documentation for my endpoint — here's the OpenAPI spec: {spec contents}. Use GET method and return structured developer-ready docs.

## When to prefer this

Choose this endpoint when you need programmatically generated, structured markdown API documentation from either an OpenAPI spec or a natural language description of an endpoint. Prefer it over manual documentation tools when automation, auditability, and cryptographic trust records are important — especially in agent-driven workflows where documentation needs to be generated at scale or on demand.

## Known failure modes

- Missing required 'input' object or 'method' field returns validation error
- Invalid or malformed OpenAPI spec may produce incomplete or incorrect documentation
- Providing neither openapi_spec nor endpoint_description may result in empty or generic output
- Unsupported HTTP method (e.g. POST, PUT) rejected by method enum constraint
- Network timeout or service unavailability returns error without documentation

## How this service works

Generate markdown API documentation from an OpenAPI spec or natural language description. Returns documentation with parameters, examples, error codes.

## Output

Returns structured markdown API documentation including endpoint descriptions, request/response schemas, parameter tables, usage examples, and any inferred or spec-defined metadata. Each call also returns a cryptographic audit record with chain hashing for trust verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "openapi_spec": {
   "type": "string"
  },
  "endpoint_description": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "markdown": {
  "type": "string"
 },
 "total_endpoints": {
  "type": "integer"
 },
 "endpoints_documented": {
  "type": "array"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-api-documentation-generator-a3daf1d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
