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

Zai Generate Image

zai_generate_image

Use CogView-4 series models to generate high-quality images from text prompts. `CogView-4-250304` is suitable for image generation tasks, with quick and accurate understanding of user text descriptions to let `AI` express images more precisely and personally.

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

When to Use

Use this tool when you need to use cogview-4 series models to generate high-quality images from text prompts. cogview-4-250304 is suitable for image generation tasks, with quick and accurate understanding of user text descriptions to let ai express images more precisely and personally.. 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_image")
  2. xpay_run — Execute: xpay_run("zai/zai_generate_image", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
modelstringYesModel code
sizestringNoImage size, default is 1024x1024, recommended enum values: 1024x1024 (default), 768x1344, 864x1152, 1344x768, 1152x864, 1440x720, 720x1440. Custom parameter: Both width and height must be between 512px-2048px, and must be divisible by 16, and the maximum pixel count must not exceed 2^21px.
promptstringYesThe text description of the image to be generated.
user_idstringNoUnique ID of the end user, helping the platform intervene in illegal activities, inappropriate content generation, or other abuses. ID length: 6 to 128 characters.
qualitystringNoThe quality of the generated image. Default is standard.

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 Web Reader — $0.02/call
  • Zai File Upload — $0.02/call
  • Zai Chat Completion — $0.02/call
  • Zai Retrieve Result — $0.01/call
  • Zai Conversation History — $0.02/call

Links

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

model

string
Yes

Model code

size

stringNo

Image size, default is `1024x1024`, recommended enum values: `1024x1024` (default), `768x1344`, `864x1152`, `1344x768`, `1152x864`, `1440x720`, `720x1440`. Custom parameter: Both width and height must be between `512px-2048px`, and must be divisible by `16`, and the maximum pixel count must not exceed `2^21px`.

prompt

string
Yes

The text description of the image to be generated.

user_id

stringNo

Unique ID of the end user, helping the platform intervene in illegal activities, inappropriate content generation, or other abuses. ID length: 6 to 128 characters.

quality

stringNo

The quality of the generated image. Default is `standard`.

Related Tools from Z.ai API
Zai 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.02Zai Generate Videoasync — $0.02
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/zai/zai-generate-image/SKILL.md
CLI
npx @xpaysh/cli install zai/zai-generate-image
Manual
curl -o SKILL.md https://xpay.tools/skills/zai/zai-generate-image/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