> For the complete documentation index, see [llms.txt](https://dev.plyr.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.plyr.network/api-reference/assets/nfts-erc-721/create-nft.md).

# Create NFT

{% hint style="info" %}
Creates a new NFT contract with the specified name, symbol, and optional image.
{% endhint %}

**Endpoint:** `/game/nft/create`\
**Method:** POST

{% tabs %}
{% tab title="Request Parameters" %}

```typescript
{
    name: string;       // The name of the NFT contract
    symbol: string;     // The symbol for the NFT contract
    chainId?: string;   // Optional chain ID
    image?: string;     // Optional URL to the collection image
}
```

{% endtab %}

{% tab title="Success Response" %}

```typescript
{
	taskId: string;
	data: {
		nft: string; // The contract address of the created NFT
	}
	status: string;
}
```

{% endtab %}

{% tab title="Error Response" %}

```typescript
{
  error: string;
  details?: any;
}
```

{% endtab %}
{% endtabs %}

## Example Usage

```javascript
// Setup request parameters
const timestamp = Date.now().toString();
const body = {
	name: 'My Game Items',
	symbol: 'GITM',
	chainId: '43114', // Avalanche C-Chain
	image: 'https://google.com' // Optional image URL
};

// Generate HMAC signature
const hmac = generateHmacSignature(timestamp, body, secretKey);

// Make the API request
const response = await axios.post(apiEndpoint + '/game/nft/create', body, {
	headers: {
		apikey: apiKey,
		signature: hmac,
		timestamp: timestamp
	}
});

// Process the response
console.log('NFT Creation Task ID:', response.data.taskId);
console.log('Created NFT Contract Address:', response.data.data.nft);
```
