typetext
{
"action": "The can grows wings and flys away",
"ambient_audio": "natural environmental",
"camera_motion": "fast zoom in",
"color_palette": "natural colors",
"dialogue": "Red Bull give you wings",
"film": "digital clean",
"lighting": "natural daylight",
"location": "NYC street",
"resolution": "1080p",
"seed": 42,
"subject": "Red bull can",
"tone": "neutral"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OFv**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run veo-3-apps/json-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
action: "The can grows wings and flys away",
ambient_audio: "natural environmental",
camera_motion: "fast zoom in",
color_palette: "natural colors",
dialogue: "Red Bull give you wings",
film: "digital clean",
lighting: "natural daylight",
location: "NYC street",
resolution: "1080p",
seed: 42,
subject: "Red bull can",
tone: "neutral"
};
const output = await replicate.run("veo-3-apps/json-prompt", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OFv**********************************
This is your API token. Keep it to yourself.
import replicate
Run veo-3-apps/json-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"veo-3-apps/json-prompt",
input={
"action": "The can grows wings and flys away",
"ambient_audio": "natural environmental",
"camera_motion": "fast zoom in",
"color_palette": "natural colors",
"dialogue": "Red Bull give you wings",
"film": "digital clean",
"lighting": "natural daylight",
"location": "NYC street",
"resolution": "1080p",
"seed": 42,
"subject": "Red bull can",
"tone": "neutral"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OFv**********************************
This is your API token. Keep it to yourself.
Run veo-3-apps/json-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"action": "The can grows wings and flys away",
"ambient_audio": "natural environmental",
"camera_motion": "fast zoom in",
"color_palette": "natural colors",
"dialogue": "Red Bull give you wings",
"film": "digital clean",
"lighting": "natural daylight",
"location": "NYC street",
"resolution": "1080p",
"seed": 42,
"subject": "Red bull can",
"tone": "neutral"
}
}' \
https://api.replicate.com/v1/models/veo-3-apps/json-prompt/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "dagm9fshhsrmc0cre3hshfj31m",
"model": "veo-3-apps/json-prompt",
"version": "hidden",
"input": {
"action": "The can grows wings and flys away",
"ambient_audio": "natural environmental",
"camera_motion": "fast zoom in",
"color_palette": "natural colors",
"dialogue": "Red Bull give you wings",
"film": "digital clean",
"lighting": "natural daylight",
"location": "NYC street",
"resolution": "1080p",
"seed": 42,
"subject": "Red bull can",
"tone": "neutral"
},
"logs": "fast zoom in camera movement. Subject: Red bull can. Action: The can grows wings and flys away. Location: NYC street. Dialogue: Red Bull give you wings.",
"output": "https://replicate.delivery/xezq/ilhTyOtYbk4eMSFadBt8IDLkHz2aGe2zQfi4SFz34eWbOSdUB/tmpl_w468w5.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-03T17:03:14.318Z",
"started_at": "2025-08-03T17:03:23.068435Z",
"completed_at": "2025-08-03T17:05:42.182583Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/dagm9fshhsrmc0cre3hshfj31m/cancel",
"children": "https://api.replicate.com/v1/predictions/dagm9fshhsrmc0cre3hshfj31m/children",
"get": "https://api.replicate.com/v1/predictions/dagm9fshhsrmc0cre3hshfj31m",
"root": "https://api.replicate.com/v1/predictions/dagm9fshhsrmc0cre3hshfj31m",
"stream": "https://stream.replicate.com/v1/files/bcwr-bymywqfu36tkmsoqiao3tcvrkk7yc5xcedzdo6utizevjy5f56aa",
"web": "https://replicate.com/p/dagm9fshhsrmc0cre3hshfj31m"
},
"metrics": {
"predict_time": 139.11414816,
"total_time": 147.864583
}
}