GetRun by Getcore API Documentation

Docs / image / Flux 3 Klein Edit Image

Flux 3 Klein Edit Image online

Generasi dan editing gambar Flux 3 Klein hingga 4K, dengan sampai 10 gambar referensi.

Rp Mulai Rp130 / gambar ⏱ ±10–180 detik perkiraan waktu flux-3/klein-edit-image model id Up to 4K1–4 images

1 · Create a task

Kirim permintaan untuk membuat tugas generasi image. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.

POSThttps://getrun.id/v1/tasks
curl -X POST https://getrun.id/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: my-task-001" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3/klein-edit-image",
    "input": {
      "prompt": "A cinematic scene with natural light and gentle motion.",
      "image_urls": [
        "https://example.com/reference.jpg"
      ]
    }
  }'
const res = await fetch('https://getrun.id/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Idempotency-Key': 'my-task-001',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "flux-3/klein-edit-image",
    "input": {
      "prompt": "A cinematic scene with natural light and gentle motion.",
      "image_urls": [
        "https://example.com/reference.jpg"
      ]
    }
  }),
});
const task = await res.json();
import requests

res = requests.post(
    "https://getrun.id/v1/tasks",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Idempotency-Key": "my-task-001",
    },
    json={
      "model": "flux-3/klein-edit-image",
      "input": {
        "prompt": "A cinematic scene with natural light and gentle motion.",
        "image_urls": [
          "https://example.com/reference.jpg"
        ]
      }
    },
)
task = res.json()

Input parameters

NameTypeRequiredDescriptionExample
seed integer No (min 0, max 2147483647) —
prompt string Yes (max 5000 chars) A cinematic scene with natural light and gentl
image_urls array Yes https://example.com/reference.jpg
num_images integer No (min 1, max 4) 1
resolution string No
Opsi: 1K 2K 4K
1K
aspect_ratio string No
Opsi: 1:1 4:3 3:4 3:2 2:3 16:9 9:16 21:9 9:21 auto
auto
nsfw_checker boolean No —
output_format string No
Opsi: png jpeg webp
png
enhance_prompt boolean No
Opsi: true false
true

2 · Poll the result

Ambil status tugas hingga selesai — poll tiap 2–5 detik.

GEThttps://getrun.id/v1/tasks/{task_id}

Respons saat sukses:

{
  "id": "task_9f2c…",
  "status": "succeeded",
  "model": "flux-3/klein-edit-image",
  "price": {
    "currency": "IDR",
    "estimated": 130,
    "reserved": 130,
    "final": 130
  },
  "output": {
    "urls": [
      "https://storage.getcore.id/outputs/task_9f2c…/0.png"
    ],
    "expires_at": "(7 hari setelah selesai)"
  }
}

Status values

StatusKeterangan
queuedTugas sedang diantrikan.
processingSedang diproses.
succeededBerhasil.
failedGagal — lihat error detail, tidak ditagih.
Output bertipe image/png, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.

Best practices

Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.

Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.

On this page
1 · Create a task Input parameters 2 · Poll the result Status values Best practices
Pricing summary
Flux 3 Klein Edit Image
Mulai Rp130 / gambar
  • Harga jelas, pembayaran mudah.
  • Transparan, tanpa biaya tersembunyi.
  • Task gagal tidak ditagih.
Try in Playground ↗

Eksperimen model ini langsung di Playground untuk hasil instan.

Model details
Model IDflux-3/klein-edit-image
Modalityimage
Typical latency±10–180 detik
Output typeimage/png
API versionv1
Need help?

Lihat daftar error umum di Error handling atau hubungi support@getcore.id.