File size: 553 Bytes
846ea5b 58132fb 05b0023 58132fb 05b0023 58132fb 846ea5b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
"use server"
import { ClapProject } from "@aitube/clap"
import { createClap as apiCreateClap } from "@aitube/client"
import { getToken } from "./getToken"
export async function createClap({
prompt = "",
}: {
prompt: string
}): Promise<ClapProject> {
const clap: ClapProject = await apiCreateClap({
prompt,
// the vertical video look 🤳
// initially I used 1024x512 (a 2:1 ratio)
// but that is a bit too extreme, most phones only take 16:9
height: 1024,
width: 576,
token: await getToken()
})
return clap
}
|