Google Flow API v1 new video upscaling and GIF generation endpoints:
- POST /videos/upscale - Upscale videos to 1080p or 4K resolution
- POST /videos/gif - Generate animated GIF preview from video
Examples
- Generate video using
veo-3.1-fastPOST /videos
curl --location 'https://api.useapi.net/v1/google-flow/videos' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Cinematography: A dynamic tracking shot. The camera starts on a low-angle close-up of a 21-year-old Roman woman'\''s face, then pulls back to reveal the chaos behind her.
Subject & Action: The woman has perfectly styled hair and a vibrant, shimmering silk teal and gold tunic. She is pouting, making a \"duck face,\" and holding a rose-gold iPhone high for a selfie, checking her reflection in the screen.
Background: In the background, the streets of Pompeii are a hellscape. Roman legionaries in full armor and screaming civilians in dirty tunics are sprinting past her toward the camera, eyes wide with terror. A massive, looming Mt. Vesuvius erupts in the far distance, spewing a colossal, mushroom-shaped cloud of black ash and glowing red lava.
Style & Lighting: Cinematic realism. High-contrast \"Chiaroscuro\" lighting—the orange glow of the volcano clashing with the cool daylight.
Audio: The deafening roar of the volcano, the rhythmic thumping of soldiers'\'' sandals on cobblestone, and the woman'\''s faint, bubbly voice saying, \"OMG, the lighting is literally fire right now.\""' \
--form 'model="veo-3.1-fast"' \
--form 'aspectRatio="portrait"'
Result (720p)
- Upscale to 1080p using POST /videos/upscale
curl --location 'https://api.useapi.net/v1/google-flow/videos/upscale' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"mediaGenerationId": "user:12345-email:…-video:…",
"resolution": "1080p"
}'
Result (1080p)
- Upscale to 4K using POST /videos/upscale (requires Ultra)
curl --location 'https://api.useapi.net/v1/google-flow/videos/upscale' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"mediaGenerationId": "user:12345-email:…-video:…",
"resolution": "4K"
}'
Result (4K)
- Generate GIF preview using POST /videos/gif
curl --location 'https://api.useapi.net/v1/google-flow/videos/gif' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"mediaGenerationId": "user:12345-email:…-video:…"
}'
Result
