andreasjansson/baby-in-a-corner
Somebody put lipsyncing avatars in a corner!
Public
4
runs
Run andreasjansson/baby-in-a-corner 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 |
|---|---|---|---|
| input_video |
string
|
Input video (max 5 minutes)
|
|
| avatar_image |
string
|
Avatar image for lipsyncing
|
|
| corner |
None
|
bottom-right
|
Corner position for the avatar
|
| avatar_size_percent |
integer
|
20
Min: 10 Max: 50 |
Avatar size as percentage of video height
|
{
"type": "object",
"title": "Input",
"required": [
"input_video",
"avatar_image"
],
"properties": {
"corner": {
"enum": [
"top-left",
"top-right",
"bottom-left",
"bottom-right"
],
"type": "string",
"title": "corner",
"description": "Corner position for the avatar",
"default": "bottom-right",
"x-order": 2
},
"input_video": {
"type": "string",
"title": "Input Video",
"format": "uri",
"x-order": 0,
"description": "Input video (max 5 minutes)"
},
"avatar_image": {
"type": "string",
"title": "Avatar Image",
"format": "uri",
"x-order": 1,
"description": "Avatar image for lipsyncing"
},
"avatar_size_percent": {
"type": "integer",
"title": "Avatar Size Percent",
"default": 20,
"maximum": 50,
"minimum": 10,
"x-order": 3,
"description": "Avatar size as percentage of video height"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"video"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri"
}
}
}
Example API response
View prediction
{'video': 'https://replicate.delivery/xezq/JrDvsHPoe3QnNyz2y0VoFgx3Ocpy2IaYaolWcnZxKejdPqhVA/final_output.mp4'}