evolve.estimate()Estimate first
Get a conservative upper bound in USD for a given iteration count and level, before anything runs.
iterations10
level"high"
upper bound$1.20
Illustrative figure. Real rates come from your API instance.Invite-only beta
The simplest LLM-driven evolution API. Write a function that scores a program, and get back a better one.
from easyevolve import EasyEvolve
def main():
evolve = EasyEvolve(
evaluator="evaluator.py",
)
best_program = evolve.run(iterations=10, level="high")from easyevolve import EasyEvolve
def main():
evolve = EasyEvolve(
evaluator="evaluator.py",
)
best_program = evolve.run(
iterations=10,
level="high",
)def evaluate(candidate_path: str) -> dict:
program = load(candidate_path)
passed = sum(program.solve(x) == sorted(x) for x in cases)
return {"score": passed / len(cases)}Every run is capped, itemised and billed at cost plus 10%. Three settings decide what you spend.
evolve.estimate()Get a conservative upper bound in USD for a given iteration count and level, before anything runs.
budget=2.0The search stops before an operation would cross your budget, and you keep the best program found so far.
level="high"Trade cost for capability. The evaluator still decides what counts as better.
"low"Fast, economical iterations for well-defined tasks."middle"A balance of cost and candidate quality."high"A more capable model for harder problems.