# 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&#x26;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="<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>" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.colossyan.com/video-generation/video-generation/generating-using-a-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
