تخطّي إلى المحتوى

Recraft V4.1 Flash Text to Image

التكامل

معرّف النموذج recraft/v4.1/flash/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4.1/flash/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

هذا الطلب: ⁨‏0.007 $⁩ 7 أرصدة API · ≈ ⁨‏0.75 ₽⁩ تشغيله في هذه الصفحة

الحصول على مفتاح API
Recraft من نص إلى صورة سريع #photography#editorial#illustration#mixed-media

توليد Recraft V4.1 Flash سريع من النص إلى صور نقطية مع التحكم في لوحة الألوان ولون الخلفية

Recraft · صورة

ستظهر نتيجتك الأولى هنا

أنشئ طلبًا أدناه وشغّله باستخدام مفتاح API الخاص بك. تُنسخ المخرجات إلى تخزيننا، وتُحفظ إلى الأبد أو لمدة 7 أيام مجانًا.

إنشاء طلب

تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.

•مطلوب 88 / 10000
image_size الافتراضي square_hd
متقدم enable_safety_checker · colors · background_color
الافتراضي []

مصفوفة تحتوي على الألوان المفضلة.

اللون المفضل لخلفية الصور المُولَّدة.

POST /run/recraft/v4.1/flash/text-to-image?wait=20 عرض السعر → ⁨‏0.007 $⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4.1/flash/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

تشغيل هذا الطلب

يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API

حول Recraft V4.1 Flash Text to Image

ينشئ صورًا نقطية مثل الصور الفوتوغرافية والرسوم والتكوينات متعددة الوسائط من `prompt` يصل إلى 10,000 حرف. اختر واحدًا من ستة إعدادات `image_size` المسبقة، ووجّه المظهر باستخدام `colors` و`background_color`. هذه هي نسخة Flash من سلسلة V4.1. تعيد قائمة من الصور.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
≤ 10,000 حرف
image_sizeاختياري
النوعobject
الافتراضيsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsاختياري
النوعobject[]
الافتراضي[]
مصفوفة تحتوي على الألوان المفضلة.
colors[].rاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأحمر.
colors[].gاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأخضر.
colors[].bاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأزرق.
background_colorاختياري
النوعobject
اللون المفضل لخلفية الصور المُولَّدة.
background_color.rاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأحمر.
background_color.gاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأخضر.
background_color.bاختياري
النوعinteger
الافتراضي0
0 – 255
قيمة المكوّن الأزرق.
enable_safety_checkerاختياري
النوعboolean
الافتراضيtrue
مفتاح فحص الأمان الذي يتطلب إعداد إيقافه تفويض الحساب. من دون هذا التفويض، يُفحص كل طلب بغض النظر عن الإعداد؛ وتفعّل true أداة الفحص.
مطلوب

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4.1/flash/text-to-image",
  "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": 7,
    "usd": "0.007",
    "charged": 7,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
      }
    ]
  },
  "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://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ملفاتك، خيارككل outputs[].url هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
images
array of object {url, content_type, file_name, file_size}

مزيد من النماذج: من نص إلى صورة

لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/recraft/v4.1/flash/text-to-image.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt