Skip to content

Commit e4a703f

Browse files
committed
update Sora quickstart
1 parent ea606ad commit e4a703f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/openai/includes/video-generation-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ You can generate a video with the Sora model by creating a video generation job,
158158
api_key = os.environ['AZURE_OPENAI_API_KEY']
159159
160160
api_version = 'preview'
161-
headers= { "Authorization": f"Bearer {token.token}", "Content-Type": "application/json" }
161+
headers= { "api-key": api_key, "Content-Type": "application/json" }
162162
163163
# 1. Create a video generation job
164164
create_url = f"{endpoint}/openai/v1/video/generations/jobs?api-version={api_version}"

0 commit comments

Comments
 (0)