# 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);
```


---

# 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://dev.plyr.network/api-reference/assets/nfts-erc-721/create-nft.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.
