# API

Our API provides a set of endpoints to interact with ai and the blockchain:

* Generate Endpoints: `https://api.aiis.dev/v2/generations/generate`\
  (This endpoint combines text and image generation into a single call and automatically creates a generation record.)
* List Shared Generations: `https://api.aiis.dev/v2/generations/list`
* Get Generation by ID: `https://api.aiis.dev/v2/generations/:id`
* **Deploy Endpoint:**\
  Deploy a new SPL token with associated metadata and bonding curve initialization.
  * **Deploy Token:** `https://api.aiis.dev/v2/deploy`
* **Swap Endpoint:**\
  Prepare unsigned transactions for token swaps on Solana using the bonding curve.
  * **Swap Transaction:** `https://api.aiis.dev/v2/swap/prepare`
* **Token Endpoint:**\
  Manage and retrieve token data recorded on the blockchain.

  * **Token Count:**&#x20;

  `https://api.aiis.dev/v2/token/count`

  * **Token List:**&#x20;

  `https://api.aiis.dev/v2/token/list`

These endpoints encapsulate all necessary blockchain logic, allowing any user to provide a few basic parameters and receive unsigned transactions on the client and deployment-ready ai token parameters.


---

# 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://docs.aiis.dev/developers/api.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.
