# Generate

{% hint style="info" %}
Only 25 WOAI/Zeros can be generated per day!
{% endhint %}

{% hint style="warning" %}
Setting the generator value costs gas. The longer the message, the more gas it costs. This is separate from the minting cost.&#x20;
{% endhint %}

## Generating WOAI/Zero

Generating your WOAI/Zero is a two-step process. Minting gives you the NFT, generating creates its image content. To generate a WOAI/Zero:

### Using the native interface

1. Go to [zero.woai.io](https://zero.woai.io)
2. Connect your wallet
3. Navigate to the "Generate" -tab
4. Enter your token ID (i.e. the number of your NFT (e.g. 1234))
5. Write the text you want DALL-E 2 to convert into an image to the "Generator value" textbox. The maximum length of the generator text is 256 characters (some characters may count as more). Make sure this is the correct text. You can only set the generator value once.
6. Click the "Set value" -button
7. Approve the transaction in your browser
8. Wait for up to 7 days for the metadata and image to sync and show up across the web

### Using Etherscan

1. Go to the ["Write Contract" tab on WOAI/Zero's Etherscan](https://etherscan.io/address/0x0eabed78fd49ad3c0a3e445954f29522025c09a0#writeContract)
2. Find the `setGeneratorValue` -function and open the tab.
3. Enter the ID of your WOAI/Zero NFT in the `tokenId (uint256)` -field
4. Enter the message you want to use for generating the NFT image in the `genVal (string)` -field. The maximum length is 256 characters (some characters may count as more); any longer will fail.
5. Click the "Write" -button and approve the transaction in your wallet.

{% hint style="info" %}
You can check if the generator is paused by calling the `generationPaused` -function! If it returns false you are good to set a generator message!
{% endhint %}

<figure><img src="https://2671857383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I9jiE6PDToY1GRYU5rL%2Fuploads%2FhmMTTaDUE1xCsrowAHGD%2FScreenshot%202022-08-25%20at%209.02.52.png?alt=media&#x26;token=2245a695-ea57-413f-b0b9-2f25f6f9deba" alt=""><figcaption><p>Transaction to set the generator value on Etherscan</p></figcaption></figure>

## Tips for choosing a good generator value

* Describe the style you want, such as "in the style of Picasso", "photographic", or "post-modern"
  * Using the keyword "digital render" creates very sharp images
* Use simple but precise terminology
* Describe all the relevant objects and attributes

{% hint style="info" %}
Looking for inspiration? View existing Zeros on the View -tab!
{% endhint %}

{% embed url="<https://twitter.com/woai_io/status/1562418474059968513>" %}
