SPB Git

Repository Public

videos.md 35.1 KB 1,728 lines markdown

1# Videos23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45## Create a video67**post** `/videos`89Create a new video generation job from a prompt and optional reference assets.1011### Body Parameters1213- `prompt: string`1415  Text prompt that describes the video to generate.1617- `input_reference: optional ImageInputReferenceParam`1819  Optional reference object that guides generation. Provide exactly one of `image_url` or `file_id`.2021  - `file_id: optional string`2223  - `image_url: optional string`2425    A fully qualified URL or base64-encoded data URL.2627- `model: optional VideoModel`2829  The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults to `sora-2`.3031  - `string`3233  - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`3435    - `"sora-2"`3637    - `"sora-2-pro"`3839    - `"sora-2-2025-10-06"`4041    - `"sora-2-pro-2025-10-06"`4243    - `"sora-2-2025-12-08"`4445- `seconds: optional VideoSeconds`4647  Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.4849  - `"4"`5051  - `"8"`5253  - `"12"`5455- `size: optional VideoSize`5657  Output resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.5859  - `"720x1280"`6061  - `"1280x720"`6263  - `"1024x1792"`6465  - `"1792x1024"`6667### Returns6869- `Video object { id, completed_at, created_at, 10 more }`7071  Structured information describing a generated video job.7273  - `id: string`7475    Unique identifier for the video job.7677  - `completed_at: number or null`7879    Unix timestamp (seconds) for when the job completed, if finished.8081  - `created_at: number`8283    Unix timestamp (seconds) for when the job was created.8485  - `error: VideoCreateError or null`8687    Error payload that explains why generation failed, if applicable.8889    - `code: string`9091      A machine-readable error code that was returned.9293    - `message: string`9495      A human-readable description of the error that was returned.9697    - `misalignment: optional object { detailed_explanation, error_type, steer }`9899      - `detailed_explanation: optional string`100101        The public explanation for this block.102103      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`104105        An optional classification; clients must accept additional values.106107        - `string`108109        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`110111          An optional classification; clients must accept additional values.112113          - `"potentially_unintended_data_transfer"`114115          - `"potentially_unintended_data_access"`116117          - `"potentially_unintended_destructive_activity"`118119          - `"other"`120121      - `steer: optional object { message }`122123        An optional public continuation instruction.124125        - `message: string`126127          The public continuation instruction.128129  - `expires_at: number or null`130131    Unix timestamp (seconds) for when the downloadable assets expire, if set.132133  - `model: VideoModel`134135    The video generation model that produced the job.136137    - `string`138139    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`140141      - `"sora-2"`142143      - `"sora-2-pro"`144145      - `"sora-2-2025-10-06"`146147      - `"sora-2-pro-2025-10-06"`148149      - `"sora-2-2025-12-08"`150151  - `object: "video"`152153    The object type, which is always `video`.154155    - `"video"`156157  - `progress: number`158159    Approximate completion percentage for the generation task.160161  - `prompt: string or null`162163    The prompt that was used to generate the video.164165  - `remixed_from_video_id: string or null`166167    Identifier of the source video if this video is a remix.168169  - `seconds: string`170171    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.172173  - `size: VideoSize`174175    The resolution of the generated video.176177    - `"720x1280"`178179    - `"1280x720"`180181    - `"1024x1792"`182183    - `"1792x1024"`184185  - `status: "queued" or "in_progress" or "completed" or "failed"`186187    Current lifecycle status of the video job.188189    - `"queued"`190191    - `"in_progress"`192193    - `"completed"`194195    - `"failed"`196197### Example198199```http200curl https://api.openai.com/v1/videos \201    -H 'Content-Type: application/json' \202    -H "Authorization: Bearer $OPENAI_API_KEY" \203    -d '{204          "prompt": "x"205        }'206```207208#### Response209210```json211{212  "id": "id",213  "completed_at": 0,214  "created_at": 0,215  "error": {216    "code": "code",217    "message": "message",218    "misalignment": {219      "detailed_explanation": "detailed_explanation",220      "error_type": "potentially_unintended_data_transfer",221      "steer": {222        "message": "message"223      }224    }225  },226  "expires_at": 0,227  "model": "sora-2",228  "object": "video",229  "progress": 0,230  "prompt": "prompt",231  "remixed_from_video_id": "remixed_from_video_id",232  "seconds": "string",233  "size": "720x1280",234  "status": "queued"235}236```237238### Example239240```http241curl https://api.openai.com/v1/videos \242  -H "Authorization: Bearer $OPENAI_API_KEY" \243  -F "model=sora-2" \244  -F "prompt=A calico cat playing a piano on stage"245```246247#### Response248249```json250{251  "id": "video_123",252  "object": "video",253  "model": "sora-2",254  "status": "queued",255  "progress": 0,256  "created_at": 1712697600,257  "size": "1024x1792",258  "seconds": "8",259  "quality": "standard"260}261```262263## Create a character264265**post** `/videos/characters`266267Create a character from an uploaded video.268269### Returns270271- `id: string or null`272273  Identifier for the character creation cameo.274275- `created_at: number`276277  Unix timestamp (in seconds) when the character was created.278279- `name: string or null`280281  Display name for the character.282283### Example284285```http286curl https://api.openai.com/v1/videos/characters \287    -H 'Content-Type: multipart/form-data' \288    -H "Authorization: Bearer $OPENAI_API_KEY" \289    -F name=x \290    -F 'video=@/path/to/video'291```292293#### Response294295```json296{297  "id": "id",298  "created_at": 0,299  "name": "name"300}301```302303## Delete a video304305**delete** `/videos/{video_id}`306307Permanently delete a completed or failed video and its stored assets.308309### Path Parameters310311- `video_id: string`312313### Returns314315- `id: string`316317  Identifier of the deleted video.318319- `deleted: boolean`320321  Indicates that the video resource was deleted.322323- `object: "video.deleted"`324325  The object type that signals the deletion response.326327  - `"video.deleted"`328329### Example330331```http332curl https://api.openai.com/v1/videos/$VIDEO_ID \333    -X DELETE \334    -H "Authorization: Bearer $OPENAI_API_KEY"335```336337#### Response338339```json340{341  "id": "id",342  "deleted": true,343  "object": "video.deleted"344}345```346347## Download video content348349**get** `/videos/{video_id}/content`350351Download the generated video bytes or a derived preview asset.352353Streams the rendered video content for the specified video job.354355### Path Parameters356357- `video_id: string`358359### Query Parameters360361- `variant: optional "video" or "thumbnail" or "spritesheet"`362363  Which downloadable asset to return. Defaults to the MP4 video.364365  - `"video"`366367  - `"thumbnail"`368369  - `"spritesheet"`370371### Example372373```http374curl https://api.openai.com/v1/videos/$VIDEO_ID/content \375    -H "Authorization: Bearer $OPENAI_API_KEY"376```377378## Create a video edit379380**post** `/videos/edits`381382Create a new video generation job by editing a source video or existing generated video.383384### Body Parameters385386- `prompt: string`387388  Text prompt that describes how to edit the source video.389390- `video: object { id }`391392  Reference to the completed video to edit.393394  - `id: string`395396    The identifier of the completed video.397398### Returns399400- `Video object { id, completed_at, created_at, 10 more }`401402  Structured information describing a generated video job.403404  - `id: string`405406    Unique identifier for the video job.407408  - `completed_at: number or null`409410    Unix timestamp (seconds) for when the job completed, if finished.411412  - `created_at: number`413414    Unix timestamp (seconds) for when the job was created.415416  - `error: VideoCreateError or null`417418    Error payload that explains why generation failed, if applicable.419420    - `code: string`421422      A machine-readable error code that was returned.423424    - `message: string`425426      A human-readable description of the error that was returned.427428    - `misalignment: optional object { detailed_explanation, error_type, steer }`429430      - `detailed_explanation: optional string`431432        The public explanation for this block.433434      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`435436        An optional classification; clients must accept additional values.437438        - `string`439440        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`441442          An optional classification; clients must accept additional values.443444          - `"potentially_unintended_data_transfer"`445446          - `"potentially_unintended_data_access"`447448          - `"potentially_unintended_destructive_activity"`449450          - `"other"`451452      - `steer: optional object { message }`453454        An optional public continuation instruction.455456        - `message: string`457458          The public continuation instruction.459460  - `expires_at: number or null`461462    Unix timestamp (seconds) for when the downloadable assets expire, if set.463464  - `model: VideoModel`465466    The video generation model that produced the job.467468    - `string`469470    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`471472      - `"sora-2"`473474      - `"sora-2-pro"`475476      - `"sora-2-2025-10-06"`477478      - `"sora-2-pro-2025-10-06"`479480      - `"sora-2-2025-12-08"`481482  - `object: "video"`483484    The object type, which is always `video`.485486    - `"video"`487488  - `progress: number`489490    Approximate completion percentage for the generation task.491492  - `prompt: string or null`493494    The prompt that was used to generate the video.495496  - `remixed_from_video_id: string or null`497498    Identifier of the source video if this video is a remix.499500  - `seconds: string`501502    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.503504  - `size: VideoSize`505506    The resolution of the generated video.507508    - `"720x1280"`509510    - `"1280x720"`511512    - `"1024x1792"`513514    - `"1792x1024"`515516  - `status: "queued" or "in_progress" or "completed" or "failed"`517518    Current lifecycle status of the video job.519520    - `"queued"`521522    - `"in_progress"`523524    - `"completed"`525526    - `"failed"`527528### Example529530```http531curl https://api.openai.com/v1/videos/edits \532    -H 'Content-Type: application/json' \533    -H "Authorization: Bearer $OPENAI_API_KEY" \534    -d '{535          "prompt": "x",536          "video": {537            "id": "video_123"538          }539        }'540```541542#### Response543544```json545{546  "id": "id",547  "completed_at": 0,548  "created_at": 0,549  "error": {550    "code": "code",551    "message": "message",552    "misalignment": {553      "detailed_explanation": "detailed_explanation",554      "error_type": "potentially_unintended_data_transfer",555      "steer": {556        "message": "message"557      }558    }559  },560  "expires_at": 0,561  "model": "sora-2",562  "object": "video",563  "progress": 0,564  "prompt": "prompt",565  "remixed_from_video_id": "remixed_from_video_id",566  "seconds": "string",567  "size": "720x1280",568  "status": "queued"569}570```571572## Create a video extension573574**post** `/videos/extensions`575576Create an extension of a completed video.577578### Body Parameters579580- `prompt: string`581582  Updated text prompt that directs the extension generation.583584- `seconds: VideoSeconds`585586  Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).587588  - `"4"`589590  - `"8"`591592  - `"12"`593594- `video: object { id }`595596  Reference to the completed video to extend.597598  - `id: string`599600    The identifier of the completed video.601602### Returns603604- `Video object { id, completed_at, created_at, 10 more }`605606  Structured information describing a generated video job.607608  - `id: string`609610    Unique identifier for the video job.611612  - `completed_at: number or null`613614    Unix timestamp (seconds) for when the job completed, if finished.615616  - `created_at: number`617618    Unix timestamp (seconds) for when the job was created.619620  - `error: VideoCreateError or null`621622    Error payload that explains why generation failed, if applicable.623624    - `code: string`625626      A machine-readable error code that was returned.627628    - `message: string`629630      A human-readable description of the error that was returned.631632    - `misalignment: optional object { detailed_explanation, error_type, steer }`633634      - `detailed_explanation: optional string`635636        The public explanation for this block.637638      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`639640        An optional classification; clients must accept additional values.641642        - `string`643644        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`645646          An optional classification; clients must accept additional values.647648          - `"potentially_unintended_data_transfer"`649650          - `"potentially_unintended_data_access"`651652          - `"potentially_unintended_destructive_activity"`653654          - `"other"`655656      - `steer: optional object { message }`657658        An optional public continuation instruction.659660        - `message: string`661662          The public continuation instruction.663664  - `expires_at: number or null`665666    Unix timestamp (seconds) for when the downloadable assets expire, if set.667668  - `model: VideoModel`669670    The video generation model that produced the job.671672    - `string`673674    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`675676      - `"sora-2"`677678      - `"sora-2-pro"`679680      - `"sora-2-2025-10-06"`681682      - `"sora-2-pro-2025-10-06"`683684      - `"sora-2-2025-12-08"`685686  - `object: "video"`687688    The object type, which is always `video`.689690    - `"video"`691692  - `progress: number`693694    Approximate completion percentage for the generation task.695696  - `prompt: string or null`697698    The prompt that was used to generate the video.699700  - `remixed_from_video_id: string or null`701702    Identifier of the source video if this video is a remix.703704  - `seconds: string`705706    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.707708  - `size: VideoSize`709710    The resolution of the generated video.711712    - `"720x1280"`713714    - `"1280x720"`715716    - `"1024x1792"`717718    - `"1792x1024"`719720  - `status: "queued" or "in_progress" or "completed" or "failed"`721722    Current lifecycle status of the video job.723724    - `"queued"`725726    - `"in_progress"`727728    - `"completed"`729730    - `"failed"`731732### Example733734```http735curl https://api.openai.com/v1/videos/extensions \736    -H 'Content-Type: application/json' \737    -H "Authorization: Bearer $OPENAI_API_KEY" \738    -d '{739          "prompt": "x",740          "seconds": "4",741          "video": {742            "id": "video_123"743          }744        }'745```746747#### Response748749```json750{751  "id": "id",752  "completed_at": 0,753  "created_at": 0,754  "error": {755    "code": "code",756    "message": "message",757    "misalignment": {758      "detailed_explanation": "detailed_explanation",759      "error_type": "potentially_unintended_data_transfer",760      "steer": {761        "message": "message"762      }763    }764  },765  "expires_at": 0,766  "model": "sora-2",767  "object": "video",768  "progress": 0,769  "prompt": "prompt",770  "remixed_from_video_id": "remixed_from_video_id",771  "seconds": "string",772  "size": "720x1280",773  "status": "queued"774}775```776777## Retrieve a character778779**get** `/videos/characters/{character_id}`780781Fetch a character.782783### Path Parameters784785- `character_id: string`786787### Returns788789- `id: string or null`790791  Identifier for the character creation cameo.792793- `created_at: number`794795  Unix timestamp (in seconds) when the character was created.796797- `name: string or null`798799  Display name for the character.800801### Example802803```http804curl https://api.openai.com/v1/videos/characters/$CHARACTER_ID \805    -H "Authorization: Bearer $OPENAI_API_KEY"806```807808#### Response809810```json811{812  "id": "id",813  "created_at": 0,814  "name": "name"815}816```817818## List videos819820**get** `/videos`821822List recently generated videos for the current project.823824### Query Parameters825826- `after: optional string`827828  Identifier for the last item from the previous pagination request829830- `limit: optional number`831832  Number of items to retrieve833834- `order: optional "asc" or "desc"`835836  Sort order of results by timestamp. Use `asc` for ascending order or `desc` for descending order.837838  - `"asc"`839840  - `"desc"`841842### Returns843844- `data: array of Video`845846  A list of items847848  - `id: string`849850    Unique identifier for the video job.851852  - `completed_at: number or null`853854    Unix timestamp (seconds) for when the job completed, if finished.855856  - `created_at: number`857858    Unix timestamp (seconds) for when the job was created.859860  - `error: VideoCreateError or null`861862    Error payload that explains why generation failed, if applicable.863864    - `code: string`865866      A machine-readable error code that was returned.867868    - `message: string`869870      A human-readable description of the error that was returned.871872    - `misalignment: optional object { detailed_explanation, error_type, steer }`873874      - `detailed_explanation: optional string`875876        The public explanation for this block.877878      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`879880        An optional classification; clients must accept additional values.881882        - `string`883884        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`885886          An optional classification; clients must accept additional values.887888          - `"potentially_unintended_data_transfer"`889890          - `"potentially_unintended_data_access"`891892          - `"potentially_unintended_destructive_activity"`893894          - `"other"`895896      - `steer: optional object { message }`897898        An optional public continuation instruction.899900        - `message: string`901902          The public continuation instruction.903904  - `expires_at: number or null`905906    Unix timestamp (seconds) for when the downloadable assets expire, if set.907908  - `model: VideoModel`909910    The video generation model that produced the job.911912    - `string`913914    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`915916      - `"sora-2"`917918      - `"sora-2-pro"`919920      - `"sora-2-2025-10-06"`921922      - `"sora-2-pro-2025-10-06"`923924      - `"sora-2-2025-12-08"`925926  - `object: "video"`927928    The object type, which is always `video`.929930    - `"video"`931932  - `progress: number`933934    Approximate completion percentage for the generation task.935936  - `prompt: string or null`937938    The prompt that was used to generate the video.939940  - `remixed_from_video_id: string or null`941942    Identifier of the source video if this video is a remix.943944  - `seconds: string`945946    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.947948  - `size: VideoSize`949950    The resolution of the generated video.951952    - `"720x1280"`953954    - `"1280x720"`955956    - `"1024x1792"`957958    - `"1792x1024"`959960  - `status: "queued" or "in_progress" or "completed" or "failed"`961962    Current lifecycle status of the video job.963964    - `"queued"`965966    - `"in_progress"`967968    - `"completed"`969970    - `"failed"`971972- `first_id: string or null`973974  The ID of the first item in the list.975976- `has_more: boolean`977978  Whether there are more items available.979980- `last_id: string or null`981982  The ID of the last item in the list.983984- `object: "list"`985986  The type of object returned, must be `list`.987988  - `"list"`989990### Example991992```http993curl https://api.openai.com/v1/videos \994    -H "Authorization: Bearer $OPENAI_API_KEY"995```996997#### Response998999```json1000{1001  "data": [1002    {1003      "id": "id",1004      "completed_at": 0,1005      "created_at": 0,1006      "error": {1007        "code": "code",1008        "message": "message",1009        "misalignment": {1010          "detailed_explanation": "detailed_explanation",1011          "error_type": "potentially_unintended_data_transfer",1012          "steer": {1013            "message": "message"1014          }1015        }1016      },1017      "expires_at": 0,1018      "model": "sora-2",1019      "object": "video",1020      "progress": 0,1021      "prompt": "prompt",1022      "remixed_from_video_id": "remixed_from_video_id",1023      "seconds": "string",1024      "size": "720x1280",1025      "status": "queued"1026    }1027  ],1028  "first_id": "first_id",1029  "has_more": true,1030  "last_id": "last_id",1031  "object": "list"1032}1033```10341035### Example10361037```http1038curl https://api.openai.com/v1/videos \1039  -H "Authorization: Bearer $OPENAI_API_KEY"1040```10411042#### Response10431044```json1045{1046  "data": [1047    {1048      "id": "video_123",1049      "object": "video",1050      "model": "sora-2",1051      "status": "completed"1052    }1053  ],1054  "object": "list"1055}1056```10571058## Create a video remix10591060**post** `/videos/{video_id}/remix`10611062Create a remix of a completed video using a refreshed prompt.10631064### Path Parameters10651066- `video_id: string`10671068### Body Parameters10691070- `prompt: string`10711072  Updated text prompt that directs the remix generation.10731074### Returns10751076- `Video object { id, completed_at, created_at, 10 more }`10771078  Structured information describing a generated video job.10791080  - `id: string`10811082    Unique identifier for the video job.10831084  - `completed_at: number or null`10851086    Unix timestamp (seconds) for when the job completed, if finished.10871088  - `created_at: number`10891090    Unix timestamp (seconds) for when the job was created.10911092  - `error: VideoCreateError or null`10931094    Error payload that explains why generation failed, if applicable.10951096    - `code: string`10971098      A machine-readable error code that was returned.10991100    - `message: string`11011102      A human-readable description of the error that was returned.11031104    - `misalignment: optional object { detailed_explanation, error_type, steer }`11051106      - `detailed_explanation: optional string`11071108        The public explanation for this block.11091110      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`11111112        An optional classification; clients must accept additional values.11131114        - `string`11151116        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`11171118          An optional classification; clients must accept additional values.11191120          - `"potentially_unintended_data_transfer"`11211122          - `"potentially_unintended_data_access"`11231124          - `"potentially_unintended_destructive_activity"`11251126          - `"other"`11271128      - `steer: optional object { message }`11291130        An optional public continuation instruction.11311132        - `message: string`11331134          The public continuation instruction.11351136  - `expires_at: number or null`11371138    Unix timestamp (seconds) for when the downloadable assets expire, if set.11391140  - `model: VideoModel`11411142    The video generation model that produced the job.11431144    - `string`11451146    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`11471148      - `"sora-2"`11491150      - `"sora-2-pro"`11511152      - `"sora-2-2025-10-06"`11531154      - `"sora-2-pro-2025-10-06"`11551156      - `"sora-2-2025-12-08"`11571158  - `object: "video"`11591160    The object type, which is always `video`.11611162    - `"video"`11631164  - `progress: number`11651166    Approximate completion percentage for the generation task.11671168  - `prompt: string or null`11691170    The prompt that was used to generate the video.11711172  - `remixed_from_video_id: string or null`11731174    Identifier of the source video if this video is a remix.11751176  - `seconds: string`11771178    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.11791180  - `size: VideoSize`11811182    The resolution of the generated video.11831184    - `"720x1280"`11851186    - `"1280x720"`11871188    - `"1024x1792"`11891190    - `"1792x1024"`11911192  - `status: "queued" or "in_progress" or "completed" or "failed"`11931194    Current lifecycle status of the video job.11951196    - `"queued"`11971198    - `"in_progress"`11991200    - `"completed"`12011202    - `"failed"`12031204### Example12051206```http1207curl https://api.openai.com/v1/videos/$VIDEO_ID/remix \1208    -H 'Content-Type: application/json' \1209    -H "Authorization: Bearer $OPENAI_API_KEY" \1210    -d '{1211          "prompt": "x"1212        }'1213```12141215#### Response12161217```json1218{1219  "id": "id",1220  "completed_at": 0,1221  "created_at": 0,1222  "error": {1223    "code": "code",1224    "message": "message",1225    "misalignment": {1226      "detailed_explanation": "detailed_explanation",1227      "error_type": "potentially_unintended_data_transfer",1228      "steer": {1229        "message": "message"1230      }1231    }1232  },1233  "expires_at": 0,1234  "model": "sora-2",1235  "object": "video",1236  "progress": 0,1237  "prompt": "prompt",1238  "remixed_from_video_id": "remixed_from_video_id",1239  "seconds": "string",1240  "size": "720x1280",1241  "status": "queued"1242}1243```12441245### Example12461247```http1248curl -X POST https://api.openai.com/v1/videos/video_123/remix \1249  -H "Authorization: Bearer $OPENAI_API_KEY" \1250  -H "Content-Type: application/json" \1251  -d '{1252    "prompt": "Extend the scene with the cat taking a bow to the cheering audience"1253  }'1254```12551256#### Response12571258```json1259{1260  "id": "video_456",1261  "object": "video",1262  "model": "sora-2",1263  "status": "queued",1264  "progress": 0,1265  "created_at": 1712698600,1266  "size": "720x1280",1267  "seconds": "8",1268  "remixed_from_video_id": "video_123"1269}1270```12711272## Retrieve a video12731274**get** `/videos/{video_id}`12751276Fetch the latest metadata for a generated video.12771278### Path Parameters12791280- `video_id: string`12811282### Returns12831284- `Video object { id, completed_at, created_at, 10 more }`12851286  Structured information describing a generated video job.12871288  - `id: string`12891290    Unique identifier for the video job.12911292  - `completed_at: number or null`12931294    Unix timestamp (seconds) for when the job completed, if finished.12951296  - `created_at: number`12971298    Unix timestamp (seconds) for when the job was created.12991300  - `error: VideoCreateError or null`13011302    Error payload that explains why generation failed, if applicable.13031304    - `code: string`13051306      A machine-readable error code that was returned.13071308    - `message: string`13091310      A human-readable description of the error that was returned.13111312    - `misalignment: optional object { detailed_explanation, error_type, steer }`13131314      - `detailed_explanation: optional string`13151316        The public explanation for this block.13171318      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`13191320        An optional classification; clients must accept additional values.13211322        - `string`13231324        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`13251326          An optional classification; clients must accept additional values.13271328          - `"potentially_unintended_data_transfer"`13291330          - `"potentially_unintended_data_access"`13311332          - `"potentially_unintended_destructive_activity"`13331334          - `"other"`13351336      - `steer: optional object { message }`13371338        An optional public continuation instruction.13391340        - `message: string`13411342          The public continuation instruction.13431344  - `expires_at: number or null`13451346    Unix timestamp (seconds) for when the downloadable assets expire, if set.13471348  - `model: VideoModel`13491350    The video generation model that produced the job.13511352    - `string`13531354    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`13551356      - `"sora-2"`13571358      - `"sora-2-pro"`13591360      - `"sora-2-2025-10-06"`13611362      - `"sora-2-pro-2025-10-06"`13631364      - `"sora-2-2025-12-08"`13651366  - `object: "video"`13671368    The object type, which is always `video`.13691370    - `"video"`13711372  - `progress: number`13731374    Approximate completion percentage for the generation task.13751376  - `prompt: string or null`13771378    The prompt that was used to generate the video.13791380  - `remixed_from_video_id: string or null`13811382    Identifier of the source video if this video is a remix.13831384  - `seconds: string`13851386    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.13871388  - `size: VideoSize`13891390    The resolution of the generated video.13911392    - `"720x1280"`13931394    - `"1280x720"`13951396    - `"1024x1792"`13971398    - `"1792x1024"`13991400  - `status: "queued" or "in_progress" or "completed" or "failed"`14011402    Current lifecycle status of the video job.14031404    - `"queued"`14051406    - `"in_progress"`14071408    - `"completed"`14091410    - `"failed"`14111412### Example14131414```http1415curl https://api.openai.com/v1/videos/$VIDEO_ID \1416    -H "Authorization: Bearer $OPENAI_API_KEY"1417```14181419#### Response14201421```json1422{1423  "id": "id",1424  "completed_at": 0,1425  "created_at": 0,1426  "error": {1427    "code": "code",1428    "message": "message",1429    "misalignment": {1430      "detailed_explanation": "detailed_explanation",1431      "error_type": "potentially_unintended_data_transfer",1432      "steer": {1433        "message": "message"1434      }1435    }1436  },1437  "expires_at": 0,1438  "model": "sora-2",1439  "object": "video",1440  "progress": 0,1441  "prompt": "prompt",1442  "remixed_from_video_id": "remixed_from_video_id",1443  "seconds": "string",1444  "size": "720x1280",1445  "status": "queued"1446}1447```14481449## Domain Types14501451### Image Input Reference Param14521453- `ImageInputReferenceParam object { file_id, image_url }`14541455  - `file_id: optional string`14561457  - `image_url: optional string`14581459    A fully qualified URL or base64-encoded data URL.14601461### Video14621463- `Video object { id, completed_at, created_at, 10 more }`14641465  Structured information describing a generated video job.14661467  - `id: string`14681469    Unique identifier for the video job.14701471  - `completed_at: number or null`14721473    Unix timestamp (seconds) for when the job completed, if finished.14741475  - `created_at: number`14761477    Unix timestamp (seconds) for when the job was created.14781479  - `error: VideoCreateError or null`14801481    Error payload that explains why generation failed, if applicable.14821483    - `code: string`14841485      A machine-readable error code that was returned.14861487    - `message: string`14881489      A human-readable description of the error that was returned.14901491    - `misalignment: optional object { detailed_explanation, error_type, steer }`14921493      - `detailed_explanation: optional string`14941495        The public explanation for this block.14961497      - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`14981499        An optional classification; clients must accept additional values.15001501        - `string`15021503        - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`15041505          An optional classification; clients must accept additional values.15061507          - `"potentially_unintended_data_transfer"`15081509          - `"potentially_unintended_data_access"`15101511          - `"potentially_unintended_destructive_activity"`15121513          - `"other"`15141515      - `steer: optional object { message }`15161517        An optional public continuation instruction.15181519        - `message: string`15201521          The public continuation instruction.15221523  - `expires_at: number or null`15241525    Unix timestamp (seconds) for when the downloadable assets expire, if set.15261527  - `model: VideoModel`15281529    The video generation model that produced the job.15301531    - `string`15321533    - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`15341535      - `"sora-2"`15361537      - `"sora-2-pro"`15381539      - `"sora-2-2025-10-06"`15401541      - `"sora-2-pro-2025-10-06"`15421543      - `"sora-2-2025-12-08"`15441545  - `object: "video"`15461547    The object type, which is always `video`.15481549    - `"video"`15501551  - `progress: number`15521553    Approximate completion percentage for the generation task.15541555  - `prompt: string or null`15561557    The prompt that was used to generate the video.15581559  - `remixed_from_video_id: string or null`15601561    Identifier of the source video if this video is a remix.15621563  - `seconds: string`15641565    Duration of the generated clip in seconds. For extensions, this is the stitched total duration.15661567  - `size: VideoSize`15681569    The resolution of the generated video.15701571    - `"720x1280"`15721573    - `"1280x720"`15741575    - `"1024x1792"`15761577    - `"1792x1024"`15781579  - `status: "queued" or "in_progress" or "completed" or "failed"`15801581    Current lifecycle status of the video job.15821583    - `"queued"`15841585    - `"in_progress"`15861587    - `"completed"`15881589    - `"failed"`15901591### Video Create Character Response15921593- `VideoCreateCharacterResponse object { id, created_at, name }`15941595  - `id: string or null`15961597    Identifier for the character creation cameo.15981599  - `created_at: number`16001601    Unix timestamp (in seconds) when the character was created.16021603  - `name: string or null`16041605    Display name for the character.16061607### Video Create Error16081609- `VideoCreateError object { code, message, misalignment }`16101611  An error that occurred while generating the response.16121613  - `code: string`16141615    A machine-readable error code that was returned.16161617  - `message: string`16181619    A human-readable description of the error that was returned.16201621  - `misalignment: optional object { detailed_explanation, error_type, steer }`16221623    - `detailed_explanation: optional string`16241625      The public explanation for this block.16261627    - `error_type: optional string or "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`16281629      An optional classification; clients must accept additional values.16301631      - `string`16321633      - `SafetyAlertErrorType = "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"`16341635        An optional classification; clients must accept additional values.16361637        - `"potentially_unintended_data_transfer"`16381639        - `"potentially_unintended_data_access"`16401641        - `"potentially_unintended_destructive_activity"`16421643        - `"other"`16441645    - `steer: optional object { message }`16461647      An optional public continuation instruction.16481649      - `message: string`16501651        The public continuation instruction.16521653### Video Delete Response16541655- `VideoDeleteResponse object { id, deleted, object }`16561657  Confirmation payload returned after deleting a video.16581659  - `id: string`16601661    Identifier of the deleted video.16621663  - `deleted: boolean`16641665    Indicates that the video resource was deleted.16661667  - `object: "video.deleted"`16681669    The object type that signals the deletion response.16701671    - `"video.deleted"`16721673### Video Get Character Response16741675- `VideoGetCharacterResponse object { id, created_at, name }`16761677  - `id: string or null`16781679    Identifier for the character creation cameo.16801681  - `created_at: number`16821683    Unix timestamp (in seconds) when the character was created.16841685  - `name: string or null`16861687    Display name for the character.16881689### Video Model16901691- `VideoModel = string or "sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`16921693  - `string`16941695  - `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`16961697    - `"sora-2"`16981699    - `"sora-2-pro"`17001701    - `"sora-2-2025-10-06"`17021703    - `"sora-2-pro-2025-10-06"`17041705    - `"sora-2-2025-12-08"`17061707### Video Seconds17081709- `VideoSeconds = "4" or "8" or "12"`17101711  - `"4"`17121713  - `"8"`17141715  - `"12"`17161717### Video Size17181719- `VideoSize = "720x1280" or "1280x720" or "1024x1792" or "1792x1024"`17201721  - `"720x1280"`17221723  - `"1280x720"`17241725  - `"1024x1792"`17261727  - `"1792x1024"`1728
Files main
Menu

Theme