Skip to content

fix(types): add 1080p video sizes (1920x1080, 1080x1920) for sora-2-pro#1790

Open
fuleinist wants to merge 1 commit intoopenai:masterfrom
fuleinist:fix/add-1080p-video-sizes
Open

fix(types): add 1080p video sizes (1920x1080, 1080x1920) for sora-2-pro#1790
fuleinist wants to merge 1 commit intoopenai:masterfrom
fuleinist:fix/add-1080p-video-sizes

Conversation

@fuleinist
Copy link

Summary

Adds support for 1080p video resolutions to the VideoSize type.

The sora-2-pro model supports higher-resolution exports in 1920x1080 and 1080x1920, but these sizes were not included in the VideoSize type union.

Changes

  • Added '1920x1080' to VideoSize type
  • Added '1080x1920' to VideoSize type

Documentation Reference

From the Video generation with Sora guide:

Use sora-2-pro for higher-resolution exports in 1920x1080 or 1080x1920.

Testing

  • TypeScript compilation passes
  • Type change is backward compatible (union expansion)

Fixes #1789

The VideoSize type was missing support for 1080p resolutions that are
supported by the sora-2-pro model. According to the OpenAI documentation:

'Use sora-2-pro for higher-resolution exports in 1920x1080 or 1080x1920.'

Fixes openai#1789
@fuleinist fuleinist requested a review from a team as a code owner March 23, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1920x1080 size is not supported yet in the sdk

1 participant