Google Veo video model
Access the Google Veo video model according to the actual model and channel configuration of this site.
Google Veo native tasks use predictLongRunning and operation queries. It is not the same process as Gemini ordinary content generation.
Step 1: Select model and protocol
Check the real Veo ID on this site to confirm the supported duration, resolution, sound and reference method. Unified Video and Google native requests cannot mix fields.
Step 2: Native creation
curl --fail-with-body "https://dunduntoken.com/google/v1beta/models/$DUNDUN_MODEL:predictLongRunning" -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"instances":[{"prompt":"固定镜头,清晨湖面的薄雾"}]}'
Set DUNDUN_MODEL as an open model. Extra parameters are added as required by the model, and plain Gemini contents are not used instead of instances.
Step 3: Query operation
The response name is retained, in the form models/{model}/operations/{gateway_task_id}. Query by this name under /google/v1beta/ on this site and check done, error and actual response. The name cannot be used as a video link when the operation is not completed.
Step 4: Result processing
The media returned may be an address or content as agreed upon by the model. Only get the result when done and there is no error, transfer it in time and verify it. If you use unified /v1/videos, use unified query and download, and do not use the native name as a unified id.
FAQ
404 Check model, method and plug-in prefix; 400 Check instances and parameters; Check model and sound options without audio track; Use limited backoff if it is not completed for a long time, and do not create it repeatedly.