API reference for Sora 2 Video To Video. Video-to-video remix endpoint for Sora 2, OpenAI’s advanced model that transforms existing videos based on new text or image prompts allowing rich edits, style
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/sora-2/video-to-video/remix", arguments={ "video_id": "video_123", "prompt": "Change the cat's fur color to purple." }, with_logs=True, on_queue_update=on_queue_update,)print(result)
import { fal } from "@fal-ai/client";const result = await fal.subscribe("fal-ai/sora-2/video-to-video/remix", { input: { video_id: "video_123", prompt: "Change the cat's fur color to purple." }, logs: true, onQueueUpdate: (update) => { if (update.status === "IN_PROGRESS") { update.logs.map((log) => log.message).forEach(console.log); } },});console.log(result.data);console.log(result.requestId);
curl --request POST \ --url https://fal.run/fal-ai/sora-2/video-to-video/remix \ --header "Authorization: Key $FAL_KEY" \ --header "Content-Type: application/json" \ --data '{ "video_id": "video_123", "prompt": "Change the cat'\''s fur color to purple."}'
The video_id from a previous Sora 2 generation. Note: You can only remix videos that were generated by Sora (via text-to-video or image-to-video endpoints), not arbitrary uploaded videos.
Whether to delete the video after generation for privacy reasons. If True, the video cannot be used for remixing and will be permanently deleted. Default value: true