Veo 3.1 is the latest state-of-the art video generation model from Google DeepMind
pip install requestsimport requests
response = requests.post(
"https://api.runflow.io/v1/run/veo3.1/image-to-video",
headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
json={
"prompt": "Shafts of colored light from the stained glass windows slowly sweep across th...",
"duration": "8s",
"image_url": "https://public.runflow.io/images/models/black-forest-labs/flux-2-max/example-...",
"resolution": "4k",
"aspect_ratio": "16:9",
"generate_audio": true
},
)
data = response.json()
print(data["video"]["url"])| Parameter | Type | Description |
|---|---|---|
| prompt | string | The text prompt describing the video you want to generate |
| auto_fix | boolean | Whether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them. |
| duration | string | The duration of the generated video. |
| generate_audio | boolean | Whether to generate audio for the video. |
| resolution | string | The resolution of the generated video. |
| aspect_ratio | string | The aspect ratio of the generated video. Only 16:9 and 9:16 are supported. |
| image_url | image | URL of the input image to animate. Should be 720p or higher resolution in 16:9 or 9:16 aspect ratio. If the image is not in 16:9 or 9:16 aspect ratio, it will be cropped to fit. |
| safety_tolerance | string | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. |
| seed | integer | The seed for the random number generator. |
| negative_prompt | string | A negative prompt to guide the video generation. |
| Field | Type | Description |
|---|---|---|
| video | string | The generated video. |
Veo 3.1
google/veo3.1
Veo 3.1 by Google, the most advanced AI video generation model in the world. Wit...
Veo 3.1 Fast
google/veo3.1/fast
Faster and more cost effective version of Google's Veo 3.1!...
Veo 3.1 Fast — Image to Video
google/veo3.1/fast/image-to-video
Generate videos from your image prompts using Veo 3.1 fast....
Wan 2.7 — Image to Video
alibaba/wan/v2.7/image-to-video
Wan 2.7 delivers enhanced motion smoothness, superior scene fidelity, and greate...
Get API access in minutes. No GPU setup, no infrastructure to manage.