UlazAI documente pentru dezvoltatori
Seedream API
Seedream API
Puncte finale pentru Seedream 3.0 (imagini) și V1 Pro/Lite imagine-video (3–12s). Webhooks + sondaj alternativ, rambursări automate la eșec.
POSTĂ
/api/v1/seedream/generate/
Imagine (Seedream 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
}'
POSTĂ
/api/v1/seedream/generate/
Video — 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
}'
POSTĂ
/api/v1/seedream/generate/
Video — v1 lite (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
}'
GET
/seedream/status/<generation_id>/
curl https://ulazai.com/seedream/status/UUID/ \
-b 'sessionid=YOUR_SESSION'
POSTĂ
/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"}'Note:
- Imagini: 4 credite. V1 Pro: 6/10/16 credite pe secundă prin rezoluție. V1 Lite: 3s=20, +5 pe secundă suplimentară (3–12s).
- Apelurile inverse + sondarea asigură finalizarea fiabilă. Rambursare automată la eșec.