مواد پر جائیں

FLUX.2 [dev]

انٹیگریٹ کریں

ماڈل id flux-2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Ultra-stylized high-fashion editorial poster of a confident young Asian female model standing in the center frame, elegant pose, glossy radiant skin, soft dewy makeup, long silky black hair with wispy bangs, wearing modern trendy K-fashion streetwear with premium styling details. Clean studio lighting with high-contrast fashion flash photography, sharp focus, ultra-detailed textures, cinematic composition. Background filled with vibrant retro pop-art magazine aesthetics, layered graphic typography, dynamic UI-inspired design elements, holographic chrome effects, stickers (stars, hearts, sparkles), barcode strips, speech bubbles, and futuristic collage layering. Japanese and Korean-inspired typographic accents integrated as visual design elements. Overall mood combines nostalgic 2000s teen fashion magazine energy with modern luxury editorial campaign style. Bold color harmony, premium print aesthetic, ultra crisp details, fashion advertising quality, 8K resolution, highly polished commercial poster look, surreal yet stylish, trend-forward global fashion branding vibe."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

یہ درخواست: ⁨$0.012⁩ 12 API کریڈٹس اس صفحے پر چلائیں

API کلید حاصل کریں
Black Forest Labs متن سے تصویر #open-weights#budget#versatile

دوسری نسل کا اوپن FLUX ماڈل، کم فی میگا پکسل قیمت پر بہتر پرامپٹ فالوئنگ کے ساتھ۔

مثالیں

آؤٹ پٹ · ~12 s
Ultra-stylized high-fashion editorial poster of a confident young Asian female model standing in the center frame, el...

پرامپٹUltra-stylized high-fashion editorial poster of a confident young Asian female model standing in the center frame, elegant pose, glossy radiant skin, soft dewy makeup, long silky black hair with wispy bangs, wearing modern trendy K-fashion streetwear with premium styling details. Clean studio lighting with high-contrast fashion flash photography, sharp focus, ultra-detailed textures, cinematic composition. Background filled with vibrant retro pop-art magazine aesthetics, layered graphic typography, dynamic UI-inspired design elements, holographic chrome effects, stickers (stars, hearts, sparkles), barcode strips, speech bubbles, and futuristic collage layering. Japanese and Korean-inspired typographic accents integrated as visual design elements. Overall mood combines nostalgic 2000s teen fashion magazine energy with modern luxury editorial campaign style. Bold color harmony, premium print aesthetic, ultra crisp details, fashion advertising quality, 8K resolution, highly polished commercial poster look, surreal yet stylish, trend-forward global fashion branding vibe.

⁨$0.012⁩ · 12 API کریڈٹس

X پر @SadiaMalik182 کا پرامپٹ

درخواست بنائیں

کنٹرولز ماڈل اسکیما سے تیار ہوتے ہیں۔ آپ کے بدلنے کے ساتھ کوڈ اور قیمت اپ ڈیٹ ہوتے ہیں۔

•لازمی

تصویر کی تخلیق کی رہنمائی کرنے والا پرامپٹ۔

image_size ڈیفالٹ landscape_4_3

آؤٹ پٹ تصویر کا سائز، ہر axis پر کم از کم 512 اور زیادہ سے زیادہ 2048 pixels تک محدود۔

num_images ڈیفالٹ 1

تخلیق کے لیے مطلوبہ تصاویر کی تعداد۔

ایڈوانسڈ acceleration · output_format · guidance_scale · num_inference_steps · seed · enable_prompt_expansion
acceleration ڈیفالٹ regular

تصاویر تخلیق کرنے کے لیے acceleration سیٹنگ۔

output_format ڈیفالٹ png

نتیجہ خیز تصویر کا فائل فارمیٹ۔

ڈیفالٹ 2.5

متعلقہ تصویر تلاش کر کے دکھانے کے لیے ماڈل کی پرامپٹ سے مطابقت کی ترتیب، guidance scale کے طور پر ظاہر کی جاتی ہے۔

ڈیفالٹ 28

چلائے جانے والے inference steps کی تعداد۔

تخلیق کے seed کو اوور رائٹ کرتا ہے؛ اسے چھوڑنے سے تخلیق تصادفی طور پر seed منتخب کرتی ہے۔

POST /run/flux-2?wait=20 قیمت → ⁨$0.012⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Ultra-stylized high-fashion editorial poster of a confident young Asian female model standing in the center frame, elegant pose, glossy radiant skin, soft dewy makeup, long silky black hair with wispy bangs, wearing modern trendy K-fashion streetwear with premium styling details. Clean studio lighting with high-contrast fashion flash photography, sharp focus, ultra-detailed textures, cinematic composition. Background filled with vibrant retro pop-art magazine aesthetics, layered graphic typography, dynamic UI-inspired design elements, holographic chrome effects, stickers (stars, hearts, sparkles), barcode strips, speech bubbles, and futuristic collage layering. Japanese and Korean-inspired typographic accents integrated as visual design elements. Overall mood combines nostalgic 2000s teen fashion magazine energy with modern luxury editorial campaign style. Bold color harmony, premium print aesthetic, ultra crisp details, fashion advertising quality, 8K resolution, highly polished commercial poster look, surreal yet stylish, trend-forward global fashion branding vibe."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

