seedreamافتراضيByteDance Seedream API — كيفية الاتصال والدفع
ByteDance Seedream — توليد الصور وتحريرها.
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
Pixel seedreamافتراضي | يبدأ من $0.043333 per image |
أنشئ النتيجة التي تحتاج إليها
seedreamما هو ByteDance Seedream
ByteDance Seedream — توليد الصور وتحريرها.
ملخص العقد
- الإدخال
- 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","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","version":"v4","mode":"text-to-image","guidance":"2.5","image_resolution":"1K","max_images":"1"}}'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",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"version": "v4",
"mode": "text-to-image",
"guidance": "2.5",
"image_resolution": "1K",
"max_images": "1"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى ByteDance Seedream عبر GetVibe API.
aspect_ratioversionmodeinput_urlsguidanceimage_resolutionmax_imagesseedimage_file_idimage_base64input_file_idsinput_base64| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
aspect_ratio | option selection | 1:1 · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
version | option selection | v3 · v4 | v4 | Included in the base price |
mode | option selection | image-to-image | image-to-image | Included in the base price |
input_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
guidance | option selection | 2.5 · 1 · 5 · 7.5 · 10 | 2.5 | Included in the base price |
image_resolution | option selection | 1K · 2K · 4K | 1K | Included in the base price |
max_images | option selection | 1 · 2 · 3 · 4 · 5 · 6 | 1 | Included in the base price |
seed | number | Seed (optional) | — | 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
تكلفة ByteDance Seedream: من $3.00 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Pixelseedreamيبدأ من $0.043333أسعار دقيقة
| الإصدار | V3 | V4 |
|---|---|---|
| Pixel | $0.053333 | $0.043333 |
كل مجموعة بصيغة JSON: /api/media/price-table?model=seedream
README
يحتوي العقد القابل للقراءة آليًا لـ ByteDance Seedream على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# ByteDance Seedream
نموذج عام: seedream
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `aspect_ratio` (option selection): 1:1 · 16:9 · 9:16 · 4:3 · 3:4; افتراضي: 1:1
- `version` (option selection): v3 · v4; افتراضي: v4
- `mode` (option selection): image-to-image; افتراضي: image-to-image
- `input_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; افتراضي: —
- `guidance` (option selection): 2.5 · 1 · 5 · 7.5 · 10; افتراضي: 2.5
- `image_resolution` (option selection): 1K · 2K · 4K; افتراضي: 1K
- `max_images` (option selection): 1 · 2 · 3 · 4 · 5 · 6; افتراضي: 1
- `seed` (number): Seed (optional); افتراضي: —
- `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`: Pixelالأسئلة الشائعة حول واجهة برمجة تطبيقات ByteDance Seedream
كم تبلغ تكلفة ByteDance Seedream؟
سعر ByteDance Seedream: من $3.00 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط ByteDance Seedream الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API