# Preview Token

The **Preview Token** endpoints for 1x1 and A4 allow you to simulate the final token design and metadata before performing any on-chain actions. Because Xyxyx uses fully on-chain methods, previewing helps prevent irreversible mistakes in your deployment or mint processes.

By previewing tokens in SVG format, you can catch errors, verify designs, and maintain the integrity of your on-chain data — ensuring a smooth and accurate tokenization process.

***

#### How it works

1. **Select the endpoint**
   * [**Preview 1x1**](/api-endpoints/preview-token/1x1.md)
   * [**Preview A4**](/api-endpoints/preview-token/a4.md)
2. **Submit parameters via JSON**
   * Provide the intended token name, ID, metadata fields, or other relevant settings in a JSON payload.
   * The endpoint processes these parameters exactly as they would be for an on-chain deployment.
3. **Download the SVG preview**
   * The API responds with an SVG file that visually represents how your text-based token would appear on-chain.
   * You can download and inspect this SVG to confirm layout, text, and all embedded metadata.
4. **Validate & adjust**
   * If something looks off in the preview, revise the parameters and repeat.
   * This cycle ensures your final on-chain data will match your intended design.
5. **Proceed to deployment or mint**
   * Once satisfied, use the **Deploy Contract** or **Mint** endpoints with confidence, knowing your token model is verified.


---

# 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://developer.xyxyx.pro/api-endpoints/preview-token.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.
