Genie 4 is now generally available in the Gemini API. You open a session, send one world_setup event to describe the world, then steer it with keys and short text input events. Sessions are capped at 120 seconds and billed at about $0.10 per second, Google says, so a good opening prompt matters more than in a chat. The tips below follow Google’s Genie prompting docs; the example prompts are our own.
How Genie 4 reads a prompt
- First person, grounded. Google’s docs recommend writing in the first person and saying in the first sentence what you are standing on or holding, so the camera has a reason to move.
- Rules for cause and effect. Use
Rule:lines tied to a concrete object or character (a lever, a door, a guard), not to a place. - Triggers far away. Put the thing that triggers a rule at a distance, not within arm’s reach, or it can fire before you press a key.
- Idle characters. Tell characters to stay still until a rule fires.
- Sounds, not music. Describe physical sounds (footsteps, rain, gravel). Google says music, synth and drone words get stripped or rewritten.
- One continuous view. No trailer cuts or camera-cut directions, and keep the layout forward-facing.
world_setup template
I am [standing on / holding something] in [place], looking toward [main landmark ahead]. [Two or three concrete visual details]. [Physical sounds].
Rule: when I [touch / reach / open] the [object far ahead], [visible change].
Rule: the [character] stays still until [trigger], then [action].
Starter world_setup prompts (our own)
I am standing on a narrow wooden pier at dawn, holding a lantern, looking toward a small lighthouse at the far end. Mist on the water, gulls on the posts, wet planks. I hear waves slapping the posts and my boots on the wood.
Rule: when I reach the lighthouse door, the lamp at the top switches on and sweeps across the water.
I am walking along a dusty canyon trail in a stylised cartoon style, holding a map, looking toward a stone arch in the distance. Red rock walls, scattered cactus, bright midday sun. I hear gravel under my feet and wind in the canyon.
Rule: a small robot sits still under the arch until I get close, then it waves and rolls ahead of me.
I am standing at the edge of a quiet paper-craft village at night, looking down a lantern-lit street toward a tall clock tower. Folded paper houses, soft orange windows, paper snow. I hear a light breeze and paper rustling.
Rule: when I reach the base of the clock tower, every window on the street lights up at once.
Text events (mid-session)
Google’s docs say text events should be short and change the whole world, such as weather or a visible event, and take about 1 to 2 seconds to show. Use WASD and the arrow keys for movement. Our examples:
Heavy rain starts falling.
The sun sets quickly and the sky turns deep orange.
A flock of birds lifts off the rooftops ahead.
For a line a character should say, put it in quotation marks: The robot says "This way, follow me." Google’s docs also suggest binding spare keys (E, Q, R) in your client to reusable event prompts and adding a short cooldown, since those keys have no built-in meaning.
Seeding with an image
You can send one 16:9 reference image with or without text. Google’s docs suggest stylised art or empty landscapes and warn that real people, public figures and logos can trigger safety filters. A painted landscape you made yourself is a safe start.
Keep sessions short
Google says coherence degrades after about 60 to 90 seconds, and off-screen objects can rearrange if you look away for 8 seconds or more. Plan 25 to 45 second forward-moving scenes, avoid backtracking, and call complete() when you are done so billing stops. For the consumer version in the browser, see Project Genie world prompts; for regular clips, see how to write AI video prompts.
Contribute your creativity