📄️ Create Multi-Scene Videos
In this example we will look at how to create long/multi-scene videos using the Predis.ai API. The parameter videoduration controls if the generated video will be a video with a single scene or multiple scenes. We will set the value of videoduration to long for multi-scene videos in the request.
📄️ Create Quotes Post
In this example we will look at how to create a Quotes post using the Predis.ai API. We will set the value of posttype to quotes and the value of mediatype parameter to singleimage. Currently only singleimage is supported for generating Quotes post and hence any other value in media_type will fail.
📄️ Create Memes
In this example we will look at how to create memes using the Predis.ai API. We will set the value of posttype to meme and the value of mediatype parameter to singleimage. Currently only singleimage is supported for generating memes and hence any other value in media_type will fail.
📄️ Create Posts in Different Languages
In this example we will look at how to create posts in languages other than the default English using the Predis.ai API. The parameter outputlanguage controls the language of the generated post. You can also set inputlanguage parameter if you would be passing the text parameter in a different language.
📄️ Create Posts in Bulk
In this example we will look at how to create multiple posts in a single request using Predis.ai API. We will pass the nposts parameter to 3 to generate 3 posts in a single request. You can also pass multiple templateids if you want these posts in specific designs/templates.
📄️ Create Posts Using Own Images/Videos
In this example we will look at how to create posts using user's own images and videos instead of AI suggested images/videos. We will pass the media_urls parameter as a list containing the pubicly accessible URLs of images/videos.
📄️ Create Posts Using AI Suggested Palette
In this example we will look at how to create posts using AI suggested palette. In the cases where a user's brand palette is set, by default the posts generated will use the brand palette to create posts.