Use this in the request body model field.
cogview-4 API
Generate images with CogView 4 by Zhipu AI via API in One. Only 4 credits per image (~$0.04). Multiple sizes, HD quality option.
The currently implemented BFF route.
Input types: text
Keys are managed by the shared dashboard.
This route does not require webhook handling.
Live capabilities
These capabilities come from the current model config and backend route. Unreleased APIs are not listed.
Ultra
Ultra-affordable at 4 credits per image
Multiple image size options
Multiple image size options
HD quality mode available
HD quality mode available
Great for high
Great for high-volume generation
Request format
Clients call same-origin API routes; the server BFF forwards to the matching Worker.
POST/api/v1/images/generations4 creditsCogView 4 — Zhipu AI's text-to-image model. Ultra-affordable at just 4 credits per image with standard and HD quality options.
Parameters
promptstringText description of the image (max 1000 chars)
RequiredsizestringImage size: "1024*1024", "768*1344", "864*1152", etc.
Optional · Default 1024*1024qualitystringQuality: "standard" or "hd"
Optional · Default hdExample request
curl -X POST https://apiin.one/api/v1/images/generations \
-H "Authorization: Bearer aio_your_api_key" \
-H "Content-Type: application/json" \
--data-raw '{
"model": "cogview-4",
"prompt": "A futuristic robot assistant helping in a modern kitchen, clean design",
"size": "1024*1024",
"quality": "hd"
}'Models on the same endpoint
These live models use the same implemented BFF endpoint and can be switched by changing the model field.
/api/v1/images/generations
grok-imagineimage · 5 credits/api/v1/images/generations
kling-image-o1image · 6 credits/api/v1/images/generations✦ideogram-v3image · 8 credits/api/v1/images/generations🌐imagen-4image · 8 credits/api/v1/images/generations🤖gpt-image-1.5-officialimage · 10 credits/api/v1/images/generationsIntegration flow
These steps use the current live route and shared account system; login, payment, orders, credits, and profile remain shared.
Create a shared API key
Create a key in the existing dashboard. Top-up, orders, credit balance, and profile stay in the shared console.
Call the real endpoint
Send a request with the endpoint, model id, and parameters shown on this page. /api/v1/images/generations
Poll task status
Async media and tool jobs use /api/v1/tasks/{task_id}; chat models return a direct response.
Task status route
After creating image, video, audio, or tool tasks, poll the real task endpoint for results.
GET/api/v1/tasks/{task_id}Check generation task status and result.Pricing
~$0.04 per image (4 credits)
Use cases
These workflows are supported by the current model and backend node.
High-volume image generation at minimal cost
Generate concept art and creative visuals
Build affordable AI image features into apps
Batch generate marketing visuals
FAQ
How much does CogView 4 cost?
Only 4 credits per image (~$0.04).
What sizes are supported?
Supported sizes: 1024*1024, 768*1344, 864*1152, 1344*768, 1152*864, 1440*720, 720*1440.
What quality options are available?
Two quality modes: "standard" and "hd" (high definition).