UlazAI documente pentru dezvoltatori
Videoclipuri vechi API
Puncte finale video vechi și specializate
Punctele finale existente rămân disponibile pentru compatibilitate. Acoperire model nou și dezvoltarea funcțiilor active sunt centrate pe Video Studio API.
Implicit recomandat pentru versiunile noi:
/api/v1/video-studio/generate/
Lista de puncte finale moștenite
| Metoda | Calea | Scop |
|---|---|---|
| POSTĂ | /api/v1/generate/video/ |
Legacy API-key endpoint (supports veo3_fast, veo3, kling_3_0, kling_3_0_motion_control). |
| GET | /api/v1/generate/{generation_id}/ |
Legacy generation status endpoint for video and image jobs. |
| GET | /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. |
| GET | /api/v1/sora/status/{task_id}/ |
Sora task status API. |
Ghid de migrare
| Familia de rute curente | Domeniul actual al modelului | Înlocuire Video Studio |
|---|---|---|
/api/v1/generate/video/ |
veo3_fast, veo3, kling_3_0, kling_3_0_motion_control |
POST /api/v1/video-studio/generate/ cu model_slug pentru toate modelele video |
/api/v1/sora/* |
Doar Sora | POST /api/v1/video-studio/generate/ cu model_slug=sora_2* |
| Documente de aterizare specifice modelului | Detalii pentru un singur model | Folosiți documente matrice + canonice API pentru comportamentul contractual partajat |
Punctele finale ale instrumentelor Video Studio
Aceste puncte finale helper construiesc prompt-uri structurate și trimit joburi prin acelaşi flux de generaţie canonică.
| Metoda | Calea | Scop |
|---|---|---|
| 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). |
Fragmente de referință
Legacy API-cheie flux
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"
}'
Flux de control al mișcării vechi
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
}'
Înlocuire Canonical Video Studio (tasta API)
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
})
});