{"uid":"cap_xavJ5bsMj1fke9UYj4x14","slug":"prompt-orchestration-api-375812ed","name":"Prompt Orchestration API","description":"Execute a multi-step prompt chain with state tracking and optional final synthesis","url":"https://prompt-orchestration-api.johntaylor1online.workers.dev/orchestrate","method":"POST","headers":{},"bodySchema":{"$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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__digSMRRCCW1j79oz0IbV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Execute a multi-step prompt chain with state tracking and optional final synthesis across sequential LLM calls","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Research report generation pipeline","prompt":"I need to generate a research report in stages — first have the AI brainstorm key themes from my notes, then expand each theme into a paragraph, then synthesize everything into a coherent final report. Can you run that as a chained prompt sequence with state tracked between steps?"},{"title":"Multi-step customer support script drafting","prompt":"Can you orchestrate a prompt chain that first analyzes this customer complaint, then drafts three possible response tones, then synthesizes the best combined reply — tracking what was decided at each step?"},{"title":"Code review and improvement pipeline","prompt":"Run a sequential prompt pipeline on this code snippet: step one is to identify bugs, step two is to suggest improvements, step three is to synthesize a cleaned-up final version — make sure the state from each step carries into the next."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:34:11.692Z","isFirstParty":false}