This topic describes four methods for creating avatar video production jobs, and provides API references and examples.
Method 1: Use the console
-
Log in to the Intelligent Media Services (IMS) console.
-
In the upper-left corner, select a region based on your business requirements.
-
In the left-side navigation pane, choose .
-
On the Video Editing Projects tab, create a video editing project.
-
Add an avatar to generate a narration.
In the assets area, add a text-driven or voice-driven avatar. Configure the parameters as needed, and then click Launch Avatar and Generate Video. After the video is generated, the system adds the avatar clip to the video track.
The available parameters include text content, the Generate synchronized subtitle track checkbox, a specific voice effect (such as Aiyuan - Customer Service Avatar), padding frames at the start and end, video resolution (for example, 1080×1920), and bitrate (for example, 4000). After configuring the parameters in the left-side assets area, click Add Task, or click Launch Avatar and Generate Video in the right-side panel to submit the job.
-
Perform other editing operations as needed.
-
After you finish editing, click Save in the upper-right corner to save the project.
You can also click Generate as Template or Export As in the upper-right corner to save the project as a template or export it to the media asset library.
Method 2: Integrate the video editing Web SDK
To create an avatar video production job, integrate the video editing Web SDK into your project. For detailed instructions, see Integrate the video editing Web SDK.
Method 3: Use the Timeline OpenAPI
Create an avatar video production job
Call the SubmitMediaProducingJob operation. In the Timeline parameter, set "Type": "AI_Avatar" and configure the avatar's driving method as needed. For a detailed description of the Timeline, see Parallel processing of smart tasks in a timeline.
Query an avatar video production job
Call the GetMediaProducingJob operation to query the job details.
API reference
Example
Method 4: Use the smart task OpenAPI
Create a standalone avatar rendering job
Call the SubmitAvatarVideoJob operation. In the InputConfig parameter, specify whether the avatar is text-driven or voice-driven. You can then add the generated avatar video to your editing projects.
Query a standalone avatar rendering job
Call the GetSmartHandleJob operation to query the job.