Add Video to your NFTs

Add Videos to NFTs

In this guide, we will look into how you can add a video or multiple videos to your NFTs, Note that adding the videos will happen during the creation of the token-type (NFT tenplate).

📘

Prerequisites

  1. You already have an NFT collection (contract) created using the NFT-API. View the Getting Started guide if you haven't.

  2. contractAddress: The public address of your NFT contract.

Request Endpoint: reference

HTTP

POST /api/v2/token-types/creations

Example Request

We will use the create token-type endpoint and within the request body, we will specify the animationUrls array.

HTTP

Request Body

📘

  • In the animationUrls array, we have defined the object with type: video and its value(The URL of the video address).

  • You can add multiple objects within the animationUrls array with images, videos, and even audio.

  • Read more about [animationUrls](https://docs.quantum.io/docs/animation-media)

JSON

Response Body

📘

The token-type was created successfully with a video included. You can check its status using the result.creations.id param.

JSON

NFT Minted Preview

Here is how the minted NFT will look like with a video added:

NFT with a video
NFT with a video

Last updated