The best AI prompt optimization tool depends on one question: do you have labeled examples? Without them, use a one-click rewriter for your model (OpenAI's optimizer, Amazon Bedrock) and check the result with a neutral scorer like PromptEval. With 50+ examples and a metric, use DSPy (MIPROv2 or GEPA). Then prove the rewrite is better with Promptfoo or a batch A/B test.
On November 30, 2026, OpenAI shuts down its Evals platform, and the dataset-backed prompt optimizer goes with it, according to OpenAI's own optimizer guide. Anthropic's prompt improver page now redirects to a general prompting guide. Two of the most recommended free optimizers changed in the same year, so we rechecked every tool on this list against its vendor's page on November 17, 2026.
Disclosure: PromptEval publishes this page and is one of the ten tools. Its entry lists what it doesn't do, like the others.
The 10 best AI prompt optimization tools at a glance
| Tool | Type | Needs a dataset? | Free | Paid from | Optimizes for |
|---|---|---|---|---|---|
| OpenAI prompt optimizer | One-click rewriter | No (chat mode) | Yes, in the dashboard | No separate price | OpenAI models |
| Amazon Bedrock prompt optimization | One-click rewriter, plus an eval-driven mode | Simple: no. Advanced: yes | Pay per use | Bedrock usage pricing | The Bedrock model you pick (Claude, Llama, Nova, Mistral…) |
| PromptHub | Prompt enhancer inside a prompt manager | No | 10 enhancements/month, prompts public | $12/month (Pro) | Any model, your API key |
| PromptEval | Structural score, token optimizer, adapt-to-provider rewrite | No | 3 credits/month, no card | $9/month (Basic) | GPT, Claude and Gemini guides |
| Aiven Prompt Optimizer | Free web rewriter | No | Free | None | Generic |
| DSPy (MIPROv2, GEPA) | Metric-driven optimizer | Yes | Open source (MIT) | Your model costs | Any model |
| TextGrad | Metric-driven, multi-step pipelines | Yes | Open source | Your model costs | Any model |
| llama-prompt-ops | Metric-driven, Llama migration | Yes, from ~50 pairs | Open source (MIT) | Your model costs | Llama models |
| Braintrust Loop | AI agent that edits prompts from eval results | Yes (your logs and datasets) | Starter $0, model credits | $249/month per org (Pro) | Any model |
| Promptfoo | Verifies the rewrite (tests, red teaming) | Test cases | Community: free, open source | Enterprise (custom) | Any provider |
What changed in 2026: the free optimizers that closed or shrank
If you bookmarked a "best prompt optimizer" list last year, three of its picks may not work the way it says. These are the changes with a date and a primary source:
| Date | What changed | Source | Where to go instead |
|---|---|---|---|
| Aug 2026 | Anthropic retires the Console Workbench; the Playground that replaces it has no saved prompts or prompt evaluation. The prompt improver docs page now redirects to the general best practices guide. | Claude Help Center | Rewrite by hand against Anthropic's best practices, or PromptEval's adapt-to-Claude rewrite |
| Sep 1, 2026 | PromptPerfect goes offline after Elastic's acquisition of Jina AI | Notice on the PromptPerfect homepage | See our PromptPerfect alternatives |
| Oct 31, 2026 | OpenAI Evals becomes read-only for existing users | OpenAI deprecations | Export datasets and graders now |
| Nov 30, 2026 | OpenAI Evals shuts down, taking the dataset-backed prompt optimizer with it; /v1/prompts objects shut down the same day | OpenAI optimizer guide | Promptfoo (OpenAI's migration target) for tests; DSPy for dataset-driven optimization |
The pattern matters more than any single date. A first-party rewriter is a feature, and a vendor can retire a feature with one changelog entry. If an optimizer sits in the middle of your workflow, pick one whose code or output you keep when the product changes.
Two kinds of prompt optimizer, and which one you need
A one-click prompt optimizer is a tool that rewrites a single prompt against a set of best practices, with no data beyond the prompt itself. A metric-driven prompt optimizer is a program that generates prompt variants, scores each one on your labeled examples, and keeps the variant with the best score. Most "best tools" lists mix the two, which is how people end up installing DSPy for a prompt they could have fixed in ten minutes.
| Your situation | You need | Start with |
|---|---|---|
| One prompt, no examples, it "sort of works" | One-click rewrite, then a score | Your model vendor's optimizer + PromptEval |
| Same prompt must run on GPT and Claude | A rewrite checked against both guides | PromptEval's format check, then adapt per provider |
| 50+ labeled examples and one metric that matters | Metric-driven search | DSPy (MIPROv2 first, GEPA if you have rich feedback) |
| Moving prompts from GPT or Claude to Llama | Migration optimizer | llama-prompt-ops |
| Prompts already logged in production | Optimization from traces | Braintrust Loop |
One-click rewriters: no dataset, one model in mind
OpenAI prompt optimizer: free, GPT-only, half of it leaving
In the OpenAI dashboard, you paste a prompt into a chat interface and the optimizer returns a rewrite based on OpenAI's current prompting practices: contradictions removed, output format stated, instructions grouped. That chat mode is still documented. The other mode, which ran in the background against a dataset of outputs, annotations and grader results, is the one leaving with Evals on November 30.
Watch out: the rewrite follows OpenAI's guide, and the result often fails Anthropic's and Google's. Our test below shows how far apart they land.
Amazon Bedrock prompt optimization: the only first-party option for non-OpenAI models
Bedrock offers two levels. Simple optimization is a fast heuristic rewrite of one short prompt for one model; AWS says it works best around 1k tokens or less and uses no evaluation data. Advanced optimization lets your evaluation steer the rewrite across several models. You pick the target model (Claude, Llama, Mistral, Amazon Nova, DeepSeek-R1 are on the supported list), click the wand icon in a playground or Prompt management, and compare the two versions side by side.
Watch out: the supported-model table lags the newest releases, and AWS recommends writing the prompt in English for best results.
PromptHub: enhancements inside a prompt manager
PromptHub is a prompt management platform with versioning and team features; its "prompt enhancements" rewrite a prompt in place. Pricing as of November 17, 2026: Free gets 10 enhancements and 2,000 requests a month, but every prompt on the free plan is public. Pro is $12 a month (200 enhancements), Team $20 per user (500). You bring your own model API key.
Watch out: public-only prompts on the free plan rule it out for anything containing business logic.
PromptEval: score, compress, and adapt to a provider
PromptEval works on the prompt text before any run. The eval scores a prompt from 0 to 100 on clarity, specificity, structure and robustness. The token optimizer compresses redundant phrasing while keeping intent; the counter on prompt-eval.com showed 2,398 prompts evaluated and 85,218 tokens saved on November 17, 2026. "Adapt for provider" restructures a prompt to the GPT, Claude or Gemini guide without changing what it asks, and the result is rechecked by the same 18-rule lint, so you see the before and after rule by rule.
Free: 3 credits a month shared across eval, optimizer and prompt map, no card. The full diagnosis, improved version and adapt-for-provider rewrite start on Basic ($9 a month); Pro ($19) is unlimited and adds batch A/B tests and a CI gate through a GitHub Action.
Doesn't do: automated search over hundreds of variants, or tracing LLM calls in production.
Aiven Prompt Optimizer: a free rewriter with no strings
Aiven's tool rewrites a prompt for clarity, structure and token use, with options to add examples or shorten. It's free, sends the prompt only when you click optimize, and says prompts aren't used for training. It names no target model, so treat the output as a generic cleanup.
What a one-vendor rewrite misses: we linted three versions
To see how much a vendor-tuned rewrite carries over, we took a weak support-routing prompt and wrote two optimized versions by hand: one following OpenAI's guide (Markdown sections, JSON shape) and one following Anthropic's (XML tags, a worked example, the reason behind the rules). Then we ran all three through PromptEval's provider lint, the same deterministic code behind the free prompt format checker (rules version 2026-08-v2).
Original · 136 characters
GPT-style rewrite · 694 characters
Claude-style rewrite · 1,025 characters
| Version | OpenAI guide | Anthropic guide | Google guide |
|---|---|---|---|
| Original | 1/3 | 2/5 | 1/4 |
| GPT-style rewrite | 3/3 | 2/5 | 3/4 |
| Claude-style rewrite | 3/3 | 5/5 | 5/5 |
The GPT-style rewrite fixed everything OpenAI's guide asks for but left the Anthropic count at 2 of 5. It still had no XML tags, no wrapped example and no reason behind its rules, the three things Anthropic's guide recommends that OpenAI's doesn't stress. The Claude-style version happened to satisfy all three guides, mostly because a worked example and a stated reason count for Google too.
One limit, stated plainly: the lint checks whether each guide's recommendations are present. It doesn't measure the answers the prompt produces, and passing all three guides is no promise of better output. That's what the verification step further down is for.
Metric-driven optimizers: when you have labeled examples
These tools search instead of rewrite. Each one proposes variants, runs them on your examples, scores the outputs and keeps what wins, which means the quality ceiling is your metric. A sloppy metric gets optimized just as hard as a good one.
| Algorithm | From | What it changes | Where you'll meet it |
|---|---|---|---|
| OPRO | Google DeepMind, 2023 | An LLM proposes and scores successive rewrites of the instruction | Research code; the idea behind most one-click tools |
| ProTeGi | Microsoft, 2023 | Turns errors into written "gradients" and edits the prompt with beam search | Research code |
| MIPROv2 | Stanford DSPy, 2024 | Instructions and few-shot examples, tuned together | DSPy's default for most tasks |
| TextGrad | Stanford, 2024 | Feedback propagated back through multi-step pipelines | The textgrad library |
| GEPA | 2025 (arXiv 2507.19457) | Reflects on execution traces and evolves instructions | dspy.GEPA and the gepa package |
DSPy: the open-source default
DSPy (MIT license) treats prompts as modules in a Python program and compiles them against your data. MIPROv2 is the usual first optimizer. dspy.GEPA is the newer one: it needs a strong reflection model, uses a training set to propose instruction changes and a validation set to keep score, and its paper reports beating both reinforcement-learning fine-tuning (GRPO) and MIPROv2 with far fewer rollouts. Expect a day of setup if you've never written a DSPy metric.
Best for: classification, extraction and RAG answers where correctness can be scored in code. Weak fit for open-ended writing.
TextGrad: for errors that show up three steps later
TextGrad applies the logic of backpropagation to text: an LLM writes feedback on the final output and passes it back to the instruction that caused it. That fits agent pipelines where the bad answer appears several calls after the prompt that went wrong. It's research-grade; production write-ups are still rare.
llama-prompt-ops: moving prompts to Llama
Meta's llama-prompt-ops (MIT) takes an existing system prompt, a JSON file of question-answer pairs (as few as 50) and a YAML config, and optimizes the prompt for Llama models. The package is still at version 0.0.7, so pin the version you test with.
Braintrust Loop: optimization from your own logs
Loop is an AI agent inside Braintrust that reads your logs, experiments and datasets and can create or edit prompts, scorers and datasets, asking for approval before each change. It runs on monthly model credits; the Starter plan is $0 and Pro is $249 a month per organization. It's the strongest pick here once traffic exists, and overkill before it does.
How to check that the optimized prompt is actually better
Every optimizer above returns a prompt that looks better. Looking better is cheap. To know, run the old and new versions on the same inputs:
- Hold out inputs the optimizer never saw. At least 20 real ones. Metric-driven tools overfit to their training set; a held-out set catches it.
- Include the awkward cases. Empty input, two requests in one message, another language, an instruction hidden in user text. Robustness is the weakest dimension in 96% of the 1,018 prompts in PromptEval's State of Prompt Quality report (2026-Q3), averaging 31.5 out of 100, and edge cases are where an optimized prompt usually breaks.
- Score both versions with the same judge or assertions. Same model, same temperature, same rubric. Changing the judge between runs is how teams "improve" a prompt that got worse.
- Check cost and length. Rewrites tend to grow. Our Claude-style version was 7.5 times longer than the original; at high volume that shows up on the bill.
- Ship the winner behind a version you can roll back.
For step 3, Promptfoo (agreed to be acquired by OpenAI on March 9, 2026, still open source and multi-provider) runs both versions against YAML assertions in CI. If you'd rather stay in a browser, PromptEval's Playground runs a prompt live with your own Anthropic or OpenAI key, and the Pro batch A/B test scores two versions on up to 10 inputs and 7 criteria with an LLM judge. The full loop is in our guide to testing and iterating AI prompts.
The common mistake: running a metric-driven optimizer on a prompt whose rules contradict each other. The optimizer finds the variant that games the metric around the contradiction, and the conflict ships. Fix conflicting instructions first; a structural score flags them in seconds.
Often listed as optimizers, built for something else
These show up on most "best prompt optimization tools" pages. They're good products, but they manage, trace or test prompts rather than rewrite them:
| Tool | What it actually does | Paid from |
|---|---|---|
| PromptLayer | Prompt registry, visual editor, request logs, batch evals | $49/month (Pro) |
| Langfuse | Open-source tracing, prompt management, evals | $29/month (Core cloud) |
| LangSmith | Tracing and evals for LangChain and LangGraph | $39/seat/month (Plus) |
| Maxim AI | Simulation, evaluation, observability for larger teams | Sales-led |
Which optimizer to pick
If you have no labeled data, which is most people reading this, don't start with DSPy. Run your vendor's rewriter, or rewrite against the guide yourself, then lint and score the result: see how a scored prompt reads before you paste your own. Declaring the output format alone is worth 29 points on average in the State of Prompt Quality data, and a one-click rewriter usually adds it.
If the same prompt runs on two vendors, skip single-vendor rewriters, or run both and reconcile. If you have 50 or more labeled examples and a metric you trust, MIPROv2 in DSPy is the next step, and GEPA when your metric can explain why an answer failed. If prompts already live in production with logs, Braintrust Loop works from what users actually sent. And if the issue is cost rather than quality, compression is a separate job: see how to optimize prompt tokens.
Frequently asked questions
What is the best AI prompt optimization tool in 2026?
It depends on whether you have labeled examples. Without a dataset, use a one-click rewriter tuned to your model (OpenAI's prompt optimizer for GPT, Amazon Bedrock prompt optimization for models on Bedrock) and check the result with a neutral scorer such as PromptEval. With 50 or more labeled examples and a metric, DSPy (MIPROv2 or GEPA) is the open-source default. Verify any rewrite with Promptfoo or a batch A/B test before shipping it.
Is OpenAI's prompt optimizer going away?
Part of it. OpenAI's prompt optimizer guide says the dataset-backed optimizer is being deprecated with the Evals platform, which became read-only on October 31, 2026 and shuts down on November 30, 2026. The guide still describes the chat-based optimizer in the dashboard, which rewrites a single prompt against OpenAI's best practices.
Does Anthropic still have a prompt improver?
Not as a documented Console feature. As of November 17, 2026, Anthropic's prompt improver documentation page redirects to its general prompting best practices guide, and Anthropic's support center says the Workbench is retired. The Playground that replaced it runs on the public Messages API without saved prompts or prompt evaluation.
Do I need a dataset to optimize a prompt?
Not for a one-click rewrite or a structural score: OpenAI's optimizer, Bedrock's simple optimization, PromptHub and PromptEval all work from the prompt text alone. Metric-driven optimizers do need one. Meta's llama-prompt-ops starts at about 50 question-answer pairs, and DSPy optimizers such as GEPA use a training set to propose changes and a validation set to score them.
How do I know an optimized prompt is actually better?
Run the original and the rewrite on the same inputs and compare. Keep at least 20 real inputs the optimizer never saw, include the awkward ones (empty, mixed-language, multiple requests, injected instructions), and score both versions with the same judge or assertions. Promptfoo does this in CI; PromptEval's batch A/B test does it in a browser with your own API key.