Estimates the cost of the original and rewritten version of a query.
GET request to /cost with a query parameter:
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | ✅ | Raw SQL query to evaluate |
| Field | Type | Description |
|---|---|---|
original_cost | number | Cost estimate of the unoptimized query (USD) |
optimized_cost | number | Cost estimate of the rewritten query (USD) |
savings | number | Difference between original and optimized cost |