텍스트 이미지 생성WaveSpeed전문가급

FLUX.1 Schnell

wavespeed-ai/flux-schnell

wavespeed-ai/flux-schnell. 하나의 API로 여러 공급업체의 AI 모델을 이용하고 기능, 매개변수, 가격을 비교하세요.

전체 매개변수, 출력 스키마 및 실시간 요금

Model Hub하나의 플랫폼, 모든 기능가장 인기이용약관하나의 API로 여러 공급업체의 AI 모델을 이용하고 기능, 매개변수, 가격을 비교하세요.
prompt *Prompttextarea—≤ 2000 chars
sizeImage sizeselect1024*10241024*1024 | 1024*768 | 768*1024
seedSeednumber-1-1 ~ 2147483647 · step 1
output_formatOutput formatselectjpegjpeg | png | webp

API

하나의 API로 여러 공급업체의 AI 모델을 이용하고 기능, 매개변수, 가격을 비교하세요.

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.framedance.ai/api/v1/marketplace/run/wavespeed-ai/flux-schnell" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A ceramic vase on a wooden table, natural window light, editorial photography",
    "size": "1024*1024",
    "seed": -1,
    "output_format": "jpeg"
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.framedance.ai/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.framedance.ai/api/v1/marketplace/run/wavespeed-ai/flux-schnell",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "A ceramic vase on a wooden table, natural window light, editorial photography",
            "size": "1024*1024",
            "seed": -1,
            "output_format": "jpeg"
        }
    },
)
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 180s server-side.
deadline = time.time() + 240
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.framedance.ai/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.framedance.ai/api/v1/marketplace/run/wavespeed-ai/flux-schnell", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "A ceramic vase on a wooden table, natural window light, editorial photography",
      "size": "1024*1024",
      "seed": -1,
      "output_format": "jpeg"
    }
  }),
});
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 180s server-side.
const deadline = Date.now() + 240 * 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.framedance.ai/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);
FLUX.1 Schnell API — 요금제, 플레이그라운드에서 체험 & API 문서 | Framedance