AI Models in unified API

Build withText-to-Video

Experiment quickly in a clean UI, explore example runs for insights,
or integrate via SDKs and APIs.

API Quickstart

Explore the unified API. For each model, we provide a code snippet to get you started.

import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe(`google/veo-3.1-text-to-video`, {
input: {
"prompt": "An eye-level shot glides through a misty pine forest at dawn. Soft sunlight filters through the trees, illuminating particles in the air. A red fox slowly emerges from the fog, stretches, and walks across moss-covered ground. The camera tracks its gentle movement in shallow focus. Natural ambiance fills the soundscape — birds chirping, distant rustle of leaves, and a light breeze passing through the forest.",
"duration": "6",
"resolution": "720p",
"aspect_ratio": "16:9",
"person_generation": "allow_all"
}
});
// console.log(result.data);
// console.log(result.requestId);