seedream-5افتراضيByteDance Seedream 5 API — كيفية الاتصال والدفع
ByteDance Seedream 5 — الإصداران Lite وPro للتوليد والتحرير (seedream/5-*-text-to-image وseedream/5-*-image-to-image).
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
Pixel seedream-5افتراضي | يبدأ من $0.036667 per image |
أنشئ النتيجة التي تحتاج إليها
seedream-5ما هو ByteDance Seedream 5
ByteDance Seedream 5 — الإصداران Lite وPro للتوليد والتحرير (seedream/5-*-text-to-image وseedream/5-*-image-to-image).
ملخص العقد
- الإدخال
- text, image
- الإخراج
- image
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 90 ثانية
نقاط القوة
- التسعير: لكل صورة
- المدخلات: نص، صورة
- 5 خيارات قابلة للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- رسوم توضيحية للمقالات ووسائل التواصل الاجتماعي
- صور المنتجات
- اللافتات والأغلفة
- نماذج أولية للتصميم
عقد API
تتم عملية الإنشاء بشكل غير متزامن: أنشئ مهمة، ثم استعلم عن حالتها حتى تكتمل.
- إنشاء مهمة
- POST /api/media/generate
- التحقق من الحالة
- GET /api/media/jobs/{jobId}
- الإدخال
- text, image
- الإخراج
- image
- الاستعلام الدوري
- كل 3 ثوانٍ · حتى 90 ثانية
- المصادقة
- Authorization: Bearer sk-pv-…
مثال على طلب
مرّر مفتاحك في ترويسة Bearer. تُرجع API jobId للاستعلام عن الحالة.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"seedream-5","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","tier":"lite","mode":"text-to-image","quality":"basic"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "seedream-5",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"tier": "lite",
"mode": "text-to-image",
"quality": "basic"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى ByteDance Seedream 5 عبر GetVibe API.
promptمطلوبimage_urlaspect_ratiotiermodequalityinput_urlsimage_file_idimage_base64input_file_idsinput_base64| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
promptمطلوب | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
tier | option selection | Lite (fast) (default) · Pro (max quality) | Lite (سريع) | Lite (fast): $0.036667, Pro (max quality): $0.046667 |
mode | option selection | Generation (default) · Image-to-Image | التوليد | Included in the base price |
quality | option selection | Basic (default) · High · Ultra (4K, Lite) | أساسي | Basic: $0.036667, High: $0.036667, Ultra (4K, Lite): $0.036667 |
input_urls | Array<URLs>, 0–14 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
الطلب: POST https://getvibeapi.com/api/media/generate. الأسعار بالدولار الأمريكي.
سعر ByteDance Seedream 5
تكلفة ByteDance Seedream 5: من $0.036667 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Resolution and quality — Basic, Version and quality — Lite (fast), Mode — Generation, Frame format — 1:1. تبلغ تكلفة هذا الطلب $0.036667.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Pixelseedream-5يبدأ من $0.036667أسعار دقيقة
| الجودة \ جودة الإخراج | أساسي | مرتفع | Ultra (4K، Lite) |
|---|---|---|---|
| Lite (سريع) | $0.036667 | $0.036667 | $0.036667 |
| Pro (max quality) | $0.046667 | $0.093333 | — |
كل مجموعة بصيغة JSON: /api/media/price-table?model=seedream-5
README
يحتوي العقد القابل للقراءة آليًا لـ ByteDance Seedream 5 على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# ByteDance Seedream 5
نموذج عام: seedream-5
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `prompt` (text): text description; افتراضي: required
- `image_url` (URL): Public image URL; افتراضي: —
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4; افتراضي: 1:1
- `tier` (option selection): Lite (fast) (default) · Pro (max quality); افتراضي: Lite (fast)
- `mode` (option selection): Generation (default) · Image-to-Image; افتراضي: Generation
- `quality` (option selection): Basic (default) · High · Ultra (4K, Lite); افتراضي: Basic
- `input_urls` (Array<URLs>, 0–14 items): Public HTTP(S) URLs; افتراضي: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; افتراضي: —
- `input_file_ids` (Array<strings>): List of values; افتراضي: —
- `input_base64` (Array<strings>): List of values; افتراضي: —
## الأنواع العامة
- `seedream-5`: Pixelالأسئلة الشائعة حول واجهة برمجة تطبيقات ByteDance Seedream 5
كم تبلغ تكلفة ByteDance Seedream 5؟
سعر ByteDance Seedream 5: من $0.036667 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط ByteDance Seedream 5 الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API