<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Video AIditor Blogs]]></title><description><![CDATA[Providing simple APIs to create and edit videos for enterprises.]]></description><link>https://blog.videoaiditor.com</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 15:59:19 GMT</lastBuildDate><atom:link href="https://blog.videoaiditor.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Use the Video AIditor API to Create the Video]]></title><description><![CDATA[Hope you are enjoying editing with the VideoAIditor. In this guide we will be guiding you to use the API to create the video using a template video.
First of all go to the editor.videoaiditor.com and create a video and export that as JSON. We will be...]]></description><link>https://blog.videoaiditor.com/use-the-video-aiditor-api-to-create-the-video</link><guid isPermaLink="true">https://blog.videoaiditor.com/use-the-video-aiditor-api-to-create-the-video</guid><category><![CDATA[Video Editing]]></category><category><![CDATA[gen ai]]></category><category><![CDATA[AI Video Generator]]></category><category><![CDATA[APIs]]></category><category><![CDATA[sdk]]></category><dc:creator><![CDATA[Video Aiditor]]></dc:creator><pubDate>Mon, 18 Nov 2024 17:05:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1731949372767/bd87a44b-1f38-47d6-90ca-92bd3a31e1bc.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hope you are enjoying editing with the VideoAIditor. In this guide we will be guiding you to use the API to create the video using a template video.</p>
<p>First of all go to the <a target="_blank" href="https://editor.videoaiditor.com">editor.videoaiditor.com</a> and create a video and export that as JSON. We will be using that JSON as a template for future videos.</p>
<p>Now go to <a target="_blank" href="https://videoaiditor.com">videoaiditor.com</a> and get an API key.</p>
<p><a target="_blank" href="https://docs.videoaiditor.com/guides/How%20to%20use%20the%20API#use-the-api-to-create-the-video"><strong>​</strong></a>Send your video template JSON, created via the editor, and get the link for further editing, use the following API endpoint:</p>
<p>Add your API key to the request header as follows:</p>
<ul>
<li><code>x-api-key: YOUR_API_KEY</code></li>
</ul>
<p>Send a <code>POST</code> request to <code>https://api.videoaiditor.com/v1/videos</code> with the JSON body and the appropriate headers.</p>
<h2 id="heading-request-body-example"><strong>Request Body Example</strong></h2>
<pre><code class="lang-json">{
  <span class="hljs-attr">"metadata"</span>: {
    <span class="hljs-attr">"name"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
    <span class="hljs-attr">"backgroundColor"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
    <span class="hljs-attr">"duration"</span>: <span class="hljs-number">123</span>,
    <span class="hljs-attr">"fps"</span>: <span class="hljs-number">123</span>,
    <span class="hljs-attr">"canvas"</span>: {
      <span class="hljs-attr">"width"</span>: <span class="hljs-number">123</span>,
      <span class="hljs-attr">"height"</span>: <span class="hljs-number">123</span>
    }
  },
  <span class="hljs-attr">"clips"</span>: [
    {
      <span class="hljs-attr">"type"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
      <span class="hljs-attr">"name"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
      <span class="hljs-attr">"source"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
      <span class="hljs-attr">"timeFrame"</span>: {
        <span class="hljs-attr">"start"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"end"</span>: <span class="hljs-number">123</span>
      },
      <span class="hljs-attr">"position"</span>: {
        <span class="hljs-attr">"x"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"y"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"z"</span>: <span class="hljs-number">123</span>
      },
      <span class="hljs-attr">"transform"</span>: {
        <span class="hljs-attr">"scale"</span>: {
          <span class="hljs-attr">"x"</span>: <span class="hljs-number">123</span>,
          <span class="hljs-attr">"y"</span>: <span class="hljs-number">123</span>
        },
        <span class="hljs-attr">"rotation"</span>: <span class="hljs-number">123</span>
      },
      <span class="hljs-attr">"size"</span>: {
        <span class="hljs-attr">"width"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"height"</span>: <span class="hljs-number">123</span>
      },
      <span class="hljs-attr">"effects"</span>: {
        <span class="hljs-attr">"opacity"</span>: <span class="hljs-number">0.5</span>
      },
      <span class="hljs-attr">"textProperties"</span>: {
        <span class="hljs-attr">"content"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"fontSize"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"fontWeight"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"fontFamily"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"color"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"backgroundColor"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"textAlign"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"fontStyle"</span>: <span class="hljs-string">"&lt;string&gt;"</span>,
        <span class="hljs-attr">"lineHeight"</span>: <span class="hljs-number">123</span>,
        <span class="hljs-attr">"underline"</span>: <span class="hljs-literal">true</span>
      }
    }
  ],
  <span class="hljs-attr">"additional"</span>: {}
}
</code></pre>
<h2 id="heading-httpsdocsvideoaiditorcomguideshow20to20use20the20apihandle-the-responsehandle-the-response"><a target="_blank" href="https://docs.videoaiditor.com/guides/How%20to%20use%20the%20API#handle-the-response"><strong>​</strong></a><strong>Handle the Response</strong></h2>
<p>Once you send the request, the API will return a response that includes data in the following format:</p>
<pre><code class="lang-json">{
  <span class="hljs-attr">"data"</span>: {
    <span class="hljs-attr">"metadata"</span>: {
      <span class="hljs-attr">"redirectUrl"</span>: <span class="hljs-string">"https://videoaiditor.com/editor/{unique-id}"</span>,
        ...
    }
    ...
    ...
  }
}
</code></pre>
<h3 id="heading-httpsdocsvideoaiditorcomguideshow20to20use20the20apiimportant-save-the-redirecturlimportant-save-the-redirecturl"><a target="_blank" href="https://docs.videoaiditor.com/guides/How%20to%20use%20the%20API#important-save-the-redirecturl"><strong>​</strong></a><strong>Important: Save the</strong> <code>redirectUrl</code></h3>
<p>The response will contain a <code>redirectUrl</code> field in the metadata. <strong>Save this URL</strong> — it’s a special link that will allow you to continue editing the video.</p>
<ul>
<li><p>The URL is <strong>public</strong> but only accessible to users who have the link.</p>
</li>
<li><p>You can share this URL with others to allow them to edit the video. Since it’s a presigned URL, no one else will be able to access it without the exact link.</p>
</li>
</ul>
<h2 id="heading-httpsdocsvideoaiditorcomguideshow20to20use20the20apifinal-notesfinal-notes"><a target="_blank" href="https://docs.videoaiditor.com/guides/How%20to%20use%20the%20API#final-notes"><strong>​</strong></a><strong>Final Notes</strong></h2>
<ul>
<li><p><strong>Security:</strong> Be cautious when sharing the <code>redirectUrl</code> since it provides direct access to that video in video editor.</p>
</li>
<li><p><strong>Public Access:</strong> Ensure the asset URLs you provide in the JSON are publicly accessible. If they are private or restricted, the video may not load correctly when editing.</p>
</li>
<li><p><strong>API Key:</strong> Keep your API key secure. Do not share it in public forums or expose it in client-side code.</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>