{"uid":"cap_3fs_A4jOFBpHz7u4BdZw8","slug":"strale-prompt-optimizer-a0a8d1d8","name":"Strale Prompt Optimizer","description":"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.","url":"https://api.strale.io/x402/v2/prompt-optimize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bad_examples":{"type":"array"},"good_examples":{"type":"array"},"current_prompt":{"type":"string"},"task_description":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.162","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.162/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.162","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.162","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1uv4CGxM4hdSmj7mCMzjk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.162","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Optimizes an AI prompt by analyzing the task description, current prompt, and examples to produce an improved version","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Fixing a flawed customer support prompt","prompt":"My customer support prompt keeps giving vague responses. Here's the current prompt: 'Handle this customer issue.' The task is to triage and resolve billing complaints. I have 3 examples where it worked and 2 where it totally failed — can you optimize the prompt so it's more specific and reliable?"},{"title":"Improving a code-generation system prompt","prompt":"I'm building a coding assistant and my system prompt — 'Write clean Python code for the following task' — produces inconsistent results. Can you optimize it using my good and bad output examples so it always follows PEP-8 and includes docstrings?"},{"title":"Refining a content-moderation classifier prompt","prompt":"I need to improve this content moderation prompt: 'Decide if this post violates community guidelines.' The task is to flag hate speech and spam. Here are examples of correct and incorrect classifications — please optimize the prompt to reduce false positives."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:45.102Z","isFirstParty":false}