Estimate credit cost
estimate_costRead-onlyIdempotent
Price a generation before starting it: the credits this model would charge for these options, and whether the current balance covers it. Uses the same validation and price calculation as generate_3d and generate, so for a valid request the figure is exactly what is charged. Omit scene to price every scene of the model. Nothing is charged and nothing is started.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | A model id from list_models. | |
| scene | No | A scene id from list_models, e.g. 'image-to-3d'. | |
| prompt | No | ||
| options | No | The options you intend to pass; they change the price. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| quotes | Yes | ||
| balance | Yes | Credits the account holds now. | |
| available | Yes | ||
| media_type | Yes |