Nami Z-Image T2I Spicy

nami-zimage-t2i-spicy

根据文本提示词生成图片,支持自定义宽高、提示词优化和随机种子。

示例

Nami Z-Image T2I Spicy example 1

参数

名称类型默认约束说明
prompt *提示词textarea
width宽度slider1024256 ~ 1536 · step 1
height高度slider1536256 ~ 1536 · step 1
prompt_extend优化提示词booleantrue
seed随机种子number≥ 0 · step 1可选整数种子;留空则随机生成。

输出字段

字段类型说明
imagesarray<string>Generated image URLs

API

通过统一 REST API 调用本模型;在 API Keys 页获取密钥。

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/nami-zimage-t2i-spicy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
    "width": 1024,
    "height": 1536,
    "prompt_extend": true
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/nami-zimage-t2i-spicy",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
            "width": 1024,
            "height": 1536,
            "prompt_extend": True
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/nami-zimage-t2i-spicy", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
      "width": 1024,
      "height": 1536,
      "prompt_extend": true
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

文档

Nami Z-Image T2I Spicy

根据文本提示词生成图片。结果通过 images 数组返回。

参数

  • prompt(必填):描述想要生成的图片。
  • width(默认 1024):256–1536 像素。
  • height(默认 1536):256–1536 像素。
  • prompt_extend(默认 true):生成前优化提示词。
  • seed(可选):整数种子;留空则随机生成。

计费

生成图片 1.3 积分;启用提示词优化时增加 0.1 积分。

相关模型

OpenAI GPT Image 2 文本生成图片
Text to ImageOpenAI

OpenAI GPT Image 2 文本生成图片

OpenAI 的 GPT Image 2 文本生成图片模型可根据自然语言提示词生成高质量图片。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。

$0.220 / 每次
OpenAI GPT Image 2 Edit 图像编辑
Text to ImageOpenAI

OpenAI GPT Image 2 Edit 图像编辑

OpenAI 的 GPT Image 2 Edit 可通过自然语言指令结合一张或多张参考图片进行图像编辑。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。

$0.220 / 每次
Nano Banana 文生图
Text to ImageGoogle

Nano Banana 文生图

Gemini 2.5 Flash 标准版。轻量极速。兼顾速度与成本,是批量生成与快速原型设计的最佳选择。

$0.040 / 每次
Nano Banana Pro 文生图
Text to ImageGoogle

Nano Banana Pro 文生图

Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。

$0.140 / 每次
Nano Banana Pro 文生图
Text to ImageGoogle

Nano Banana Pro 文生图

Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。

$0.070 / 每次
Google Nano Banana Lite 文生图 API
Text to ImageGoogle

Google Nano Banana Lite 文生图 API

Google Nano Banana 2 Lite 文生图可根据文本提示词生成高质量图片,具备低延迟、灵活宽高比和快速出图能力,适用于创意与生产工作流。即开即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

$0.040 / 每次
Seedream V5.0 Pro 文生图 API
Text to ImageDoubao

Seedream V5.0 Pro 文生图 API

字节跳动推出的 Seedream V5.0 Pro 文生图模型,可根据文本提示词生成高质量图片,支持宽高比选择、强提示词遵循,以及 1K / 2K 输出档位,满足灵活的图片创作需求。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

$0.050 / 每次
Seedream 5.0 Lite Sequential
Text to ImageDoubao

Seedream 5.0 Lite Sequential

Seedream 5.0 Lite Sequential 可生成多张图片集,确保角色和物体一致,统一调色、光影和风格。支持高达 4K 的输出,适用于广告活动、故事板和产品线。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。

$0.040 / 每次