مستندات المطور UlazAI
سيدريم API
سيدريم API
نقاط النهاية لـ Seedream 3.0 (الصور) وV1 Pro/Lite من الصورة إلى الفيديو (من 3 إلى 12 ثانية). خطافات الويب + الاستقصاء الاحتياطي، واسترداد الأموال تلقائيًا عند الفشل.
بريد
/api/v1/seedream/generate/
الصورة (سيدريم 3.0)
curl -X POST https://ulazai.com/api/v1/seedream/generate/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{
"generation_type": "image",
"prompt": "Modern product photo, studio, soft edge light",
"image_size": "square_hd",
"guidance_scale": 2.5,
"enable_safety_checker": true
}'
بريد
/api/v1/seedream/generate/
فيديو — V1 Pro (I2V)
curl -X POST https://ulazai.com/api/v1/seedream/generate/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{
"generation_type": "video",
"prompt": "Parallax push-in, subtle particles over logo plate",
"video_model": "bytedance/v1-pro-image-to-video",
"input_image_url": "https://example.com/still.jpg",
"resolution": "720p",
"duration": 6,
"camera_fixed": false
}'
بريد
/api/v1/seedream/generate/
فيديو — الإصدار 1 لايت (I2V)
curl -X POST https://ulazai.com/api/v1/seedream/generate/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{
"generation_type": "video",
"prompt": "Slow reveal, ambient dust, gentle camera push",
"video_model": "bytedance/v1-lite-image-to-video",
"input_image_url": "https://example.com/still.png",
"resolution": "720p",
"duration": 5,
"camera_fixed": false
}'
احصل على
/seedream/status/<generation_id>/
curl https://ulazai.com/seedream/status/UUID/ \
-b 'sessionid=YOUR_SESSION'
بريد
/api/v1/seedream/enhance/
curl -X POST https://ulazai.com/api/v1/seedream/enhance/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{"prompt":"Hero product on matte plate, cinematic lighting","generation_type":"video"}'ملاحظات:
- الصور: 4 اعتمادات. V1 Pro: 6/10/16 اعتماد في الثانية حسب الدقة. V1 Lite: 3ث=20، +5 لكل ثانية إضافية (3-12ث).
- تضمن عمليات الاسترجاعات + الاقتراع إكمالًا موثوقًا به. استرداد تلقائي عند الفشل.