xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
Tool Skill
Z.ai API logo

Zai Generate Videoasync

zai_generate_videoasync

CogVideoX is a video generation large model developed by Z.AI, equipped with powerful video generation capabilities. Simply inputting text or images allows for effortless video creation. Vidu: A high-performance video large model that combines high consistency and high dynamism, with precise semantic understanding and exceptional reasoning speed.

$0.02/call
Flat rate
Z.ai API
Raw SKILL.mdTool Page

When to Use

Use this tool when you need to cogvideox is a video generation large model developed by z.ai, equipped with powerful video generation capabilities. simply inputting text or images allows for effortless video creation. vidu: a high-performance video large model that combines high consistency and high dynamism, with precise semantic understanding and exceptional reasoning speed.. This is part of the Z.ai API provider on xpay✦.

MCP Connection

Connect to xpay✦ to access this tool (and 9+ others):

{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}

For Claude Code:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"

How to Execute

Use the xpay✦ meta-tools to run this tool:

  1. xpay_details — Get full input schema: xpay_details("zai/zai_generate_videoasync")
  2. xpay_run — Execute: xpay_run("zai/zai_generate_videoasync", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
durationintegerNoVideo duration, default is 5 seconds, supports 5 and 10 seconds.
with_audiobooleanNoWhether to generate AI sound effects. Default: false (no sound effects).
sizestringNoDefault value: if not specified, the short side of the generated video is 1080 by default, and the long side is determined according to the original image ratio. Maximum support for 4K resolution.
user_idstringNoUnique ID of the end-user, assists the platform in intervening in end-user violations, generating illegal or inappropriate information, or other abusive behaviors. ID length requirement: minimum 6 characters, maximum 128 characters.
image_urlarrayNoProvide an image based on which content will be generated. If this parameter is passed, the system will operate based on this image. Supports passing images via URL or Base64 encoding. Image requirements: images support .png, .jpeg, .jpg formats; image size: no more than 5M. Either image_url and prompt can be used, or both can be passed simultaneously. First and last frames: supports inputting two images. The first uploaded image is regarded as the first frame, and the second image is regarded as the last frame. The model will generate the video based on the images passed in this parameter. First and last frame mode only supports speed mode
fpsintegerNoVideo frame rate (FPS), optional values are 30 or 60. Default: 30.
modelstringYesThe model code to be called. Available options: cogvideox-3
promptstringNoText description of the video, maximum input length of 512 characters. Either image_url or prompt must be provided, or both.
request_idstringNoProvided by the client, must be unique; used to distinguish each request’s unique identifier. If not provided by the client, the platform will generate one by default.
qualitystringNoOutput mode, default is speed. * quality: Prioritizes quality, higher generation quality. * speed: Prioritizes speed, faster generation time, relatively lower quality.

Pricing

  • Cost: $0.02/call
  • Balance check: Use xpay_balance to check remaining credits
  • Get your API key at xpay.tools — $5 free credits included

Related Skills

  • Z.ai API (all tools) — 10 tools
  • Zai Generate Image — $0.02/call
  • Zai Web Reader — $0.02/call
  • Zai File Upload — $0.02/call
  • Zai Chat Completion — $0.02/call
  • Zai Retrieve Result — $0.01/call

Links

  • Tool page: https://xpay.tools/zai/zai-generate-videoasync/
  • Provider: https://xpay.tools/zai/
  • All tools: https://xpay.tools/explore
How to Execute
// 1. Get full schema
xpay_details("zai/zai_generate_videoasync")
// 2. Execute
xpay_run("zai/zai_generate_videoasync", { ...inputs })
Input Parameters
ParameterTypeRequiredDescription

duration

integerNo

Video duration, default is 5 seconds, supports `5` and `10` seconds.

with_audio

booleanNo

Whether to generate AI sound effects. Default: `false` (no sound effects).

size

stringNo

Default value: if not specified, the short side of the generated video is 1080 by default, and the long side is determined according to the original image ratio. Maximum support for 4K resolution.

user_id

stringNo

Unique ID of the end-user, assists the platform in intervening in end-user violations, generating illegal or inappropriate information, or other abusive behaviors. ID length requirement: minimum `6` characters, maximum `128` characters.

image_url

arrayNo

Provide an image based on which content will be generated. If this parameter is passed, the system will operate based on this image. Supports passing images via URL or Base64 encoding. Image requirements: images support `.png`, `.jpeg`, `.jpg` formats; image size: no more than `5M`. Either image_url and prompt can be used, or both can be passed simultaneously. First and last frames: supports inputting two images. The first uploaded image is regarded as the first frame, and the second image is regarded as the last frame. The model will generate the video based on the images passed in this parameter. First and last frame mode only supports `speed` mode

fps

integerNo

Video frame rate (FPS), optional values are `30` or `60`. Default: `30`.

model

string
Yes

The model code to be called. Available options: `cogvideox-3`

prompt

stringNo

Text description of the video, maximum input length of 512 characters. Either image_url or prompt must be provided, or both.

request_id

stringNo

Provided by the client, must be unique; used to distinguish each request’s unique identifier. If not provided by the client, the platform will generate one by default.

quality

stringNo

Output mode, default is `speed`. * `quality`: Prioritizes quality, higher generation quality. * `speed`: Prioritizes speed, faster generation time, relatively lower quality.

Related Tools from Z.ai API
Zai Generate Image — $0.02Zai Web Reader — $0.02Zai File Upload — $0.02Zai Chat Completion — $0.02Zai Retrieve Result — $0.01Zai Conversation History — $0.02Zai Retrieve Result Post — $0.02Zai Agent Chat — $0.02
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/zai/zai-generate-videoasync/SKILL.md
CLI
npx @xpaysh/cli install zai/zai-generate-videoasync
Manual
curl -o SKILL.md https://xpay.tools/skills/zai/zai-generate-videoasync/SKILL.md
Pricing

Cost

$0.02/call

Model

Flat rate

Provider

Z.ai API

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service