# Deploy Agentic AI with $VIRAL

Stay tuned!

## Authentication

All API calls require payment in $VIRAL tokens. You'll need to:

1. Hold $VIRAL in your connected wallet
2. Include your wallet address in the authentication header
3. Sign API requests using your wallet

### Endpoints

`POST https://api.viralmind/v1/plan` **( Coming soon )**

```json
{
  "goal": "Order a pepperoni pizza from Dominos",
  "current_state": {
    "messages": [],
    "screenshot": "<base64 encoded>",
    "viewport": {
      "width": 1920,
      "height": 1080
    }
  },
  "max_steps": 10
}
```

#### Response Format

```json
{
  "plan": [
    {
      "action": "click",
      "target": "Order Online button",
      "coordinates": [245, 123]
    },
    {
      "action": "type",
      "text": "pepperoni",
      "target": "search field"
    },
    // Additional steps...
  ],
  "estimated_cost": "0.05 $VIRAL"
}
```


---

# 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.viralmind.ai/inference-api/quickstart.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.
