Quick Start
Get started with Z.AI in under 2 minutes:Image Generation
Z.AI supports image generation through the CogView model family. Use the standard OpenAI-compatible images API:| Parameter | Type | Description |
|---|---|---|
prompt | string | The text prompt for image generation (Required) |
model | string | Model to use, e.g. cogview-4-250304 (Required) |
size | string | Image dimensions |
user | string | End-user identifier |
Add Provider in Model Catalog
Before making requests, add Z AI to your Model Catalog:- Go to Model Catalog → Add Provider
- Select Z AI
- Enter your Z.AI API key
- Name your provider (e.g.,
Z AI)
Complete Setup Guide
See all setup options and detailed configuration instructions
Next Steps
Gateway Configs
Add fallbacks, load balancing, and more
Observability
Monitor and trace your z-ai requests
Prompt Library
Manage and version your prompts
Metadata
Add custom metadata to requests
SDK Reference
Complete Portkey SDK documentation

