Zai Generate Image
zai_generate_imageUse CogView-4 series models to generate high-quality images from text prompts.
How it works ↓Pricing
Per call
$0.02
Model
flat
Pay only for what you use. No subscriptions.
Inputs
model *
stringsize
stringprompt *
stringuser_id
stringquality
stringInput Parameters
Cost per run
Execution cost$0.02
About 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.
Frequently Asked Questions
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.
Zai Generate Image costs $0.02 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Z.ai API MCP endpoint to your client — Claude Code: claude mcp add --transport http zai "https://zai.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see zai_generate_image as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath zai/zai_generate_image.)
Yes — that's exactly what xpay is for. You don't need a Z.ai API account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Zai Generate Image immediately. Billing flows through your xpay balance.
Zai Generate Image accepts 5 input parameters: model, size, prompt, user_id, quality. See the input schema and runnable form on this page for details and to test live.

