arsaze_estimate_generation_cost
Show the user exactly what a generation will cost in credits BEFORE running it, as an interactive card with a Generate button.
Call this FIRST, instead of asking "shall I generate? it will use some
credits" — you do not know the rate, it is set per plan and per model by
an admin and changes without any code change, so any number you state
from memory will eventually be wrong. This reads the user's real plan
and real balance and prices the run the same way the generation itself
will.
Nothing is charged and nothing is reserved by calling this. It is a
quote. Generation only starts if the user then asks for it.
kind: "video", "image" or "voice".
provider: the model id you intend to use — get real ones from
video_gen.list_providers / image_gen.list_providers, never from
memory. Omit to quote the plan's standard rate for that kind.
duration_seconds: the duration you intend to request. Only affects
duration-priced models; harmless to pass otherwise.
quantity: how many separate generations (e.g. number_of_images).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| provider | No | ||
| quantity | No | ||
| duration_seconds | No |