Image and video parameters

Confirm the size, duration, frame, reference materials and cost dimensions.

Parameters belong to the specific model

The same field may be represented differently on different models: size may be a combination of pixels, resolution may be a sharpness enumeration, and the duration may be a numeric value or a string. Do not reuse a successful parameter package from one model directly to another model.

Check before submission

Parameters Check items
model The exact ID available for the current key
prompt length, language and content requirements
size / aspect ratio Supported frame and size combinations
duration / seconds Duration value and model restrictions
reference media type, quantity, size, accessibility
quality/resolution Impact on generation capabilities and price
audio Whether to support sound and its independent restrictions

Fees and Defaults

Certain default parameters will change actual charges and must be confirmed before bulk submission. Different models may be billed based on pictures, duration, token or other usage, which shall be subject to the price page and call records of this site; this article does not maintain a fixed unit price.

Get parameters

This site currently does not have a unified model parameter query API. Refer to the model details on this website and the interface documentation of the corresponding supplier, and then verify it with a single small task. When unsure, contact support and do not write this site’s integration based on a /params response from a third-party gateway.

Create a verified parameter file

Save a copy of the successful request for each exact model ID, documenting the protocol used, material form, and return fields. Production defaults come from this file, not from another model’s interface defaults.

Changes Returning content
Model version Parameter enumeration, output format and compatibility
Increase resolution Supported sizes, time consumption and actual consumption
Add duration Duration range, queue and file results
Add reference material Material type, authorization, capture and attribution
Turn on sound Whether the model supports it, audio and video results and units
Increase quantity Maximum quantity, number of results and partial failure

Distinguish between default and explicit values

Untransmitted fields are usually handled by the model by default. 0, false, and empty strings may have independent meanings or be rejected. You cannot serialize all blank fields in the form to zero, and you cannot use true and false judgment to delete explicitly set false by the user.

How to reduce the range when parameters fail

Return the minimum successful request, adding one parameter at a time. Keep the field name, error type and desensitization request ID, and blindly retry without changing multiple parameters continuously. If the request is accepted by the upstream but times out locally, check the task status before submitting.