LLM API
Z.aiImage generationReleased March 4, 2025

CogView-4

CogView-4 costs $0.01 per image on LLM API. It generates images from text.

Pricing

Served by Z.ai, the only provider.

CogView-4 prices on LLM API
Image$0.01/ imageper image

Specifications

  • ModesGenerate

Call CogView-4

POST /v1/images/generationsSet LLMAPI_KEY to your LLM API key.Generate docs

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

result = client.images.generate(
    model="cogview-4",
    prompt="A lighthouse at dawn, watercolor",
)
print(result.data[0].url)

More from Z.ai

All Z.ai image models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up