4Z API

图像生成

接口: POST https://4zapi.com/pg/images/generations

OpenAI 兼容图像生成。

请求体 (application/json)

  • model (string, 必填): 模型名称 / 型号 ID
  • prompt (string, 必填): 文本提示词
  • n (integer): 生成数量
  • size (string): 输出尺寸,如 1024x1024