> For the complete documentation index, see [llms.txt](https://docs.colossyan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.colossyan.com/video-generation/video-generation/generating-using-a-template.md).

# Generating using a template

To generate a video based on a template:

<figure><img src="https://55465428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Ywi5dAVPQ3D5ZEo1sKj%2Fuploads%2FsZaLyY2ioxhxvLSUK3Jz%2Ftemplate-gen.gif?alt=media&amp;token=8c239cc5-68a2-4168-9a19-ce6b60366e31" alt=""><figcaption></figcaption></figure>

1. Head over to Colossyan and create your desired video draft using our web-based studio
2. Once you are done, click on the "Generate" button on the top right corner of your editor, than in the dialog appeared click "Export to API"

{% hint style="info" %}
Note that this button is only visible if you have a plan which has access to the API. For more information, head over to our [pricing page.](https://www.colossyan.com/pricing)
{% endhint %}

3. On the top right corner of the appearing dialog click "Save job as a template" and make note of the appearing ID. This is the ID of your template job, you can send this id with your request to start generate the video.

{% hint style="warning" %}
**Keep in mind:** the template job ID refers to the state of the draft when you saved it. If later you edit this draft, you'll need to create another template id to represent the changes.
{% endhint %}

4. Now you have everything to send us a video generation request using the API endpoint below.

{% openapi src="/files/T5PhPQ19H5tfs2OQxChB" path="/video-generation-jobs/template-jobs" method="post" %}
[template-jobs.yaml](https://55465428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Ywi5dAVPQ3D5ZEo1sKj%2Fuploads%2Foba8pOcUVmkeSONNx04s%2Ftemplate-jobs.yaml?alt=media\&token=ae6836e2-0615-4094-b895-21cb8504ed2a)
{% endopenapi %}
