# Prompt Optimizer

> Prompt Optimizer is a paid API for AI agents from prompt-optimizer.johntaylor1online.workers.dev, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-11).

Optimizes and improves user-provided prompts for better AI model performance via a paid API endpoint

## Facts

- Endpoint: POST https://prompt-optimizer.johntaylor1online.workers.dev/optimize?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prompt-optimizer-831f052e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K4hno8nwTmEP1eBjGgSTR

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-optimizer-831f052e -d '<json body>'
```

Example prompt: Can you optimize this prompt I've been using so it gets better results from my AI model: 'Summarize the following article in a professional tone and highlight the key takeaways'?

## When to prefer this

Choose this endpoint when you need to programmatically improve AI prompts at scale, especially in automated pipelines where prompt quality directly impacts downstream model output. Useful for developers building prompt management tools, fine-tuning workflows, or agent frameworks where prompt quality is critical. Best for single-prompt optimization with immediate results rather than batch processing.

## Known failure modes

- Missing required input fields returns a 400 error
- Malformed JSON body causes request rejection
- Payment failure via x402 protocol results in 402 Payment Required response
- Empty or extremely short prompt text may yield low-quality optimization
- Rate limiting or worker timeout may occur for very long prompts

## How this service works

Prompt Optimizer

## Output

Returns an optimized version of the submitted prompt, refined for clarity, specificity, and performance when used with AI models. The response includes the improved prompt text and potentially additional metadata about the changes made.

## 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-optimizer-831f052e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prompt-optimizer.johntaylor1online.workers.dev](https://www.zero.xyz/host/prompt-optimizer.johntaylor1online.workers.dev/llms.txt)
