
pranavsekhar/animal-to-train
Turn animals into trains :)
Public
61
runs
Run pranavsekhar/animal-to-train with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
animal |
string
|
Name of the animal to transform into a train (e.g., 'elephant', 'giraffe', 'cat')
|
|
style |
None
|
realistic
|
Style of the train transformation
|
aspect_ratio |
None
|
16:9
|
Aspect ratio of the generated video
|
duration |
None
|
5
|
Duration of the video in seconds
|
quality |
None
|
720p
|
Video quality/resolution
|
add_sound |
boolean
|
True
|
Add train sounds and animal sound effects to the video
|
seed |
integer
|
Random seed for reproducible results
|
{
"type": "object",
"title": "Input",
"required": [
"animal"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 6,
"nullable": true,
"description": "Random seed for reproducible results"
},
"style": {
"enum": [
"realistic",
"cartoon",
"steampunk",
"futuristic",
"vintage"
],
"type": "string",
"title": "style",
"description": "Style of the train transformation",
"default": "realistic",
"x-order": 1
},
"animal": {
"type": "string",
"title": "Animal",
"x-order": 0,
"description": "Name of the animal to transform into a train (e.g., 'elephant', 'giraffe', 'cat')"
},
"quality": {
"enum": [
"540p",
"720p",
"1080p"
],
"type": "string",
"title": "quality",
"description": "Video quality/resolution",
"default": "720p",
"x-order": 4
},
"duration": {
"enum": [
5,
8
],
"type": "integer",
"title": "duration",
"description": "Duration of the video in seconds",
"default": 5,
"x-order": 3
},
"add_sound": {
"type": "boolean",
"title": "Add Sound",
"default": true,
"x-order": 5,
"description": "Add train sounds and animal sound effects to the video"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated video",
"default": "16:9",
"x-order": 2
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/3AoEVwRlod6cDBJzQfdEOCven81kdQS5mmAI7WMPZpohqBLVA/tmpssayz6qi.mp4'