Quick Start
Get started with ZhipuAI in under 2 minutes:Image Generation
ZhipuAI 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 ZhipuAI to your Model Catalog:- Go to Model Catalog → Add Provider
- Select ZhipuAI
- Enter your ZhipuAI API key
- Name your provider (e.g.,
zhipu)
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 ZhipuAI requests
Prompt Library
Manage and version your prompts
Metadata
Add custom metadata to requests
SDK Reference
Complete Portkey SDK documentation

