flux-2-klein-4b/edit

flux-2-klein-4b/edit

flux-2-klein-4b/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

संबंधित मॉडल

flux-2-klein-4b/edit संबंधित मॉडल 1

पूरे पैरामीटर, आउटपुट स्कीमा और मौजूदा मूल्य

AI मॉडल API मार्केटप्लेसएक प्लेटफॉर्म, सब कुछसबसे लोकप्रियशर्तेंइमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।
prompt *Prompttextarea—≤ 5000 chars
images *Imagesimage_upload—image/* · 1–3 items
sizeSizetext—≤ 500 chars
seedSeednumber—step 1

पूरे पैरामीटर, आउटपुट स्कीमा और मौजूदा मूल्य

और जानेंएक प्लेटफॉर्म, सब कुछइमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।
imagesarray<string>

API

इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/flux-2-klein-4b/edit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "Edit the reference image to create a clean, modern product-style portrait while preserving the subject'\''s identity and overall composition. Replace the background with a softly lit neutral studio backdrop, enhance facial detail naturally, improve lighting balance, and refine colors for a polished professional look. Keep the clothing and pose consistent with the original image.",
    "images": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/05/0c0ed13e8e0f.jpeg"
    ],
    "size": "1024*1024",
    "seed": 42
  }
}'

# 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/flux-2-klein-4b/edit",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "Edit the reference image to create a clean, modern product-style portrait while preserving the subject's identity and overall composition. Replace the background with a softly lit neutral studio backdrop, enhance facial detail naturally, improve lighting balance, and refine colors for a polished professional look. Keep the clothing and pose consistent with the original image.",
            "images": [
                "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/05/0c0ed13e8e0f.jpeg"
            ],
            "size": "1024*1024",
            "seed": 42
        }
    },
)
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 1800s server-side.
deadline = time.time() + 1860
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/flux-2-klein-4b/edit", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "Edit the reference image to create a clean, modern product-style portrait while preserving the subject's identity and overall composition. Replace the background with a softly lit neutral studio backdrop, enhance facial detail naturally, improve lighting balance, and refine colors for a polished professional look. Keep the clothing and pose consistent with the original image.",
      "images": [
        "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/05/0c0ed13e8e0f.jpeg"
      ],
      "size": "1024*1024",
      "seed": 42
    }
  }),
});
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 1800s server-side.
const deadline = Date.now() + 1860 * 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);

API दस्तावेज

flux-2-klein-4b/edit

flux-2-klein-4b/edit

FLUX.2 [klein] 4B Edit enables precise image-to-image editing with natural language instructions and multi-reference support. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

Parameters

ParameterTypeRequiredDefaultLimits / description
promptstringYes—max 5000 chars
imagesarrayYes—1–3 URLs; List of reference image URLs (1-3 images).
sizestringNo—max 500 chars
seedintegerNo—

Image inputs use URL arrays in Nami, including single-image fields. Multi-image edit accepts 1–3 URLs.

Pricing

$0.012 per generated image = 1.2 credits. The price is fixed for this endpoint.

WaveSpeed standard list price; USD 1 = 100 credits. Account discounts are separate.

API

curl -X POST https://www.namifusion.com/api/v1/marketplace/run/flux-2-klein-4b/edit \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "prompt": "Edit the reference image to create a clean, modern product-style portrait while preserving the subject'"'"'s identity and overall composition. Replace the background with a softly lit neutral studio backdrop, enhance facial detail naturally, improve lighting balance, and refine colors for a polished professional look. Keep the clothing and pose consistent with the original image.",
    "images": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/05/0c0ed13e8e0f.jpeg"
    ],
    "size": "1024*1024",
    "seed": 42
  }
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
  -H "Authorization: Bearer $API_KEY"

Submit returns task_uuid. Poll until completed or failed. Successful output: output.images (URL array). This API is asynchronous and returns URLs.

WaveSpeed

संबंधित मॉडल

xAI Grok Imagine Image v2.0 Edit
इमेज से इमेजX Ai

xAI Grok Imagine Image v2.0 Edit

x-ai/grok-imagine-image-v2.0/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.090 / प्रति रन
qwen-image-edit-spicy
इमेज से इमेज

qwen-image-edit-spicy

qwen-image-edit-spicy. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.034 / प्रति रन
Qwen Image 3.0 Pro Edit | Fast Image Editing
इमेज से इमेजQwen Image 3.0 Pro

Qwen Image 3.0 Pro Edit | Fast Image Editing

qwen-image-3.0-pro/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.0663 / प्रति रन
OpenAI GPT Image 2.5 Sunburst Edit
इमेज से इमेजOpenAI

OpenAI GPT Image 2.5 Sunburst Edit

openai/gpt-image-2.5-sunburst/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.220 / प्रति रन
OpenAI GPT Image 2.5 Flare Edit
इमेज से इमेजOpenAI

OpenAI GPT Image 2.5 Flare Edit

openai/gpt-image-2.5-flare/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.220 / प्रति रन
इमेज से इमेज
इमेज से इमेजNamiFusion

Head Swap (Image)

namifusion/head-swap/image-edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.220 / प्रति रन
Nano Banana Image Edit
इमेज से इमेजGoogle

Nano Banana Image Edit

google/nano-banana/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.038 / प्रति रन
Nano Banana Pro Image Edit
इमेज से इमेजGoogle

Nano Banana Pro Image Edit

google/nano-banana-pro/edit. इमेज, वीडियो और चेहरा बदलने वाले मॉडल API देखें। किसी मॉडल को आजमाएं और एकीकृत REST API से जोड़ें।

से शुरू $0.140 / प्रति रन