یہ درخواست چلائیں

آپ کی key اسی براؤزر میں رہتی ہے: یہ صرف Doitong API کو بھیجی جاتی ہے اور صرف اس صورت میں localStorage میں محفوظ ہوتی ہے جب آپ Remember منتخب کریں۔ API کلید حاصل کریں

FLUX.2 [dev] کے بارے میں

FLUX.2 فیملی کا open-weights رکن۔ FLUX.1 کے مقابلے میں یہ کمپوزیشن، مواد اور روشنی کی ہدایات زیادہ قابل اعتماد طریقے سے برقرار رکھتا ہے اور ڈرائنگ سے پہلے مختصر پرامپٹ کو اختیاری طور پر وسیع کر سکتا ہے۔ پری سیٹ یا حسب ضرورت سائز، 4 سے 50 سیمپلنگ مراحل اور ہر درخواست میں چار تک تصاویر منتخب کریں؛ PNG، JPEG یا WebP آؤٹ پٹ۔

پیرامیٹرز

معیاری نام یا مقامی نام میں سے صرف ایک بھیجیں، دونوں نہیں۔ معیاری نام

نامقسم ڈیفالٹمجاز تفصیل
promptلازمی
قسمstring
تصویر کی تخلیق کی رہنمائی کرنے والا پرامپٹ۔
guidance_scaleاختیاری
قسمnumber
ڈیفالٹ2.5
0 – 20
متعلقہ تصویر تلاش کر کے دکھانے کے لیے ماڈل کی پرامپٹ سے مطابقت کی ترتیب، guidance scale کے طور پر ظاہر کی جاتی ہے۔
seedاختیاری
قسمinteger | null
تخلیق کے seed کو اوور رائٹ کرتا ہے؛ اسے چھوڑنے سے تخلیق تصادفی طور پر seed منتخب کرتی ہے۔
num_inference_stepsاختیاری
قسمinteger
ڈیفالٹ28
4 – 50
چلائے جانے والے inference steps کی تعداد۔
image_sizeاختیاری
قسمobject
ڈیفالٹlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
آؤٹ پٹ تصویر کا سائز، ہر axis پر کم از کم 512 اور زیادہ سے زیادہ 2048 pixels تک محدود۔
num_imagesاختیاری num_outputs
قسمinteger
ڈیفالٹ1
1 – 4
تخلیق کے لیے مطلوبہ تصاویر کی تعداد۔
accelerationاختیاری
قسمenum
ڈیفالٹregular
noneregularhigh
تصاویر تخلیق کرنے کے لیے acceleration سیٹنگ۔
enable_prompt_expansionاختیاری
قسمboolean
ڈیفالٹfalse
خودکار پرامپٹ enhancement: true نتائج بہتر بنانے کے لیے پرامپٹ کو وسعت دیتا ہے۔
output_formatاختیاری
قسمenum
ڈیفالٹpng
jpegpngwebp
نتیجہ خیز تصویر کا فائل فارمیٹ۔
لازمی معیاری نام، یہ بھی قبول ہے

آؤٹ پٹ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 12,
    "usd": "0.012",
    "charged": 12,
    "refunded": 0
  },
  "input": {
    "prompt": "Dutch angle close-up of a mountain climber at dawn, frost on the beard, dramatic rim light, gritty realism",
    "image_size": "landscape_16_9"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
آپ کی فائلیں، آپ کا انتخابہر outputs[].url ہمارے اسٹوریج میں ایک کاپی ہے: ہمیشہ کے لیے محفوظ (فی GB-ماہ ادائیگی) یا مفت میں 7 دن تک، آپ کی اکاؤنٹ سیٹنگ یا ?storage= کے مطابق۔
ہر ماڈل میں ایک جیسی ساختtype، url، content_type، width، height اور duration، تصاویر، ویڈیو اور آڈیو سب کے لیے یکساں۔ output ماڈل کا اپنا نتیجہ آبجیکٹ ہے۔
آؤٹ پٹ کے فیلڈز
images
array of object {url, content_type, file_name, file_size, width, height}ماڈل سے تیار کردہ تصاویر۔
timings
object
seed
integerتصویر کی تخلیق کا سیڈ، جس میں ان پٹ میں سیڈ نہ دینے پر تصادفی طور پر منتخب قدر شامل ہوتی ہے؛ بصورتِ دیگر فراہم کردہ قدر دہرائی جاتی ہے۔
has_nsfw_concepts
array of booleanبتاتا ہے کہ تخلیق کردہ تصاویر میں NSFW تصورات موجود ہیں یا نہیں۔
prompt
stringتصویر کی تخلیق کے دوران استعمال ہونے والا پرامپٹ۔

مزید ماڈلز: متن سے تصویر

AI ایجنٹس کے لیے: یہ صفحہ Markdown میں یہاں موجود ہے https://doitong.com/ur/developers/models/flux-2.md. تمام ماڈلز اور گائیڈز: https://doitong.com/developers/llms.txt