You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-data-ai/get-started-vision-azure/includes/4-video-generation.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,24 @@ Typical uses:
36
36
37
37
Once you deploy an appropriate video generation model, you can test it in the Foundry portal playground. In the playground, you can also specify parameters like video dimensions and duration.
38
38
39
+
:::image type="content" source="../media/sora-playground.png" alt-text="Screenshot of the Sora model in the Foundry Playground with parameters and a prompt." lightbox="../media/sora-playground.png":::
40
+
39
41
Your prompts to the video generation model should include a description of the content in the desired video. After a few minutes, the model produces a video.
40
42
43
+
You can take a look at the sample code in the playground.
44
+
45
+
:::image type="content" source="../media/sora-code-sample-playground.png" alt-text="Screenshot of the Sora model in the Foundry Playground with sample code." lightbox="../media/sora-code-sample-playground.png":::
46
+
47
+
The sample code uses the REST Interface for video generation.
48
+
41
49
## Using the REST Interface for video generation
42
50
43
51
You can use the **Foundry REST interface** to *request* a video generation job and *retrieve* the finished MP4 *programmatically*. Programmatic video generation enables you to automate the video generation process.
44
52
53
+
>[!NOTE]
54
+
> A REST API (Representational State Transfer API) is a web interface that lets programs communicate using HTTP. An SDK as a developer-friendly toolkit built on top of that interface. You can always work with the underlying REST API, especially if an SDK in the programming language you are familiar with does not exist.
55
+
> You can use **curl** (short for Client URL) to call, or talk to, the REST API. Curl is a command line tool used to send and receive data over the internet. At its core, curl: makes HTTP requests (and other protocols), sends data to a server, and receives and prints the server’s response.
56
+
45
57
Video generation is resource‑intensive and typically runs as an **asynchronous job**.
46
58
47
59
Asynchronous means you:
@@ -66,8 +78,8 @@ The Sora 2 API provides distinct endpoints for:
66
78
67
79
In the example, the script starts an **async render job** and returns a response that includes a **video id** to poll.
0 commit comments