> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Price a call (dry run)

> Add `?dry_run=true` to any call that spends credits to get its price instead of running it: same body, same checks, nothing charged or created.

Every generation, edit, tool, flow run and Magnific Move call that spends credits takes `?dry_run=true`. The request goes through the **same checks** as the real call (your scope, plan, tool permissions, bans, project access) and the **same validation** of its body, and then answers what it would cost instead of running. Nothing is charged, generated or queued.

```bash theme={null}
curl -X POST "https://api.magnific.com/v2/images/upscale?dry_run=true" \
  -H "x-magnific-api-key: $MAGNIFIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "creation_id": "ab12CdEf34", "mode": "creative", "scale": "2x" }'
```

```json theme={null}
{ "data": { "credits": 90, "certainty": "exact", "details": { "payment": { "coverage": "not_full", "user_payable_credits": 90, "certainty": "exact" } } } }
```

Drop `?dry_run=true` and send the same body to run it.

## What you get back

| Call | Answer with `dry_run=true` |
| - | - |
| Image generation, edits and tools, audio, character sheet, camera path | `data.credits`, `data.certainty` (`exact` when the price is known up front) and `data.details` with what the price rests on |
| Video generation (`POST /v2/videos/generate/{model}`) | The video it would make under `data` (its `slug`, `duration`, `credits` and `expected_generation_time` in seconds) and the total under `meta.credits` |
| Flow runs (`POST /v2/flows/{flow_id}/run`) | The run's `credits`, step by step under `steps` |
| Magnific Move (`POST /v2/videos/move`, its new versions and exports; not a retry) | `data.credits`: for a run, an estimate from recent motions of the same kind with `certainty: variable`; for an export, the exact price (`0` when the same settings were already rendered) |

A model that cannot be priced in advance answers `credits: null`.

## Refused the same way

* A body the call would refuse answers the same `422`, with the problems under `details.errors` and, for a value the model does not take, `details.violations`.
* A tool or model your organization switched off answers `403`, as the call would.
* A dry run needs the scope of the call itself: `api:write` for a call that creates something.

## When there is no dry run

`dry_run` is a query parameter. These answer `422` with `details.errors.dry_run` instead of running the call:

* `dry_run` on a call that charges nothing, or whose price is only known once it runs.
* A value other than `true` or `false`.
* `dry_run` sent in the body instead of the query string.

Stock downloads (`GET /v2/stock/…/download`) and a Magnific Move retry do not take `dry_run`.

A video upscale **preview** cannot be priced ahead: it bills the first frames of a trimmed source that only the run measures. Price the full upscale, or run the preview.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.