跳到正文
TakoAPI
返回技能列表

zhipu-cogview-image

由 honestqiao 提供

Image & Video Generation
—暂无评分
你的评分

简介

Generate images using Zhipu AI's CogView model.

描述

该技能的功能

Generates images from text prompts using Zhipu AI's CogView-4 model via API calls. Requires a Zhipu AI API key and communicates over HTTPS with input validation and JSON escaping built in.

Uses CogView-4, a model specifically trained on Chinese-language and culturally relevant content, making it more suitable than Western alternatives for prompts involving Chinese aesthetics or subjects.

何时使用

  • Generate illustrations from text descriptions
  • Create concept art for a project
  • Produce reference images for design work
  • Generate images of specific scenes or characters
  • Quickly prototype visual ideas without design tools

示例工作流

输入

User asks: Generate an image of a mountain village at sunset

智能体
  1. 1

    Set ZHIPU_API_KEY environment variable

  2. 2

    Construct JSON payload with model cogview-4 and the prompt

  3. 3

    Send POST request to Zhipu AI images/generations endpoint via curl

  4. 4

    Parse response with jq to extract image URL

输出

A URL pointing to the generated image of a mountain village at sunset

前置要求

  • ZHIPU_API_KEY environment variable
  • Zhipu AI account at bigmodel.cn

安装

clawhub install honestqiao/zhipu-cogview-image

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接