图片生成 聚合图片生成服务,基于阿里云百炼大模型,支持文生图、图生图、图像编辑等多种 AI 能力
接口介绍

功能简介

CloudImageGenerate 是聚合图片生成服务,基于阿里云百炼大模型,提供文生图、图生图、图像编辑等多种 AI 图像能力。只需输入一段描述性的提示词(prompt),即可生成与描述相匹配的高质量图片。

适用场景

  • 创意设计:快速将创意想法可视化为图片
  • 内容创作:为文章、社交媒体生成配图
  • 广告设计:快速生成广告素材的多个方案
  • 产品设计:辅助产品概念设计和原型展示
  • 图像编辑:基于已有图片进行智能修改和重绘

功能特性

  • 多种模型:内置万相、Qwen-Image 等多个图像生成模型
  • 文生图:根据文字描述生成全新图片
  • 图生图:基于参考图进行风格迁移和二次创作
  • 参数配置:支持尺寸、随机种子等参数自定义
  • 异步处理:提交任务后轮询获取生成结果
  • 点数计费:按模型配置动态计费(点/张)

资费标准

  • 文生图 / 图生图:按模型实际价格计费,单位为「点/张」
接口计费 VIP特权
100 点数 / ¥9.99
1,000 点数 / ¥90.00
10,000 点数 / ¥890.00
100,000 点数 / ¥8800.00
暂无VIP特权
支持模型
以下为各模型的实时配置与计费信息(点数为算力点,由后台模型配置动态生成)。
万相V1文生图wanx-v1文生图
价格:2算力点/张
尺寸:1024*1024 / 720*1280 / 768*1152 / 1280*720
万相2.1文生图-极速版wanx2.1-t2i-turbo文生图
价格:2算力点/张
尺寸:1024*1024 / 1280*720 / 720*1280 / 1080*1920 / 1920*1080 / 1024*576 / 576*1024
万相2.1文生图-专业版wanx2.1-t2i-plus文生图
价格:3算力点/张
尺寸:1024*1024 / 1280*720 / 720*1280 / 1080*1920 / 1920*1080
万相2.0文生图-极速版wanx2.0-t2i-turbo文生图
价格:1算力点/张
尺寸:1024*1024 / 1280*720 / 720*1280
万相2.2文生图-极速版wan2.2-t2i-turbo文生图
价格:2算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.2文生图-专业版wan2.2-t2i-plus文生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.7图像生成wan2.7-image文生图图生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.7图像生成-专业版wan2.7-image-pro文生图图生图
价格:7算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048) / 4K (4096*4096)
Qwen-Imageqwen-image文生图
价格:4算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image-Editqwen-image-edit图生图
价格:4算力点/张
Qwen-Image 3.0 Proqwen-image-3.0-pro文生图
价格:6算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image 3.0qwen-image-3.0文生图
价格:3算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image 2.0 Proqwen-image-2.0-pro文生图
价格:6算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image 2.0qwen-image-2.0文生图
价格:3算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image Maxqwen-image-max文生图
价格:3算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image Plusqwen-image-plus文生图
价格:2算力点/张
尺寸:1024x1024 / 2048x2048
Qwen-Image-Edit Maxqwen-image-edit-max图生图
价格:6算力点/张
Qwen-Image-Edit Plusqwen-image-edit-plus图生图
价格:3算力点/张
万相2.6文生图wan2.6-t2i文生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.6图像生成wan2.6-image文生图图生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.5文生图-预览版wan2.5-t2i-preview文生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.5图生图-预览版wan2.5-i2i-preview图生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
万相2.2文生图-闪速版wan2.2-t2i-flash文生图
价格:2算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
Z-Image 极速版z-image-turbo文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
KolorsGiteeKolors文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
GLM-ImageGiteeGlmImage文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
FLUX.1-devGiteeFluxDev文生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
flux-1-schnellGiteeFluxSchnell文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
SD3.5 TurboGiteeSd35Turbo文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
SD3.5 LargeGiteeSd35Large文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
SD3 MediumGiteeSd3Medium文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
SDXL 1.0GiteeSdxl文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
HiDream-I1GiteeHiDream文生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
FLUX.2-devGiteeFlux2文生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
Z-Image 极速版GiteeZImage文生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
Qwen-Image 2512GiteeQwenImage2512文生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
Qwen-Image 2.0GiteeQwenImage20文生图
价格:3算力点/张
尺寸:1024x1024 / 768x768
Qwen-Image 2.0 ProGiteeQwenImage20Pro文生图
价格:6算力点/张
尺寸:1024x1024 / 768x768
Wan2.7 图像生成GiteeWan27Image文生图
价格:3算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048)
Wan2.7 图像生成-专业版GiteeWan27ImagePro文生图
价格:6算力点/张
尺寸:1K (1024*1024) / 2K (2048*2048) / 4K (4096*4096)
FLUX.1 KontextGiteeFluxKontext图生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
Qwen-Image-EditGiteeQwenImageEdit图生图
价格:1算力点/张
尺寸:1024x1024 / 768x768
Qwen-Image-Edit 2511GiteeQwenImageEdit2511图生图
价格:2算力点/张
尺寸:1024x1024 / 768x768
FLUX.2 klein 4BGiteeFlux2Klein4B文生图图生图
价格:1算力点/张
尺寸:1024x1024 / 512x512
FLUX.2 klein 9BGiteeFlux2Klein9B文生图图生图
价格:1算力点/张
尺寸:1024x1024 / 512x512
LongCat-ImageGiteeLongCatImage文生图
价格:1算力点/张
尺寸:1024x1024 / 512x512
LongCat-Image-EditGiteeLongCatImageEdit图生图
价格:1算力点/张
尺寸:1024x1024 / 512x512 / 2048x2048
FLUX.1 KreaGiteeFlux1Krea文生图
价格:1算力点/张
尺寸:1024x1024 / 512x512
CogView4 6BGiteeCogView4文生图
价格:1算力点/张
尺寸:1024x1024 / 512x512
Super Image 2super-image-2文生图图生图
价格:1算力点/张
尺寸:1024x1024 / 1536x1024 / 1024x1536
Super Bana 3.1super-bana-3.1文生图图生图
价格:1算力点/张
尺寸:1024x1024 / 1536x1024 / 1024x1536 / 2048x2048 / 2048x1152 / 1152x2048 / 3840x2160 / 2160x3840
接口文档
AI 一句话对接
把下面这句话复制给 AI 编程助手(Claude Code、Cursor、Codex 等),它会读取本文档并完成接口对接。
请帮我对接这个接口,接口说明文档为 https://api.tecmz.com/m/CloudImageGenerate
复制提示词

