# Prompt Orchestration API

> Prompt Orchestration API is a paid API for AI agents from prompt-orchestration-api.johntaylor1online.workers.dev, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-15).

Execute a multi-step prompt chain with state tracking and optional final synthesis across sequential LLM calls

## Facts

- Endpoint: POST https://prompt-orchestration-api.johntaylor1online.workers.dev/orchestrate
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prompt-orchestration-api-375812ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xavJ5bsMj1fke9UYj4x14

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 prompt-orchestration-api-375812ed -d '<json body>'
```

Example prompt: Run a multi-step prompt chain for me: first summarize this document, then extract key action items from the summary, then synthesize a final executive briefing — track the state across all three steps and give me the final synthesized output.

## When to prefer this

Choose this endpoint when you need to run multiple LLM prompts sequentially where each step can depend on or build upon previous results, and you want state to be tracked automatically across the chain. It is especially useful when a final synthesis or aggregated answer is needed from disparate intermediate outputs — more powerful than a single-prompt call and more structured than manually chaining prompts in your own code.

## Known failure modes

- Malformed input schema causing 400-level rejection if required type or method fields are missing
- State tracking failure if intermediate steps produce incompatible outputs
- Synthesis step failure if prior steps return empty or conflicting results
- Timeout on long chains with many steps
- Payment failure via x402 protocol resulting in 402 response before execution begins

## How this service works

Execute a multi-step prompt chain with state tracking and optional final synthesis

## Output

The agent receives the outputs from each step in the prompt chain, the tracked state across all steps, and optionally a final synthesized response that combines or summarizes the intermediate results into a coherent conclusion.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "body": {},
     "enum": [
      "POST"
     ],
     "type": "string",
     "bodyType": "json"
    }
   },
   "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/prompt-orchestration-api-375812ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prompt-orchestration-api.johntaylor1online.workers.dev](https://www.zero.xyz/host/prompt-orchestration-api.johntaylor1online.workers.dev/llms.txt)
