Images and videos share the Media Tasks API, but their inputs, reference constraints and billing units differ. Define the deliverable, verify the model contract and validate a budgeted sample. Task acceptance is not completed generation.
1. Node.js video tasks: submit, poll and save
Section titled “1. Node.js video tasks: submit, poll and save”Submit a video task once, resume polling with its task ID, handle failures and local deadlines, then stream result assets to disk without forwarding your API key.
2. Choose image specifications and references
Section titled “2. Choose image specifications and references”Plan image aspect ratio, resolution, output format and reference inputs using the live request schema, with a practical Nano Banana 2 workflow.
Estimate media workloads using matched specifications and billing units, cap concurrency and attempts, and reconcile estimates with task-level charges.
Model guides and existing calculators
Section titled “Model guides and existing calculators”- Nano Banana 2 integration · Model specifications and pricing
- MiniMax H3 integration · Model specifications and pricing
- Common API · LLM learning path
Generation examples incur usage. Reading a catalog or an existing task does not create a new generation task. Do not automatically resubmit paid requests while testing a guide.