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.
Use this in the request body model field.
The currently implemented BFF route.
Input types: text
Keys are managed by the shared dashboard.
This route does not require webhook handling.
Service highlights
Marketplace-style signals backed by the current live route, without copying external SLA, discount, login, or payment claims.
This page only shows endpoints implemented under /api/v1. /api/v1/images/generations
This model returns directly without creating a media task.
Top-up, orders, credit balance, and profile continue through the existing shared console.
Your browser only holds an API in One key; provider calls stay server-side.
Call contract
Use these fields to integrate the current live model route.
- Base URL
https://apiin.oneClients call same-origin APIs; the server BFF forwards to the Worker.- Authorization
Authorization: Bearer <API_KEY>Managed by the existing Dashboard API Keys page.- Model field
cogview-4Send this value in the request body model field.- Result path
/api/v1/tasks/{task_id}Async jobs return task_id, then use status polling.- Billing path
/billing/creditsUses the existing credits, orders, and top-up logic.
Runtime behavior
This model creates an async task, returns a task_id, then resolves through the real status route.
API Console
Switch between real models on this endpoint, choose a live route, and generate request examples from the current catalog payload.
curl --request POST \
--url https://apiin.one/api/v1/images/generations \
--header 'Authorization: Bearer <API_KEY>'
--header '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"
}'/api/v1/tasks/{task_id}Endpoint decision panel
Evaluate cost, provider coverage, and production integration behavior across live models on this implemented endpoint.
Sorted by base credits from low to high.
Async media and tool jobs use /api/v1/tasks/{task_id}; chat models return a direct response.
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/generationsEndpoint model comparison
Compare real models behind this implemented route by cost, provider, runtime mode, input, output, and backend node.
node48node41
grok-imaginexAIAsync tasktext -> image5 credits$0.05node31
kling-image-o1Kuaishou / WaveSpeedAsync tasktext + image -> image6 credits$0.06node49✦ideogram-v3IdeogramAsync tasktext + image -> image8 credits$0.08node63🌐imagen-4GoogleAsync tasktext -> image8 credits$0.08node47🤖gpt-image-1.5-officialOpenAIAsync tasktext + image -> image10 credits$0.10node42🎨recraft-v4RecraftAsync tasktext -> image10 credits$0.10node78✦ideogram-v4IdeogramAsync tasktext -> image12 credits$0.12node63node30🏔️hunyuan-image-3Tencent / WaveSpeedAsync tasktext + image -> image25 credits$0.25node68Integration 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).