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

GPT Image 2.5 Text to Image

التكامل

معرّف النموذج openai/gpt-image-2.5/flare/text-to-image
# 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/openai/gpt-image-2.5/flare/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A handwritten recipe card titled \"Apple Pie\" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.",
    "quality": "medium"
  }'

# 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.013 $⁩ 13 رصيد API تشغيله في هذه الصفحة

الحصول على مفتاح API
OpenAI من نص إلى صورة #typography#transparent#instruction-following

نموذج الصور من OpenAI مع التزام قوي بالتعليمات وعرض واضح للنص وخلفيات شفافة.

أمثلة

المخرجات · ~24 ث
A handwritten recipe card titled "Apple Pie" on a wooden kitchen table, neat cursive ingredient list, a slice of pie ...

المطالبةA handwritten recipe card titled "Apple Pie" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.

medium⁨‏0.013 $⁩ · 13 رصيد API

إنشاء طلب

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

•مطلوب 193 / 32000

الموجّه المستخدم لتوليد الصور.

image_size الافتراضي landscape_4_3

تقبل أبعاد المخرج اسم إعداد مسبق أو كائن {width, height} أو 'auto' لاختيار النموذج لأفضل حجم. تتطلب جميع الأحجام المحددة أبعادًا قابلة للقسمة على 16، وحواف لا يتجاوز طولها 3840px، ونسبة أبعاد لا تتجاوز 3:1، وإجمالي بكسلات بين 655,360 و8,294,400.

background الافتراضي auto

خلفية الصورة الناتجة.

quality

اختيار جودة الصورة، مع تفويض القرار إلى النموذج عند استخدام 'auto'. تأتي التفاصيل الإضافية في الإعدادات الأعلى مع زمن استجابة أطول واستخدام أكبر للرموز.

num_images الافتراضي 1

عدد الصور المراد إنتاجها.

متقدم output_format · output_compression
output_format الافتراضي png

تنسيق ملفات الصور الناتجة.

إعداد الضغط المتاح فقط لـ 'jpeg' أو 'webp' في output_format؛ ويتراوح النطاق المسموح من 0 إلى 100.

POST /run/openai/gpt-image-2.5/flare/text-to-image?wait=20 عرض السعر → ⁨‏0.013 $⁩
# 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/openai/gpt-image-2.5/flare/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A handwritten recipe card titled \"Apple Pie\" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.",
    "quality": "medium"
  }'

# 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"

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

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

حول GPT Image 2.5 Text to Image

مولّد الصور العام من OpenAI: يتبع التعليمات الطويلة والمحددة، وينسّق النصوص والمخططات بوضوح، ويمكنه إرجاع PNG أو WebP بخلفية شفافة للملصقات والأيقونات واقتطاعات المنتجات. توازن خمسة مستويات للجودة بين السرعة والسعر والتفاصيل. تصل الأحجام إلى 3840 px على الحافة الأطول (بمضاعفات 16، وبحد أقصى 3:1)؛ وما يصل إلى عشر صور لكل طلب.

المعاملات

أرسل الاسم الأساسي أو الاسم الأصلي، وليس كليهما. الأسماء الأساسية

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
≤ 32,000 حرف
الموجّه المستخدم لتوليد الصور.
image_sizeاختياري
النوعobject
الافتراضيlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
تقبل أبعاد المخرج اسم إعداد مسبق أو كائن {width, height} أو 'auto' لاختيار النموذج لأفضل حجم. تتطلب جميع الأحجام المحددة أبعادًا قابلة للقسمة على 16، وحواف لا يتجاوز طولها 3840px، ونسبة أبعاد لا تتجاوز 3:1، وإجمالي بكسلات بين 655,360 و8,294,400.
backgroundاختياري
النوعenum
الافتراضيauto
autotransparentopaque
خلفية الصورة الناتجة.
qualityاختياري
النوعenum
الافتراضيhigh
autolowmediumhighxhighmax
اختيار جودة الصورة، مع تفويض القرار إلى النموذج عند استخدام 'auto'. تأتي التفاصيل الإضافية في الإعدادات الأعلى مع زمن استجابة أطول واستخدام أكبر للرموز.
num_imagesاختياري num_outputs
النوعinteger
الافتراضي1
1 – 10
عدد الصور المراد إنتاجها.
output_formatاختياري
النوعenum
الافتراضيpng
jpegpngwebp
تنسيق ملفات الصور الناتجة.
output_compressionاختياري
النوعinteger | null
0 – 100
إعداد الضغط المتاح فقط لـ 'jpeg' أو 'webp' في output_format؛ ويتراوح النطاق المسموح من 0 إلى 100.
مطلوب الاسم الأساسي، مقبول أيضًا

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openai/gpt-image-2.5/flare/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": 13,
    "usd": "0.013",
    "charged": 13,
    "refunded": 0
  },
  "input": {
    "prompt": "A flat vector sticker of a smiling cactus wearing sunglasses, thick white outline, no background",
    "image_size": "square_hd",
    "quality": "medium",
    "background": "transparent"
  },
  "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
      }
    ]
  },
  "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 هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
images
array of object {url, content_type, file_name, file_size, width, height}الصور الناتجة عن النموذج.

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

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