/** @jsxImportSource vargai */
import { Render, Clip, Image, Video, Split, Title, Music } from "vargai/react"
import { createVarg } from "vargai/ai"
const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })
const CHARACTER = "woman in her 30s, brown hair"
const before = Image({
model: varg.imageModel("nano-banana-pro"),
prompt: `${CHARACTER}, tired expression, loose clothing`,
aspectRatio: "9:16",
})
const after = Image({
model: varg.imageModel("nano-banana-pro/edit"),
prompt: { text: `${CHARACTER}, fit and confident, athletic wear, same person transformed`, images: [before] },
aspectRatio: "9:16",
})
const beforeVid = Video({
model: varg.videoModel("kling-v3"),
prompt: { text: "person sighs, looks down sadly", images: [before] },
duration: 5,
})
const afterVid = Video({
model: varg.videoModel("kling-v3"),
prompt: { text: "person smiles confidently, proud posture, flexes", images: [after] },
duration: 5,
})
export default (
<Render width={2160} height={1920}>
<Music prompt="motivational upbeat, inspiring transformation" model={varg.musicModel()} volume={0.3} duration={10} />
<Clip duration={5}>
<Split direction="horizontal">
{beforeVid}
{afterVid}
</Split>
<Title position="top" color="#ffffff">My 3-Month Transformation</Title>
</Clip>
</Render>
)