Nami Z-Image T2I Spicy

nami-zimage-t2i-spicy

Generate an image from a text prompt with configurable width, height, prompt enhancement, and seed.

Examples

Nami Z-Image T2I Spicy example 1

Parameters

NameTypeDefaultConstraintsDescription
prompt *Prompttextarea
widthWidthslider1024256 ~ 1536 · step 1
heightHeightslider1536256 ~ 1536 · step 1
prompt_extendEnhance Promptbooleantrue
seedSeednumber≥ 0 · step 1Optional integer seed. Leave empty for a random result.

Output fields

FieldTypeDescription
imagesarray<string>Generated image URLs

API

Call this model through one unified REST API. Get a key on the API Keys page.

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);

Documentation

Nami Z-Image T2I Spicy

Generate an image from a text prompt. Output is returned in the images array.

Parameters

  • prompt (required): describe the image to create.
  • width (default 1024): 256–1536 pixels.
  • height (default 1536): 256–1536 pixels.
  • prompt_extend (default true): enhance the prompt before generation.
  • seed (optional): an integer seed; omit it for a random result.

Billing

Generation costs 1.3 credits. Prompt enhancement adds 0.1 credit when enabled.

Related models

OpenAI GPT Image 2 Text-to-Image
Text to ImageOpenAI

OpenAI GPT Image 2 Text-to-Image

OpenAI's GPT Image 2 Text-to-Image generates high-quality images from natural-language prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.220 / per run
OpenAI GPT Image 2 Edit
Text to ImageOpenAI

OpenAI GPT Image 2 Edit

OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.220 / per run
Nano Banana Text to Image
Text to ImageGoogle

Nano Banana Text to Image

Gemini 2.5 Flash Image. Lightweight and fast. The most affordable option for instant, high-volume generation.

from $0.040 / per run
Nano Banana Pro Text to Image
Text to ImageGoogle

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.140 / per run
Nano Banana Pro Text to Image
Text to ImageGoogle

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.070 / per run
Google Nano Banana Lite Text to Image API
Text to ImageGoogle

Google Nano Banana Lite Text to Image API

Google Nano Banana 2 Lite Text to Image generates high-quality images from text prompts with low latency, flexible aspect ratios, and fast image creation for creative and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.040 / per run
Seedream V5.0 Pro Text to Image API
Text to ImageDoubao

Seedream V5.0 Pro Text to Image API

Seedream V5.0 Pro Text to Image by ByteDance generates high-quality images from text prompts, with aspect ratio selection, strong prompt following, and 1K / 2K output tiers for flexible image creation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.050 / per run
Seedream 5.0 Lite Sequential
Text to ImageDoubao

Seedream 5.0 Lite Sequential

Seedream 5.0 Lite Sequential generates multi-image sets with consistent characters and objects, unifying palette, lighting, and style across all outputs. Supports up to 4K results for campaigns, storyboards, and product lines. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.040 / per run