Motion transfer
Transfer motion from a video onto the reference character.
From 0.30 USDT
Cloud workflow
POST https://api.poton.ai/v1/tasks
Base URL https://api.poton.ai. Send JSON. Amounts are strings. Create a task with POST /v1/tasks. It returns 202.
Authentication
Authorization: Bearer YOUR_KEY
Send Idempotency-Key to make a retry return the original task instead of holding the price twice.
Authenticated requests are limited to 60 per minute for each API key.
Parameters
| Parameters | Type | Required |
|---|---|---|
| video Video |
video | Required |
| image Front reference |
image | Required |
| image_2 Profile reference |
image | Required |
| image_3 Back reference |
image | Required |
| resolution Resolution |
enum (480x832, 576x1024, 720x1280) | Required |
| fps Frame rate |
enum (16) | Required |
curl
curl -X POST https://api.poton.ai/v1/tasks \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-1" \
-d '{
"workflow": "motion-transfer",
"inputs": {
"video": {
"file_id": "upl_..."
},
"image": {
"file_id": "upl_..."
},
"image_2": {
"file_id": "upl_..."
},
"image_3": {
"file_id": "upl_..."
},
"resolution": "480x832",
"fps": "16"
}
}'
Python
import requests
requests.post(
"https://api.poton.ai/v1/tasks",
headers={"Authorization": "Bearer YOUR_KEY"},
json={
"workflow": "motion-transfer",
"inputs": {
"video": {
"file_id": "upl_..."
},
"image": {
"file_id": "upl_..."
},
"image_2": {
"file_id": "upl_..."
},
"image_3": {
"file_id": "upl_..."
},
"resolution": "480x832",
"fps": "16"
}
},
)
JavaScript
await fetch("https://api.poton.ai/v1/tasks", {
method: "POST",
headers: {"Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"workflow": "motion-transfer",
"inputs": {
"video": {
"file_id": "upl_..."
},
"image": {
"file_id": "upl_..."
},
"image_2": {
"file_id": "upl_..."
},
"image_3": {
"file_id": "upl_..."
},
"resolution": "480x832",
"fps": "16"
}
})
});
Return values
POST /v1/tasks returns 202. A new task has status queued, error null, and outputs []. Each field below belongs to that task object. Examples come from the completed GET /v1/tasks/{id}. Example values are samples.
| Parameters | Type | Example | Description |
|---|---|---|---|
id |
string | "task_0123456789abcdef01234567" |
Task id. It is already present in the 202 response. |
workflow |
string | "motion-transfer" |
Slug of this API. |
status |
string | "succeeded" |
queued, running, succeeded, failed, or canceled. A new task is queued. |
price |
string | "0.300000" |
Price of this task, as a 6-decimal USDT string. |
error |
object | null |
null unless the task failed. A failure is an object with code and message. |
error.code |
string | "invalid_input" |
Stable error code. Present only when error is an object. The example is one possible code. |
error.message |
string | "Invalid input: prompt" |
Message in the caller's language. Present only when error is an object. The example is one possible message. |
outputs |
array | [{"url": "https://r2.poton.ai/results/task_0123456789abcdef01234567/ExampleMotionToken0001.mp4", "type": "video", "bytes": 2516992, "width": 480, "height": 832, "duration": 8.0}] |
Result array. It is [] until the task succeeds, then one item. |
created_at |
string | "2026-11-09T08:00:00Z" |
Creation time, ISO 8601 in UTC. |
outputs[].url |
string | "https://r2.poton.ai/results/task_0123456789abcdef01234567/ExampleMotionToken0001.mp4" |
Result file on r2.poton.ai. Not a supplier URL. |
outputs[].type |
string | "video" |
Result type for this API. The example is the success type. |
outputs[].bytes |
number | 2516992 |
File size in bytes. |
outputs[].width |
number | 480 |
Width in pixels. null when the size cannot be read. |
outputs[].height |
number | 832 |
Height in pixels. null when the size cannot be read. |
outputs[].duration |
number | 8.0 |
Length in seconds, to 0.001. Omitted when it cannot be read. |
Completed response
{
"id": "task_0123456789abcdef01234567",
"workflow": "motion-transfer",
"status": "succeeded",
"price": "0.300000",
"error": null,
"outputs": [
{
"url": "https://r2.poton.ai/results/task_0123456789abcdef01234567/ExampleMotionToken0001.mp4",
"type": "video",
"bytes": 2516992,
"width": 480,
"height": 832,
"duration": 8.0
}
],
"created_at": "2026-11-09T08:00:00Z"
}
queued and running are unfinished. succeeded means the file is stored and the hold was captured. failed and canceled with no file release the hold.
queued · running · succeeded · failed · canceled
Errors
401 unauthorized · 402 insufficient_balance · 403 forbidden · 404 not_found · 409 idempotency_conflict · 413 file_too_large · 422 invalid_input · 422 content_rejected · 429 rate_limited · 500 upstream_unavailable · 500 result_copy_failed
GPU rules match character replacement. Prices start the same, and an admin can change this API on its own.