页面简介
正文摘录
Overview CogVideoX-3 features new frame generation capabilities that significantly improve image stability and clarity. It also delivers superior performance in handling subjects with significant movement, better adheres to instructions, and provides more realistic simulations. Additionally, it enhances the rendering of high-definition real-world and 3D-style scenes. Price$0.2 / videoInput ModalityImage / Text / Start and End FrameOutput ModalityVideo Usage Advertising and MarketingInput product images or copy to quickly generate dynamic ads in multiple styles, supporting scene transitions and realistic lighting rendering.Short Video CreationConvert single-frame images or text scripts into smooth, naturally animated short videos, covering both realistic and 3D styles.Tourism PromotionUpload scenic spot photos and promotional text to generate immersive tourism short videos with realistic natural landscapes.Film and TV ProductionInput storyboards or character design images to automatically generate dynamic preview clips, simulating seamless camera movements and realistic physical interactions. Resources API Documentation: Learn how to call the API. Introducing CogVideoX-3 1Significantly Improved Subject ClarityVideos generated by CogVideoX-3 feature clear subjects, stable frames, reduced distortion issues, and support for subjects to move extensively, resulting in more natural and fluid dynamic performance.PromptVideoThe petals were blown by the wind, spinning continuously and transforming into a person.Nezha happily took a sip of wine, then showed off the brand of wine.2Better Command Compliance and Realistic Physical SimulationDeeply understands the intent of text commands and accurately reproduces creative requirements. Whether it is having a character perform specific actions or simulating natural physical phenomena, it can be presented in accordance with real-world logic.PromptVideoA pair of hands holding a fruit knife, slicing a whole red tomato into slices.In an open-plan office, an employee is looking down at his phone. Suddenly, the manager appears and taps him on the shoulder. Startled, he quickly puts his phone away.3Enhanced High-Definition Realistic-Style Scenes and 3D-Style Scene RenderingFor realistic styles, it can create high-definition textures akin to real-life photography; when switching to 3D styles, it can precisely shape three-dimensional forms and scene atmospheres, effortlessly handling multiple styles.PromptVideoA high-angle shot captures Dou E and the sky. Dou E was an innocent woman from ancient China who was wrongfully accused. At this moment, she is looking up and shouting. Under the scorching June sun, white snow falls from the sky, scattering upon contact with bloodstains. Her clothes flutter slightly, accompanied by a 3D particle wind.A stylish anthropomorphic snow leopard wearing a white leopard-print fashion coat, super fluffy, plush, thick, and luxurious, walking the runway in ultra-high definition with a cinematic feel, reminiscent of a blockbuster movie, like a Victoria’s Secret fashion show. The runway is lined with spectators taking photos on both sides.4Added Start and End Frame GenerationSupports users providing start and end frames, automatically generating seamless transition content, allowing static frames to naturally connect into dynamic narratives, and linking complete creative concepts.PromptStart FrameEnd FrameVideoThe Dragon King transforms into Ao Bing, with ink wash-style shading. The main character slowly transforms, highlighting the details of the transformation. The camera rotates smoothly, creating a natural and fluid transition.The character holds a gun in both hands and shoots wildly at the computer screen. The computer catches fire, explodes, and shatters into pieces, sending debris flying everywhere. The office lights flicker. Quick Start Text-to-Video Generation Image-to-Video Generation Start and End FrameInstall SDK# Install latest version pip install zai-sdk # Or specify version pip install zai-sdk==0.2.3 Verify Installationimport zai print(zai.__version__) from zai import ZaiClient client = ZaiClient(api_key="your-api-key") # Generate video response = client.videos.generations( model="cogvideox-3", prompt="A cat is playing with a ball.", quality="quality", # Output mode, "quality" for quality priority, "speed" for speed priority with_audio=True, # Whether to include audio size="1920x1080", # Video resolution, supports up to 4K (e.g., "3840x2160") fps=30, # Frame rate, can be 30 or 60 ) print(response) # Get video result result = client.videos.retrieve_videos_result(id=response.id) print(result) Install SDK# Install latest version pip install zai-sdk # Or specify version pip install zai-sdk==0.2.3 Verify Installationimport zai print(zai.__version__) from zai import ZaiClient # Initialize the client, please fill in your own APIKey. client = ZaiClient(api_key="your-api-key") # Define the URL address of the image. image_url = "https://img.iplaysoft.com/wp-content/uploads/2019/free-images/free_stock_photo.jpg" # 替换为您的图片URL地址 # Call the video generation interface. response = client.videos.generations( model="cogvideox-3", # The video generation model used. image_url=image_url, # Please provide the image URL or Base64 encoding. prompt="Make the picture move.", quality="quality", # Output mode: "quality" prioritizes quality, and "speed" prioritizes speed. with_audio=True, size="1920x1080", # Video resolution, supports up to 4K (e.g., "3840x2160"). fps=30, # Frame rate, optional values are 30 or 60. ) # Print the returned result. print(response) # Get video result result = client.videos.retrieve_videos_result(id=response.id) print(result) Install SDK# Install latest version pip install zai-sdk # Or specify version pip install zai-sdk==0.2.3 Verify Installationimport zai print(zai.__version__) from zai import ZaiClient # Initialize client, please fill in your own APIKey client = ZaiClient(api_key="your-api-key") # Define URLs for first frame and last frame sample_first_frame = "https://gd-hbimg.huaban.com/ccee58d77afe8f5e17a572246b1994f7e027657fe9e6-qD66In_fw1200webp" sample_last_frame = "https://gd-hbimg.huaban.com/cc2601d568a72d18d90b2cc7f1065b16b2d693f7fa3f7-hDAwNq_fw1200webp" # Call video generation API (assuming image_urls is supported) response = client.videos.generations( model="cogvideox-3", # Video generation model to use image_url=[sample_first_frame, sample_last_frame], # List of URLs for first and last frames prompt="Animate the scene", quality="quality", # Output mode, "quality" for quality priority, "speed" for speed priority with_audio=True, size="1920x1080", # Video resolution, supports up to 4K (e.g., "3840x2160") fps=30, # Frame rate, can be 30 or 60 ) # Print response print(response) # Get video result result = client.videos.retrieve_videos_result(id=response.id) print(result) Was this page helpful?YesNo