Create TikTok Videos by API

Automate and scale your TikTok channel with auto-generated videos by API. Promote your brand, products, and services with captivating short-form videos that highlight interesting facts, helpful tips, user-generated content, AI-generated materials, and more. Create hundreds of TikTok videos using a no-code platform like Zapier or programmatically with languages such as Javascript, PHP, Ruby, or Python.
  • Create TikTok videos by API
  • Auto-generate short-form videos
  • Scale TikTok video creation

How to Create TikTok Videos by API?

Here's a quick overview of how to create TikTok videos using Creatomate's API. The first step is to create a template that will serve as the foundation for all your videos. Next, you simply invoke the REST API and provide the desired content to be inserted into the template, such as captions, photos, and video clips.

Create a TikTok video template

To automate TikTok video creation, you begin with a template that sets your video's design. This template includes placeholder elements, such as text and media, which can be automatically substituted with dynamic content using the API.

While there are many ready-made templates you can use, you also have the option to create your own video designs using the template editor. With a wide range of customization options, you can create designs that perfectly suit your needs while aligning with TikTok's style.

curl -s -X POST \
  -H 'Authorization: Bearer Your-API-Key' \
  -H 'Content-Type: application/json' \
  --data-binary @- << EOF
  "template_id": "Your TikTok Video Template ID",
  "modifications": {
    "Title": "3 facts on animals that live in the mountains.",
    "Fact-1": "1. Mountain goats have specialized hooves that help them grip rockey and uneven terrain.",
    "Fact-2": "2. Snow leopards 🐆 are formidable hunters and can leap up to 50 feet in one jump.",
    "Fact-3": "3. Golden eagles 🦅 are skilled hunters and can swoop down at speeds of up to 200 miles per hour."
    "Video": ""

Set up the API integration

Once you have a template, you can create TikTok videos through the REST API. The API is accessible through your own software using Javascript, PHP, Ruby, and Python, as well as through a no-code platform like Zapier. This makes it easy to use for both marketers and developers.

Generating TikTok videos is very simple – you only need to send a single POST request. Within this request, you provide the template ID, along with the desired content to be inserted, such as captions and images. After sending the request, you'll receive a URL where you can find the generated video.

Generate TikTok videos automatically

No matter what kind of TikTok videos you wish to create, the API offers an automated solution. If you're a developer or have one on your team, integrating it into your software application is simple. Another option is to use Zapier, a no-code platform that enables you to build custom workflows with over 5000 apps, making it easy to create and post TikTok videos on autopilot. Here's a tutorial to walk you through it.

And if you want to take it a step further, consider using AI to generate content for your videos. For example, you can use GPT-4 and ChatGPT to generate facts, tips, quotes and more. If you're looking for inspiration, you can explore this Zapier tutorial or this code tutorial.

Want to try it yourself? Get started for free in minutes:

Frequently asked questions

How can I create TikTok videos by API?

Auto-generating TikTok videos is a simple process. The first step is to create a template in the editor, which will serve as a base for all your videos. You can then use the API, either through a no-code tool like Zapier or a programming language such as Javascript, PHP, Ruby, or Python, to substitute various elements of that template with other text, captions, images, and video clips.

What kind of TikTok videos can I auto-generate by API?

All kinds of TikTok videos can be created, as long as the design fits into a template. It is commonly used for generating marketing videos that feature facts, quotes, tips, quizzes as well as promoting brands, products, and services. If you want to go one step further, you can have AI create the video content for you too.

Can I use AI to auto-generate TikTok videos?

Yes! You can use AI technology, such as GPT-4 and ChatGPT, in your automated workflows to generate video content. We have prepared two tutorials that demonstrate how to use code or Zapier to leverage AI in the process.

How long does it take to set up?

Setting up both API integrations and Zapier workflows can be done in under 10 minutes. You can get started right away by following our Zapier tutorial or code guide.

What's the best API to create TikTok videos?

In our opinion, Creatomate stands out as the top choice for creating TikTok videos. It offers a comprehensive set of tools to automatically generate these popular vertical videos for a wide range of purposes. Additionally, you may want to explore our list of the best APIs for video generation to compare Creatomate with other products available on the market.

Can I use Creatomate for more than automating TikTok videos?

Absolutely! You can automate almost any type of video content. Whether you need social media videos, personalized videos, sales outreach videos, product videos, video ads, or any other type of video, Creatomate has got you covered. In addition to using the API or Zapier, you can also create videos using a simple spreadsheet or form.

Quickly get started

Learn how to automate your videos by following our practical tutorials.

Start automating today

Start with a full-featured trial with 50 credits, no credit card required.
Get started for free