image

文生图

通过 API 调用 {text-to-image} 能力,按量计费,即开即用。

5.0 (<100) 预计耗时: 10s 1 个工具可选
文生图
可用工具

该类别下的工具

多个工具共享同一模板,按评分、速度或价格选择。

工具 预计耗时 评分 金币
文生图
ID: 3
10s 5.0 (<100) 12/img

参数说明

使用此模板调用 API 时,以下参数为必填或可选。

参数 类型 必填 标签 可选项
noise_seed number 噪声种子 default: -1, min: -1, max: 4294967295, step: 1
prompt textarea 提示词
width number 宽度 default: 1024, min: 256, max: 2048, step: 64
height number 高度 default: 1024, min: 256, max: 2048, step: 64
num_outputs number 输出数量 default: 1, min: 1, max: 10, step: 1
checkpoint text 模型检查点

代码示例

使用下方 cURL 示例快速开始,替换 API Key 和参数即可。

cURL
curl -X POST https://nsfwrouter.xyz/api/v1/tasks/create \
  -H "Authorization: Bearer sk-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_id": 3,
    "params": {
          "prompt": "prompt",
          "noise_seed": -1,
          "width": 1024,
          "height": 1024,
          "num_outputs": 1,
          "checkpoint": "your_value"
      },
    "webhook_url": "https://your-server.com/webhook"
  }'

计费信息

按量计费 API 价格,无需订阅。

金币/图
12

支持的模型

文生图可用的 checkpoint 模型列表。

Uber Realistic Porn Merge
uberRealisticPornMerge_ponyxl_hybridv1.safetensors
Pony Diffusion V6 XL
Pony_Diffusion_V6_XL.safetensors
Big Lust SDXL
BigLust_V16.safetensors
Juggernaut XL Ragnarok
Juggernaut_XL_Ragnarok.safetensors
DreamShaper XL
dreamshaperXL_v10TurboDPMSMSDenoisingScheduler.safetensors
LUSTIFY (line)
lustify_v10.safetensors
CyberRealistic XL
cyberrealistic_v8.safetensors
Big Love SDXL
BigLove_XL3.safetensors

将 model 值作为 checkpoint 参数传入 API 请求。

开始使用

准备好开始了吗?

注册并获取 API Key,几分钟内即可开始创建。