دقة المخرج
يدعم 1k من مخطط الـ endpoint المنشور.
أعلى جودة من FLUX.2 لتحرير متسق للصور المصدرية
curl -X POST https://runapi.ai/api/v1/flux_2/remix_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-max-remix-image",
"prompt": "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail."
}'
import { Flux2Client } from "@runapi.ai/flux-2";
const client = new Flux2Client();
const result = await client.remixImage.run({
model: "flux-2-max-remix-image",
prompt: "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/flux_2/remix_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"flux-2-max-remix-image","prompt":"Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/flux_2/remix_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'flux-2-max-remix-image',
'prompt' => 'Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.remixImage().run({"model":"flux-2-max-remix-image","prompt":"Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail."});
task.waitForResult();
require "runapi/flux_2"
client = RunApi::Flux2::Client.new
result = client.remix_image.run(
model: "flux-2-max-remix-image",
prompt: "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.remixImage.Run({"model":"flux-2-max-remix-image","prompt":"Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, fine detail."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model flux-2-max-remix-image \
--endpoint remix_image \
--wait
6 إصدارات متاحة
اختر أي نموذج وابدأ التوليد في ثوانٍ.
اختر أي نموذج وابدأ التوليد في ثوانٍ.
| المزوّد | Black Forest Labs |
| معرّف النموذج | flux-2-max-remix-image |
| النمط | Image |
| أنواع المهام | Asynchronous |
| نقطة نهاية API | /api/v1/flux_2/remix_image |
| وحدة الفوترة | call |
| معلمات الإدخال | aspect_ratio, callback_url, model, output_count, output_resolution, prompt, source_image_urls |
| الدقة القصوى | 1k |
| نسب العرض إلى الارتفاع | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 |
| حالة الكتالوج | جاهز للتشغيل |
سجّل مجانًا وأنشئ مفتاح API لـ flux-2-max-remix-image من لوحة التحكم.
أرسل طلب POST إلى /api/v1/flux_2/remix_image باستخدام معرّف نموذج flux-2-max-remix-image ومعلماتك.
استطلع المهمة أو اتبع الاستدعاء الراجع لاسترداد نتيجة flux-2-max-remix-image المكتملة.
يدعم 1k من مخطط الـ endpoint المنشور.
اضبط 5 معاملاً موثَّقاً، بما يشمل aspect_ratio, output_count, output_resolution, prompt, source_image_urls.
يعرض 1 endpoint(s) عامة: remix_image.
تقبل المهام غير المتزامنة عنوان URL للاستدعاء عند اكتمال المهمة.
promptImage editing instruction.
aspect_ratioOutput aspect ratio. (1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3)
callback_urlWebhook URL for async notifications.
output_countNumber of images to generate. (1)
output_resolutionOutput resolution. (1k)
source_image_urlsExactly one public HTTP(S) source image URL.
أنشئ تلقائيًا صور منتجات بأسلوب lifestyle لكتالوجات التجارة الإلكترونية التي تفتقر إلى تصوير استوديو.
ابتكر سريعًا مفاهيم للعوالم والشخصيات قبل الانتقال إلى العمل الفني النهائي.
أنشئ أعمال غلاف ورسومًا توضيحية فريدة للمدونات والمقالات على نطاق واسع.
مرّر معرّف النموذج الظاهر في دليل البدء السريع.
تتدرج حدود المعدل لكل مفتاح بحسب مستوى الاستخدام. راجع صفحة التسعير للاطلاع على الحدود الحالية.
نعم — المتغير مجرد خيار. بدّل عبر تغيير معامل model.
حيثما يتوفر البث، يقدّم RunAPI البث من البداية إلى النهاية.
افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.