Estimate generation cost
deepy_estimate_generationCheck the token cost and balance impact of a generation without charging. Pass identical parameters later to create the generation, ensuring the quoted estimate matches the final charge.
Instructions
Get the integer token cost and resulting balance for a generation, without charging anything. Always estimate and confirm with the user before creating. The exact same params must be passed to deepy_create_generation (quote == charge).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The generation prompt. If you used deepy_improve_prompt, pass the SAME text here and to deepy_create_generation (quote == charge). | |
| modelName | Yes | Model name from deepy_list_models / deepy_get_model. | |
| parameters | No | Model-specific parameters (see the model schema). Defaults to {}. | |
| referenceFiles | No | Reference file ids for image/video-from-image models. Defaults to []. |