AI绘画

AI绘画

官方自营

借助全球新兴的AIGC技术,我们为您提供了一种随心所欲、自然流畅且高能硬核的AI作图能力。您只需简单描述,即可实现图像的创作和生成,甚至可以通过输入的图像进行再创作。我们的技术广泛应用于广告营销、媒体、出版物、游戏开发、艺术创作和摄影后期处理等各种场景。

已选规格
9.90
自购买起有效期 12 个月
专用资源包
支持通用资源包:充值通用资源包后可直接调用含本接口在内的全站付费接口,无需单独购买专用资源包去充值 ›
提交绘画生成任务
接入点说明
使用提示词创建一个绘画任务
接口地址
https://route.showapi.com/3041-1?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
请求参数
Header 参数
参数名称类型示例值必须描述
content-typeString
application/x-www-form-urlencoded
Post 表单
参数名称类型示例值必须描述
ext_app_paramsObject
{ "app_type":"qr_code", "ext_params":{"type":"sea","url":"https://www.showapi.com"} }
对单独应用的扩展参数。比如 二维码,房间设计,图片风格化等。类似这样的结构 :
{
 "app_type":"qr_code",
 "ext_params":{}
}
promptString
A little elf beauty detective solves cases across time and space.
创作提示词,建议使用英文,不用超过250个词
negetive_promptString
-
反向提示词,不填则使用默认的
call_backString
-
任务完成时的回调地址,任务完成时会通过这个http地址推送结果,回调方式POST,payload格式为JSON,例{"resList":[...],"task_id":"对应的任务id"}
batch_sizeNumber
1
每个任务创作图片数量,支持1~4,默认为1,数字越大,调用时扣费越贵,任务花费时间也就越久
scaleNumber
3.5
提示词的scale,范围在1~20之间, 默认3.5
seedNumber
-1
随机种子数,范围在-1~4294967290之间,默认-1
widthNumber
768
创作图片的宽度,width必须是8的倍数,最小512,最大1024,默认768
heightNumber
768
创作图片的高度,height必须是8的倍数,最小512,最大1024,默认768
stepsNumber
5
创作步骤数,最小5,最大50,默认5
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回头部
返回体
cURL
curl -X POST "https://route.showapi.com/3041-1?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -d "ext_app_params=%7B%20%20%22app_type%22%3A%22qr_code%22%2C%20%20%22ext_params%22%3A%7B%22type%22%3A%22sea%22%2C%22url%22%3A%22https%3A%2F%2Fwww.showapi.com%22%7D%20%7D&prompt=A%20little%20elf%20beauty%20detective%20solves%20cases%20across%20time%20and%20space.&negetive_prompt=&call_back=&batch_size=1&scale=3.5&seed=-1&width=768&height=768&steps=5"
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_fee_num": 1,
  "showapi_res_code": 0,
  "showapi_res_id": "64dad8de0de376f261fc27d6",
  "showapi_res_body": {
    "result_list": [],
    "scale": 8,
    "cause": "",
    "status": "waiting",
    "scheduler": "K_EULER",
    "remark": "",
    "seed": -1,
    "width": 512,
    "task_id": "sk202308152ztQbbihuHFYHlHPSthrK",
    "batch_size": 1,
    "steps": 25,
    "negetive_prompt": "",
    "lora_scale": "0.9",
    "ret_code": 0,
    "height": 768,
    "call_back": "",
    "prompt": "((beautiful face)), extremely delicate facial,(best quality),(extremely detailed cg 8k wallpaper), masterpiecel,asian,an extremely delicate and beautiful, extremely detailed,intricate,solo,ear ring,tender shining,amazing scene lighting,medium hair,wet hair(collared shirt),standing,(upper body),arms behind back,light smile,necklace,greenhouse"
  }
}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-3041": {
      "url": "http://www.showapi.com.cn/mcp/3041/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。