1. 接口基础

使用前请阅读 接口基础 。

2. 任务提交(异步)

请求地址

[POST] https://api.tecmz.com/open_api/cloud_image_generate/queue

请求参数










































参数必须类型说明
model是string使用的模型,如 wanx-v1、wan2.7-image、qwen-image 等
prompt是string生成图片的提示词描述
image否string图生图参考图片URL(单张),仅图生图模型需要
images否array图生图参考图片URL数组(多张),如 ["https://a.png","https://b.png"];与 image 同时传递时只取 images,仅图生图模型需要
param否object参数对象,包含尺寸、随机种子等配置,如 {"size": "1024*1024", "seed": 0}

返回

{
    "code": 0,
    "msg": "ok",
    "data": {
        // 任务ID
        "taskId": "1"
    }
}

3. 任务查询

请求地址

[POST] https://api.tecmz.com/open_api/cloud_image_generate/query

请求参数


















参数必须类型说明
taskId是string任务ID

返回

{
    "code": 0,
    "msg": "ok",
    "data": {
        // 任务状态:QUEUE | PROCESS | SUCCESS | FAIL
        "status": "SUCCESS",
        "result": {
            // 生成的图片URL
            "imageUrl": "https://example.com/generated-image.jpg"
        }
    }
}

4. 可用性检查

请求地址

[POST] https://api.tecmz.com/open_api/cloud_image_generate/available

返回

{
    "code": 0,
    "msg": "ok",
    "data": {
        // 当前可用服务器数量
        "availableCount": 1
    }
}

5. 示例代码

PHP

<?php
// 提交任务
$data = [
    'model' => 'wanx-v1',
    'prompt' => '一只可爱的小猫在花园里玩耍',
    'param' => [
        'size' => '1024*1024'
    ]
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://your-domain.com/open_api/cloud_image_generate/queue');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/json',
    'Authorization: Bearer YOUR_API_TOKEN'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$result = json_decode($response, true);

if ($result['code'] == 0) {
    $taskId = $result['data']['taskId'];

    // 查询结果
    while (true) {
        $queryData = ['taskId' => $taskId];
        curl_setopt($ch, CURLOPT_URL, 'https://your-domain.com/open_api/cloud_image_generate/query');
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($queryData));

        $queryResponse = curl_exec($ch);
        $queryResult = json_decode($queryResponse, true);

        if ($queryResult['data']['status'] == 'SUCCESS') {
            $imageUrl = $queryResult['data']['result']['imageUrl'];
            echo "生成成功,图片地址:$imageUrl\n";
            break;
        } elseif ($queryResult['data']['status'] == 'FAIL') {
            echo "生成失败\n";
            break;
        }

        sleep(5); // 等待5秒后重试
    }
}

curl_close($ch);
展开
QQ
微信
公众号
客服