Skip to main content
POST
/
runway
/
v1
/
pro
/
generate
generate Generate Task
curl --request POST \
  --url https://gptproto.com/runway/v1/pro/generate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ratio": "<string>",
  "prompt": "<string>",
  "style": "<string>",
  "model": "<string>",
  "options": {}
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

This endpoint provides generate generate task functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

ratio
string
Ratio parameter
prompt
string
required
Prompt parameter
style
string
Style parameter
model
string
required
The model to use for the request
options
object
Options parameter

Request Example

curl -X POST "https://gptproto.com/runway/v1/pro/generate" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ratio": "16:9",
  "prompt": "一只小猫",
  "style": "cinematic",
  "model": "runwayml-gen3a_turbo-5",
  "options": {
    "seconds": 10,
    "motion_vector": {
      "x": 0,
      "y": 0.3999999999999999,
      "z": 0,
      "r": -6,
      "bg_x_pan": 0,
      "bg_y_pan": 0
    }
  }
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}