Skip to content

Commit e72d18c

Browse files
committed
flesh out quickstart
1 parent 86a99ed commit e72d18c

File tree

1 file changed

+44
-7
lines changed

1 file changed

+44
-7
lines changed

articles/ai-services/openai/video-generation-quickstart.md

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Quickstart: Generate video with Azure OpenAI'
2+
title: 'Quickstart: Generate video with Sora'
33
titleSuffix: Azure OpenAI
44
description: Learn how to get started generating video clips with Azure OpenAI.
55
manager: nitinme
@@ -10,9 +10,10 @@ ms.author: pafarley
1010
ms.date: 05/12/2025
1111
---
1212

13-
# Quickstart: Generate video with Azure OpenAI
13+
# Quickstart: Generate a video with Sora
14+
15+
In this Quickstart, you generate video clips using the Azure OpenAI service. The example uses the Sora model, which is a video generation model that creates realistic and imaginative video scenes from text instructions. This guide shows how to create a video generation job, poll for its status, and retrieve the generated video.
1416

15-
tbd
1617

1718
## Prerequisites
1819

@@ -40,10 +41,46 @@ Go to your resource in the Azure portal. On the navigation pane, select **Keys a
4041
[!INCLUDE [environment-variables](environment-variables.md)]
4142

4243

43-
POST: Create Video Generation Job
44-
`/deployments/{deployment-id}/video/generations/job`
4544

4645

47-
GET: Get Video Generation Job /deployments/{deployment-id}/video/generations/jobs/{job-id}
46+
## Create a video generation job
47+
48+
Send a POST request to create a new video generation job.
49+
50+
```bash
51+
curl -X POST "{endpoint}/openai/v1/video/generations/jobs?api-version=preview" ^
52+
-H "Content-Type: application/json" ^
53+
-H "Authorization: Bearer {Azure_OpenAI_Auth_Token}" ^
54+
-H "api-key: {Your-API-Key}" ^
55+
-d "{
56+
\"prompt\": \"A cat playing piano in a jazz bar.\",
57+
\"model\": \"sora\"
58+
}"
59+
```
60+
61+
62+
63+
## Poll for job status
64+
65+
Send a GET request with the `job-id` from the previous step to check the job status.
66+
67+
```bash
68+
curl -X GET "{endpoint}/openai/v1/video/generations/jobs/{job-id}?api-version=preview" ^
69+
-H "Authorization: Bearer {Azure_OpenAI_Auth_Token}" ^
70+
-H "api-key: {Your-API-Key}"
71+
```
72+
73+
Repeat this step until the status is `succeeded`. Then you can retrieve the generated video ID from the `"generations"` field.
74+
75+
## Retrieve the generated video
76+
77+
Once the job status is `succeeded`, use the generation ID from the job result to get the generated video.
78+
79+
```bash
80+
curl -X GET "{endpoint}/openai/v1/video/generations/{generation-id}?api-version=preview" ^
81+
-H "Authorization: Bearer {Azure_OpenAI_Auth_Token}" ^
82+
-H "api-key: {Your-API-Key}"
83+
```
84+
85+
The response contains the download URL for your generated video.
4886

49-
GET: Get Video Generation /deployments/{deployment id}/video/generations/jobs/{generation-id}

0 commit comments

Comments
 (0)