Estimate Developer API Generation Cost
estimate_generation_costEstimate credits for a Cannon Studio generation request before creating billable work. Requires OAuth or a developer API key; it may update key/token usage metadata but does not spend credits, enqueue jobs, or change assets. Use get_api_operation first if operation or input fields are unclear, then pass the same operation/input pair to create_generation_request after user approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Operation-specific request payload to estimate. Use the exact shape documented by get_api_operation for the selected operation, for example image.generate expects fields like prompt/model/aspect_ratio, video.generate expects prompt/model/duration/aspect_ratio, and three_d.location.generate expects description with optional source_image_urls and angle_context. | |
| operation | Yes | Cannon Studio developer API operation id to price. Use get_api_operation first if unsure. Examples: image.generate, video.generate, three_d.model.generate, three_d.location.generate, music.generate, narration.generate, subtitles.generate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| note | No | ||
| error | No | ||
| label | No | ||
| status | No | ||
| response | No | ||
| operation | No | ||
| estimatedCredits | No |