# Peyon Logline Doctor

> Peyon Logline Doctor is a paid API for AI agents from peyon.ai, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-29).

Analyzes a screenplay logline across seven dramatic elements (protagonist, flaw, inciting incident, goal, opposition, stakes, irony), scores it 1–10, and returns three rewritten versions with stated assumptions.

## Facts

- Endpoint: GET https://peyon.ai/api/logline?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/peyon-logline-doctor-26d7cbac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NOWPrpTjRFzbT7FOSliAo

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 peyon-logline-doctor-26d7cbac
```

Example prompt: Can you run a script consultant check on my logline and score it? Here it is: 'A burned-out marine biologist must race to stop a rogue oil company from poisoning the last whale breeding ground before the annual migration ends — or lose the only family she has left.'

## When to prefer this

Choose this endpoint when you need structured, element-by-element script consultant feedback specifically on a logline (not a full synopsis or treatment). It is distinct from the Peyon story structure read (which covers Hero's Journey stages) and the character archetype read (which analyzes characters via Vogler's archetypes). Use this when the user explicitly wants to evaluate or improve a one-to-three sentence premise statement for a screenplay or pitch.

## Known failure modes

- Empty or missing 'text' query parameter returns an error
- Logline text exceeding 1000 characters is rejected by schema validation
- Extremely short or incoherent input may produce a low score with minimal rewrite quality
- Payment not provided (402 response) when x402 header is absent or invalid
- Network timeout for unusually long LLM inference

## How this service works

Script consultant read of a logline: checks protagonist, flaw, inciting incident, goal, opposition, stakes and irony, scores it 1 to 10, and gives three rewrites with any added assumptions listed.

## Output

A structured critique covering all seven dramatic elements (protagonist, flaw, inciting incident, goal, opposition, stakes, irony) with individual observations, an overall numeric score from 1 to 10, and three rewritten logline alternatives each accompanied by a list of any assumptions the consultant added to fill gaps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 1000
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/peyon-logline-doctor-26d7cbac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from peyon.ai](https://www.zero.xyz/host/peyon.ai/llms.txt)
