Skip to main content
Add include_quality: true to get a heuristic confidence score (0–1) with every response. Combine with min_quality to automatically retry with a better model when the score is too low.

Get a quality score

Auto-retry on low quality

Set min_quality to a threshold. If the response scores below it, the system automatically retries with a higher-quality model.
If the initial response scores below 0.8, the response includes:

Parameters

Billing

You’re charged for each attempt. If auto-retry triggers, you pay for both the original and the retry.