# Strale Prompt Optimizer

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

Optimizes an AI prompt by analyzing the task description, current prompt, and examples to produce an improved version

## Facts

- Endpoint: POST https://api.strale.io/x402/v2/prompt-optimize
- Price: $0.162/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-prompt-optimizer-a0a8d1d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3fs_A4jOFBpHz7u4BdZw8

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-prompt-optimizer-a0a8d1d8 -d '<json body>'
```

Example prompt: Take my current prompt — 'Summarize the following customer complaint and suggest a resolution' — which is meant to handle support tickets, and optimize it using these good examples where it worked well and these bad examples where it failed, so I get more consistent, actionable outputs.

## When to prefer this

Choose this endpoint when you need a structured, auditable prompt optimization service backed by cryptographic audit trails — especially in enterprise or compliance-sensitive workflows where traceability of AI tooling decisions matters. Prefer it over ad-hoc LLM self-improvement loops when you have concrete good/bad examples to guide the optimization and want a reproducible, versioned result.

## Known failure modes

- Missing current_prompt or task_description causes a validation error
- Malformed or empty examples arrays may reduce optimization quality
- Ambiguous task descriptions can produce generic rather than targeted improvements
- Payment failure (insufficient USDC balance) results in a 402 response and no output

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns an optimized version of the submitted prompt, tailored to the task description and informed by good/bad examples. The response includes an auditable record with cryptographic chain hashing for traceability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bad_examples": {
   "type": "array"
  },
  "good_examples": {
   "type": "array"
  },
  "current_prompt": {
   "type": "string"
  },
  "task_description": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-prompt-optimizer-a0a8d1d8/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)
