Skip to content
Guides

Vertical AI Video Generator API for TikTok and Reels

A vertical AI video generator API guide: 9:16 clips for TikTok, Reels and Shorts, which models fit, lengths, sound, captions and a draft-then-upscale flow.

Updated 6 min read

A vertical AI video generator API renders clips in the 9:16 shape that TikTok, Instagram Reels and YouTube Shorts play full screen on a phone. On Frameport every video model takes "aspect_ratio": "9:16", so the real choices are length, resolution and sound: Seedance 2.5 and Wan 3.0 run up to 30 and 30 seconds in one take, Veo 3.1 Fast brings Veo's sound to short clips, and Frameport Motion 1 goes up to 2K.

This guide covers the vertical format itself, the models that fit it, how to plan lengths, sound and captions, and a workflow that drafts cheaply in 9:16 and upscales only the take you post.

Vertical AI video generator API: the short answer

  • The shape. Vertical video is 9:16: taller than wide, filling a phone held upright. The usual delivery frame is 1080 × 1920 pixels.
  • The field. Send "aspect_ratio": "9:16" with every request. A request without one gets 16:9 on any model that offers it, which is the most common reason a "vertical" clip comes back wide.
  • The size. A name like 720p or 1080p gives the short side of the frame: in vertical, 1080p is about 1080 pixels wide and 1920 tall. For that size, render at 1080p where the model offers it, or upscale a smaller take.
  • Pictures. A first frame or a reference picture should be vertical too: the image API makes 9:16 stills, so a frame can be generated in the same shape as the clip.

Which models render 9:16

Every video model on Frameport lists 9:16 today; aspect_ratios in GET /v1/models is the live list. These five cover most short-form work:

ModelResolutionsLengthsSoundFrom
Seedance 2.5480p and 720p4 to 30 secondsOn or off, same price$0.12 / s
Wan 3.0480p, 720p and 1080p2 to 30 secondsOn or off, same price$0.06 / s
Veo 3.1 Fast720p, 1080p and 4K4, 6 or 8 secondsOn or off, priced apart$0.093 / s
Frameport Motion 1480p, 768p, 1080p and 2K5 to 15 secondsOn or off, same price$0.02 / s
Hailuo 32K5 to 15 secondsOn or off, same price$0.15 / s

How they divide the work: Seedance 2.5 for long takes with voiced lines, stopping at 720p; Wan 3.0 for long takes at up to 1080p; Veo 3.1 Fast for short clips with dialogue and ambience, with sound priced apart; Frameport Motion 1 for full-size vertical files and cheap drafts, sound on or off at the same price; Hailuo 3 for physical motion at 2K. The videos reference lists every field.

Lengths per platform

TikTok, Reels and Shorts all accept uploads far longer than any single generated clip, and their caps change often enough that the app's current limit is the one to trust. What matters for generation is how you reach the length you want:

What you postHow to make it
A hook, a loop or a reaction beatOne short clip on any model, from 4 seconds on Veo 3.1 Fast
A post of about 15 secondsOne clip on a model whose range reaches it: Frameport Motion 1 (5 to 15 seconds) or Hailuo 3 (5 to 15 seconds)
Up to 30 seconds in one continuous takeSeedance 2.5 (4 to 30 seconds) or Wan 3.0 (2 to 30 seconds)
Anything longerSeveral clips, each starting on the last frame of the one before, joined in an editor or with ffmpeg

A 15-second vertical clip on Frameport Motion 1 at 768p costs $0.90; a 30-second take on Seedance 2.5 at 720p costs $8.10, and on Wan 3.0 at 720p $3.60. Each is charged only if it succeeds. Chaining clips on their frames is covered in first and last frame AI video.

Sound and captions

Sound is on by default. Seedance 2.5 and Veo 3.1 Fast voice the lines you write: put each line in quotes after the speaker and keep it short, one or two sentences for an eight-second clip. Describe the room under the voice too ("street noise", "kitchen hum"), so the clip does not sound empty.

If you will add a trending sound in the app, generate the clip silent with "audio": false. On Veo 3.1 Fast that bills the lower silent rate; on Seedance 2.5, Wan 3.0, Hailuo 3 and Frameport Motion 1 the price is the same either way.

Captions are better added after the render than asked for in the prompt: you control the words, the font and the timing, and you can fix a typo without paying for a new clip. Keep them, and the subject's face, away from the bottom and the right edge, where each app lays its buttons, username and description over the video. With ffmpeg and a subtitle file:

