Skip to content

Commit 721cb1c

Browse files
authored
feat(api): deprecate Sora video APIs (#3610)
## Summary Deprecate Sora video APIs before their September shutdown Co-authored-by: apcha-oai <228803254+apcha-oai@users.noreply.github.com>
1 parent df274d4 commit 721cb1c

5 files changed

Lines changed: 661 additions & 448 deletions

File tree

.castiron.stats.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version: 1
2-
generation_id: ec060161-a32a-42d7-99f3-6dd062ed3fea
3-
openapi_spec_hash: 971c659b020aa37865787aa082cc4159
4-
openapi_transformed_spec_hash: 75836bac7e1a2e2632c2709238aa355c
5-
config_hash: 4617b0962f16d328804312ac81aac630
6-
codegen_sha: a019f44ece72b97bd941243068cb5ccb2a926f8a
2+
generation_id: 625cc75a-e869-4197-b1a1-0ab0f2dd58bf
3+
openapi_spec_hash: 9b793011794d783fd6a2d71d8a6f6972
4+
openapi_transformed_spec_hash: 89ade65e8a3170ca977f145feda2a689
5+
config_hash: fcda4ecfe265daddba6fad25a8504a3f
6+
codegen_sha: 25f5de7c38e1809ac8576f80aba10db4a6c01df0

api_reference/openapi.transformed.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22529,6 +22529,7 @@ paths:
2252922529
application/json:
2253022530
schema:
2253122531
$ref: '#/components/schemas/VideoResource'
22532+
deprecated: true
2253222533
x-oaiMeta:
2253322534
name: Create video
2253422535
group: videos
@@ -22651,6 +22652,7 @@ paths:
2265122652
application/json:
2265222653
schema:
2265322654
$ref: '#/components/schemas/VideoListResource'
22655+
deprecated: true
2265422656
x-oaiMeta:
2265522657
name: List videos
2265622658
group: videos
@@ -22753,6 +22755,7 @@ paths:
2275322755
application/json:
2275422756
schema:
2275522757
$ref: '#/components/schemas/VideoCharacterResource'
22758+
deprecated: true
2275622759
description: Create a character from an uploaded video.
2275722760
/videos/characters/{character_id}:
2275822761
get:
@@ -22775,6 +22778,7 @@ paths:
2277522778
application/json:
2277622779
schema:
2277722780
$ref: '#/components/schemas/VideoCharacterResource'
22781+
deprecated: true
2277822782
description: Fetch a character.
2277922783
/videos/edits:
2278022784
post:
@@ -22795,6 +22799,7 @@ paths:
2279522799
application/json:
2279622800
schema:
2279722801
$ref: '#/components/schemas/VideoResource'
22802+
deprecated: true
2279822803
description: Create a new video generation job by editing a source video or existing generated video.
2279922804
/videos/extensions:
2280022805
post:
@@ -22815,6 +22820,7 @@ paths:
2281522820
application/json:
2281622821
schema:
2281722822
$ref: '#/components/schemas/VideoResource'
22823+
deprecated: true
2281822824
description: Create an extension of a completed video.
2281922825
/videos/{video_id}:
2282022826
get:
@@ -22837,6 +22843,7 @@ paths:
2283722843
application/json:
2283822844
schema:
2283922845
$ref: '#/components/schemas/VideoResource'
22846+
deprecated: true
2284022847
x-oaiMeta:
2284122848
name: Retrieve video
2284222849
group: videos
@@ -22924,6 +22931,7 @@ paths:
2292422931
application/json:
2292522932
schema:
2292622933
$ref: '#/components/schemas/DeletedVideoResource'
22934+
deprecated: true
2292722935
x-oaiMeta:
2292822936
name: Delete video
2292922937
group: videos
@@ -23026,6 +23034,7 @@ paths:
2302623034
application/json:
2302723035
schema:
2302823036
type: string
23037+
deprecated: true
2302923038
x-oaiMeta:
2303023039
name: Retrieve video content
2303123040
group: videos
@@ -23136,6 +23145,7 @@ paths:
2313623145
application/json:
2313723146
schema:
2313823147
$ref: '#/components/schemas/VideoResource'
23148+
deprecated: true
2313923149
x-oaiMeta:
2314023150
name: Remix video
2314123151
group: videos

examples/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
async def main() -> None:
11-
video = await client.videos.create_and_poll(
11+
video = await client.videos.create_and_poll( # pyright: ignore[reportDeprecated]
1212
model="sora-2",
1313
prompt="A video of the words 'Thank you' in sparkling letters",
1414
)

0 commit comments

Comments
 (0)