Estimate a run's cost
estimate_costCredits a run_benchmark call would use, before spending anything: the expected total, the split per model, the balance needed to start, the worst case, and the user's balance. Same inputs and run settings as run_benchmark. Use it to drop an expensive model, or to compare settings (e.g. max_tokens), before running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | ||
| preset | No | Like the app's presets: standard = 2 passes + snappy timeouts (the default), thorough = 3 passes + patient timeouts. Explicit stability_runs / timeout_profile override it | |
| fail_fast | No | Stop a model after repeated errors to save credits. Set false to let every model finish, e.g. to diagnose failures | |
| task_yaml | Yes | The full task YAML (a JSON object with the same fields also works) | |
| max_tokens | No | Output token limit per answer, 16 to 16000; 0 = no limit. Keep the default unless results show it was too low: a higher limit raises the credits needed to start. get_results flags models whose answers came back empty or near the limit; re-run those with a higher value | |
| upload_uid | No | From prepare_attachments, so image and document tokens are counted | |
| custom_timeout | No | Seconds per answer, with timeout_profile custom | |
| stability_runs | No | Passes per model; 2+ shows which models are consistent | |
| temp_preference | No | With temperature_discovery: which temperature wins a tie | low |
| timeout_profile | No | How long to wait per answer: snappy 45s, patient 90s, custom = custom_timeout | snappy |
| temperature_discovery | No | Find each model's best temperature for this task. Costs about 6x as much |