---
title: "Video-to-Video"
method: POST
path: "/v1/video-to-video"
tags: ["Video Projects"]
---

# Video-to-Video

`POST /v1/video-to-video`

## Request

- Base URL: `https://api.magichour.ai`
- URL: `https://api.magichour.ai/v1/video-to-video`
- Auth: HTTP bearer

**What this API does**

Create the same Video To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
    
**Good for**
- Automation and batch processing  
- Adding video to video into apps, pipelines, or tools  

**How it works (3 steps)**
1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.  
2) Send a request to create a video to video job with the basic fields.  
3) Check the job status until it's `complete`, then download the result from `downloads`.

**Key options**
- Inputs: usually a file, sometimes a YouTube link, depending on project type  
- Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
- Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt  

**Cost**  
Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.

For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).

## Request body

- object
  - `name` string: Give your video a custom name for easy identification.
  - `start_seconds` number, float, required: Start time of your clip (seconds). Must be ≥ 0.
  - `end_seconds` number, float, required: End time of your clip (seconds). Must be greater than start_seconds.
  - `fps_resolution` 'FULL' | 'HALF': Determines whether the resulting video will have the same frame per second as the original video, or half. * `FULL` - the result video will have the same FPS as the input video * `HALF` - the result video will have half the FPS as the input video
  - `style` object, required
    - `art_style` 'Minecraft' | 'Watercolor' | 'Pixel' | 'Retro Sci-Fi' | 'Lego' | 'Origami' | 'Ghost' | 'Sub-Zero' | 'Studio Ghibli' | 'Comic' | 'Impressionism' | 'Master Chief' | 'Solid Snake' | 'Street Fighter' | 'Hologram' | 'GTA' | 'Clay' | 'Mystique' | 'Dragonball Z' | 'Mario' | 'Samurai' | 'Spartan' | 'Boba Fett' | '3D Render' | 'Airbender' | 'Android' | 'Anime Warrior' | 'Armored Knight' | 'Assassin's Creed' | 'Avatar' | 'Black Spiderman' | 'Bold Anime' | 'Celestial Skin' | 'Chinese Swordsmen' | 'Cyberpunk' | 'Cypher' | 'Dark Fantasy' | 'Future Bot' | 'Futuristic Fantasy' | 'Ghibli Anime' | 'Gundam' | 'Illustration' | 'Ink' | 'Ink Poster' | 'Jinx' | 'Knight' | 'Link' | 'Marble' | 'Mech' | 'Naruto' | 'Neon Dream' | 'No Art Style' | 'Oil Painting' | 'On Fire' | 'Painterly Anime' | 'Pixar' | 'Power Armor' | 'Power Ranger' | 'Radiant Anime' | 'Realistic Anime' | 'Realistic Pixar' | 'Retro Anime' | 'Samurai Bot' | 'Sharp Anime' | 'Soft Anime' | 'Starfield' | 'The Void' | 'Tomb Raider' | 'Underwater' | 'Van Gogh' | 'Viking' | 'Western Anime' | 'Wu Kong' | 'Wuxia Anime' | 'Zelda', required
    - `version` 'v1' | 'v2' | 'default': * `v1` - more detail, closer prompt adherence, and frame-by-frame previews. * `v2` - faster, more consistent, and less noisy. * `default` - use the selected art style's default version. Some art styles default to v3, which is unavailable through this API. For `Studio Ghibli`, explicitly set `version` to `v2` to use its supported preset.
    - `prompt_type` 'default' | 'custom' | 'append_default': * `default` - Use the default recommended prompt for the art style. * `custom` - Only use the prompt passed in the API. Note: for v1, lora prompt will still be auto added to apply the art style properly. * `append_default` - Add the default recommended prompt to the end of the prompt passed in the API.
    - `prompt` string, nullable: The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.
    - `model` 'Dreamshaper' | 'Absolute Reality' | 'Flat 2D Anime' | 'Soft Anime' | 'Kaywaii' | 'Western Anime' | '3D Anime' | 'default': * `Dreamshaper` - a good all-around model that works for both animations as well as realism. * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well. * `Flat 2D Anime` - best for a flat illustration style that's common in most anime. * `default` - use the default recommended model for the selected art style.
  - `assets` object, required: Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
    - `video_source` 'file' | 'youtube', required: Choose your video source.
    - `video_file_path` string: Your video file. Required if `video_source` is `file`. This value is either - a direct URL to the file. The URL path must end in a supported file extension. - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls). See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
    - `youtube_url` string, uri: YouTube URL (required if `video_source` is `youtube`).

## Response `200`

Success

- object: Success
  - `id` string, required: Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
  - `credits_charged` integer, required: The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. If video generation fails, credits will be refunded, and this field will be updated to include the refund.

## Other responses

- `400`: Invalid Request
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-09-02** `9aeb9397c62a`: 8 info
  - added the non-success response with the status `500`
  - removed the `Not Found` enum value from the `message` response property for the response status `404`
  - removed the `Unauthorized` enum value from the `message` response property for the response status `401`
  - added the required property `code` to the response with the `400` status
  - …4 more
- **2026-03-06** `1f72d520ddc6`: 1 info
  - added the non-success response with the status `402`
- **2026-01-24** `a342af4ecbcf`: 1 breaking, 2 warning
  - removed the required property `estimated_frame_cost` from the response with the `200` status
  - removed the request property `height`
  - removed the request property `width`

[Operation history](https://skmtc.dev/magichourhq/apis/magic-hour-api/changes/v1/video-to-video/post.md)

---

[API](https://skmtc.dev/magichourhq/apis/magic-hour-api.md) - [All operations](https://skmtc.dev/magichourhq/apis/magic-hour-api/llms.txt) - [OpenAPI document](https://skmtc.dev/magichourhq/apis/magic-hour-api/revisions/2ee5927306a9?raw)
