curl --request POST \
--url https://api.shuyou.ai/v1/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gen4.5",
"input": {
"prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
"aspect_ratio": "16:9",
"duration": 5
}
}
'{
"data": {
"task_id": "2c4d50261173430290971a2395a3b607",
"task_status": "processing"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Runway
Runway Gen-4.5
Create asynchronous video tasks with gen4.5 via POST /v1/predictions.
POST
/
v1
/
predictions
curl --request POST \
--url https://api.shuyou.ai/v1/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gen4.5",
"input": {
"prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
"aspect_ratio": "16:9",
"duration": 5
}
}
'{
"data": {
"task_id": "2c4d50261173430290971a2395a3b607",
"task_status": "processing"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Overview
Runway Gen-4.5 (gen4.5) supports:
- Text-to-video —
promptonly - Image-to-video — optional
first_frame_urlas the initial frame
Input parameters
| Field | Required | Default | Notes |
|---|---|---|---|
prompt | Yes | — | Text prompt for video generation |
aspect_ratio | No | 1:1 | 16:9, 9:16, 4:3, 3:4, 1:1, 21:9 |
duration | No | 5 | 5 or 10 seconds |
first_frame_url | No | — | Optional first-frame image URL |
Authorizations
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Async task created
Show child attributes
Show child attributes