Skip to content
中文

Runway Video Generation API documentation

Integrate Runway Video Generation with your VezAPI key. The operations below share the same authentication and account balance.

Base URL: https://api.vezapi.com
Send Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.

extend-ai-video

POST/api/v1/jobs/createTask

Model IDs: runway/extend-ai-video

ParameterTypeDescription & constraints
model
required
string

Model name. Fixed: runway/extend-ai-video.

Default: "runway/extend-ai-video"

callBackUrl
optional
string

The URL to receive AI video extension task completion updates. Required for all video extension requests. - System will POST task status and results to this URL when video extension completes - Callback includes extended video URLs, cover images, and task information - Your callback endpoint should accept POST requests with JSON payload containing extension results - For detailed callback format and implementation guide, see [Video Extension Callbacks]([see VezAPI documentation]) - Alternatively, poll Get Task Details (/market/common/get-task-detail). - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation

input
required
object
input.task_id
required
string

Unique identifier of the original video generation task. Must be a valid task ID from a previously generated video.

input.prompt
required
string

Descriptive text that guides the continuation of the video. Explain what actions, movements, or developments should happen next. Be specific but maintain consistency with the original video content.

input.quality
required
string

Video resolution, optional values are 720p or 1080p.

input.watermark
optional
string

Video watermark text content. An empty string indicates no watermark, while a non-empty string will display the specified text as a watermark in the bottom right corner of the video.

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "runway/extend-ai-video",
  "input": {
    "task_id": "ee603959-debb-48d1-98c4-a6d1c717eba6",
    "prompt": "The cat continues dancing with more energy and excitement, spinning around with colorful light effects intensifying",
    "quality": "720p"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 404, 422, 429, 451, 455, 500

msg
optional
string

Status message

data
optional
object
data.taskId
optional
string

Task ID for tracking task status. Use this ID with the "Get AI Video Details" endpoint to query extension task details and results.

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

generate-ai-video

POST/api/v1/jobs/createTask

Model IDs: runway

ParameterTypeDescription & constraints
model
required
string

Model version to use for generation.

Default: "runway"

callBackUrl
optional
string

The URL to receive AI video generation task completion updates. Required for all video generation requests. - System will POST task status and results to this URL when video generation completes - Callback includes generated video URLs, cover images, and task information - Your callback endpoint should accept POST requests with JSON payload containing video results - For detailed callback format and implementation guide, see [Video Generation Callbacks]([see VezAPI documentation]) - Alternatively, poll Get Task Details (/market/common/get-task-detail). - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation

input
required
object
input.prompt
required
string

Descriptive text that guides the AI video generation. Be specific about subject, action, style, and setting. When used with an image, describes how to animate or modify the image content. Maximum length is 1800 characters.

input.image_url
optional
string

Optional reference image URL to base the video on. When provided, the AI will create a video animating or extending this image.

input.duration
required
number

Video duration, optional values are 5 or 10. If 10-second video is selected, 1080p resolution cannot be used

input.quality
required
string

Video resolution, optional values are 720p or 1080p. If 1080p is selected, 10-second video cannot be generated

input.aspect_ratio
optional
string

Video aspect ratio parameter. **Required parameter for text-to-video generation requests. This parameter is invalid when image_url is passed, and the aspect ratio will ultimately be determined by the provided image.**

Values: "16:9", "4:3", "1:1", "3:4", "9:16"

input.watermark
optional
string

Video watermark text content. An empty string indicates no watermark, while a non-empty string will display the specified text as a watermark in the bottom right corner of the video.

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "runway",
  "input": {
    "prompt": "A fluffy orange cat dancing energetically in a colorful room with disco lights",
    "duration": "5",
    "quality": "720p",
    "aspect_ratio": "9:16"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 404, 422, 451, 455, 500

msg
optional
string

Error message when code != 200

data
optional
object
data.taskId
optional
string

Unique identifier for the generation task, can be used with `Get AI Video Details` to query task status

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

Task status and callbacks

For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.

A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.

Files, logs and billing

Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.

Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.