UlazAI utvecklardokument
Äldre video APIs
Äldre och specialiserade videoslutpunkter
Befintliga slutpunkter förblir tillgängliga för kompatibilitet. Ny modell täckning och aktiv funktionsutveckling är centrerad på Video Studio APIs.
Rekommenderad standard för nybyggen:
/api/v1/video-studio/generate/
Äldre slutpunktslista
| Metod | Väg | Syfte |
|---|---|---|
| POST | /api/v1/generate/video/ |
Legacy API-key endpoint (supports veo3_fast, veo3, kling_3_0, kling_3_0_motion_control). |
| FÅ | /api/v1/generate/{generation_id}/ |
Legacy generation status endpoint for video and image jobs. |
| FÅ | /api/v1/generate/history/ |
Legacy generation history endpoint. |
| POST | /api/v1/sora/generate/text-to-video/ |
Sora 2 text-to-video API. |
| POST | /api/v1/sora/generate/image-to-video/ |
Sora 2 image-to-video API. |
| POST | /api/v1/sora/generate/storyboard/ |
Sora storyboard API. |
| FÅ | /api/v1/sora/status/{task_id}/ |
Sora task status API. |
Migrationsvägledning
| Aktuell ruttfamilj | Aktuell modellomfattning | Video Studio ersättning |
|---|---|---|
/api/v1/generate/video/ |
veo3_fast, veo3, kling_3_0, kling_3_0_motion_control |
POST /api/v1/video-studio/generate/ med model_slug för alla videomodeller |
/api/v1/sora/* |
Endast för Sora | POST /api/v1/video-studio/generate/ med model_slug=sora_2* |
| Modellspecifika landningsdokument | Enkelmodelldetaljer | Använd matris + kanoniska API-dokument för delat kontraktbeteende |
Video Studio-verktygens slutpunkter
Dessa hjälpare endpoints bygger strukturerade prompts och skickar jobb genom samma kanoniska generationsflöde.
| Metod | Väg | Syfte |
|---|---|---|
| POST | /api/v1/video-studio/tools/street-interview/generate/ |
Structured prompt helper for interview-style clips (API key or token auth). |
| POST | /api/v1/video-studio/tools/ugc-ad-quick/generate/ |
Generate UGC ad videos from product and audience inputs (API key or token auth). |
| POST | /api/v1/video-studio/tools/video-remix/generate/ |
Remix source image or source video into a new style direction (API key or token auth). |
Referensutdrag
Äldre API-nyckelflöde
curl -X POST https://ulazai.com/api/v1/generate/video/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Luxury product teaser with moving camera",
"video_model": "veo3_fast",
"aspect_ratio": "16:9"
}'
Äldre rörelsekontrollflöde
curl -X POST https://ulazai.com/api/v1/generate/video/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "No distortion, the character'\''s movements are consistent with the video.",
"video_model": "kling_3_0_motion_control",
"source_image_urls": ["https://example.com/character.png"],
"video_urls": ["https://example.com/motion.mp4"],
"character_orientation": "video",
"quality_mode": "720p",
"duration_seconds": 15
}'
Canonical Video Studio-ersättning (API-nyckel)
fetch("https://ulazai.com/api/v1/video-studio/generate/", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY",
},
body: JSON.stringify({
model_slug: "veo31_fast",
prompt: "Luxury product teaser with moving camera",
aspect_ratio: "16:9",
duration_seconds: 8
})
});