Cannot make Runway API to generate video

Please help, I have tried so many ways but sitll down’t work

Hi @sun_kunawattanakorn and welcome to the Make Community!

The error means that something in your prompt may be wrong. Did you try removing “iPhone” and using a generic term like “smartphone”? That’s the only thing I can think of.

L

1 Like

This is an error of the Runway module, it is sending the Duration field of the request JSON as a String instead of an integer, as the Runway documentation says

@Misha-Inactive Can you report this?

API Reference | Runway API

image

2 Likes

Thank you for your reply.

I don’t think it’s about the prompt, my suspect areas are around the file, i.e., Binary vs base64 encoded. I tried changes around but still not work.

Thank you for your reply.

My suspect areas are around the file, i.e., Binary vs base64 encoded. I tried changes around but still not work.

Your observation may be right, I look up at the runway playground, the correct one would be

“model”: “gen4_turbo”,
“promptText”: “this is a test”,
“duration”: 5,
“ratio”: “1280:768”
}

Thank you

I’ll make sure this is reported and escalated to the relevant team.

In the meantime, you could use the Runway app Make an API Call module to access the underlying API endpoint directly. It’s a little more complex, but will allow you full control over the payload body.

1 Like

Thank you, It’s working. Sometimes, people can’t see the wood for the trees.

1 Like

FYI, the original bug has now been fixed and the duration parameter is now sent correctly as a number.

We’ve also added a new Runway module for Generate a video from a video using the Runway Aleph model. This allows you to edit and transform existing videos by prompt.