Skip to content

Commit bb5cdee

Browse files
author
Sherry Yang
committed
Update.
1 parent ad9eeec commit bb5cdee

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

learn-pr/wwl-data-ai/get-started-vision-azure/includes/4-video-generation.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,24 @@ Typical uses:
3636

3737
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.
3838

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+
3941
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.
4042

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+
4149
## Using the REST Interface for video generation
4250

4351
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.
4452

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+
4557
Video generation is resource‑intensive and typically runs as an **asynchronous job**.
4658

4759
Asynchronous means you:
@@ -66,8 +78,8 @@ The Sora 2 API provides distinct endpoints for:
6678

6779
In the example, the script starts an **async render job** and returns a response that includes a **video id** to poll.
6880

69-
> **Base URL pattern (v1)**:
70-
> `https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/`
81+
>[!NOTE]
82+
> **Bash** is a command line shell and scripting language. Curl is a command that you run inside Bash.
7183
7284
```bash
7385
curl -X POST "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/videos" \
587 KB
Loading
156 KB
Loading

0 commit comments

Comments
 (0)