Burn captions into a vertical clip
ffmpeg -i clip.mp4 \
  -vf "subtitles=captions.srt:force_style='FontSize=16,MarginV=60'" \
  -c:a copy captioned.mp4

MarginV lifts the lines off the bottom edge, clear of the app's own text. On Veo 3.1 Fast, which takes a negative_prompt, add "text, subtitles, watermark" to keep stray lettering out of the frame.

Draft, pick, upscale

Short-form work means many tries for each clip you post, so make the tries small. Draft in 9:16 at the lowest resolution, watch the takes on a phone, then make only the keeper big. This script does both steps: run it bare for three 480p drafts with three seeds, then run it with the file id of the take you liked to upscale that take to 1080p.

vertical_drafts.py
import os
import sys
import time

import requests

API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}
PROMPT = ("Close-up of a barista pouring latte art in a sunlit café, slow push-in, handheld phone feel; "
          "milk steamer hissing, cups clinking")


def post(path, body):
    gen = requests.post(f"{API}/{path}", headers=HEADERS, json=body, timeout=60).json()
    if gen.get("error"):
        raise SystemExit(f"{gen['error']['code']}: {gen['error']['message']}")
    return gen


def wait(path, gen):
    while gen["status"] in ("queued", "running"):
        time.sleep(5)
        gen = requests.get(f"{API}/{path}/{gen['id']}", headers=HEADERS, timeout=30).json()
    return gen


if len(sys.argv) == 1:
    # Step 1: three vertical drafts, same prompt, three seeds
    drafts = [post("videos/generations", {
        "model": "seedance-2-5",
        "prompt": PROMPT,
        "duration": 8,
        "resolution": "480p",
        "aspect_ratio": "9:16",
        "seed": seed,
    }) for seed in (11, 22, 33)]
    for gen in (wait("videos/generations", draft) for draft in drafts):
        output = gen["outputs"][0]
        print(gen["input"]["seed"], gen["status"], output["id"], output.get("url"))
else:
    # Step 2: python vertical_drafts.py file_... upscales the take you picked
    final = wait("videos/edits", post("videos/edits", {
        "model": "fp-upscale-1",
        "video": sys.argv[1],
        "resolution": "1080p",
    }))
    print(final["status"], final["outputs"][0].get("url"), final["cost_usd"])

Each draft costs $0.96 and the upscale $0.24; one take at Seedance 2.5's top resolution, 720p, would cost $2.16 and stop there. Frameport Upscale 1 keeps the clip's motion, frame rate, sound and shape, so the vertical take you picked is the one you post, only sharper. Re-rendering at a higher resolution with the same seed is not the same thing: a seed repeats a take only with the same settings, so at a new resolution, expect a different clip. More on the trade-off in how to upscale AI video.

Posting is the last step and a separate one: Frameport makes the file, and each platform's own API publishes it (TikTok's Content Posting API, Instagram's content publishing for professional accounts, the YouTube Data API). Download the file first, since its signed link expires after about an hour. For vertical product ads with a presenter who stays the same, see the AI UGC video API guide. Channels that post on a schedule are built in faceless video automation; which video models have sound and AI video resolutions help with the settings.

FAQ

What is the aspect ratio of a vertical video?

9:16: nine units wide for sixteen tall, the shape of a phone held upright. TikTok, Instagram Reels and YouTube Shorts all play it full screen, and 1080 × 1920 pixels is the usual frame size.

What size should a TikTok or Reels video be?

A 1080 × 1920 frame in 9:16. Here, render at 1080p on a model that offers it, such as Frameport Motion 1 or Wan 3.0, or make the clip smaller and upscale it with Frameport Upscale 1.

Which AI video models can make vertical videos?

Every video model on Frameport lists 9:16 among its aspect ratios. Send "aspect_ratio": "9:16" in the request, since a request without it comes back in the wide 16:9 shape wherever a model offers it.

Is there a free vertical AI video generator?

The account, the API key and price quotes are free, and a clip that fails costs nothing. Clips are paid from a prepaid balance, with drafts on Frameport Motion 1 starting at $0.02 / s. To try vertical clips without code, open the Studio.

Can the API post my videos to TikTok?

No. The API makes the clip and gives you the file; publishing goes through the platform's own tools or APIs, such as TikTok's Content Posting API. Download the file before its signed link expires, then hand it to the publisher of your choice.

Start building.

Your API key is free. Top up from $10 when you are ready.