> For the complete documentation index, see [llms.txt](https://docs.blockai.dev/bai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockai.dev/bai/on-chain-dapps/base.md).

# Base

### BAI SMART CONTRACT

To request a task on chain on the Base network, smart contract have to send their request to the following contract:<br>

**TESTNET**

```properties
0x445fB8938858CF4486A9E5AB2Ab31969DB0208B7
```

**See on explorer:** \
[**https://sepolia.basescan.org/address/0x445fB8938858CF4486A9E5AB2Ab31969DB0208B7**](https://sepolia.basescan.org/address/0x445fB8938858CF4486A9E5AB2Ab31969DB0208B7)

**MAINNET**\
Soon...

***

### METHOD AND PARAMETERS

Smart Contract need to send their request to the **registerTaskCallback (**&#x64;escription: string, type:string, callback: strin&#x67;**)** method.

**Description:** \
The prompt or URL (for the video summarizer)

**Type:** \
The AI type (see available type list)

**Callback:** \
The name of the method to call back once the task is resolved. \
The callback have to be on the task initiating contract and it have to accept one parameter as string.

***

### AVAILABLE TASK TYPES

**Simple Text Request:**\
chatgpt, orca, gemini, llama3

**Image Generation:**\
dalle, stable-diffusion

**Video Summarize:**\
youtube

**Discussion:**\
discussion

**Brainstorming:**\
brainstorm

***

### TASK PRICE

Text & Chat

| Model              | Price      |
| ------------------ | ---------- |
| OpenAI ChatGPT 4.0 | 0.07 $BAI  |
| Orca 2.0           | 0.01 $BAI  |
| Google Gemini 1.5  | 0.005 $BAI |
| Llama 3.1          | 0.003 $BAI |

Image Generation

| Model              | Price     |
| ------------------ | --------- |
| OpenAI Dall-E 3    | 0.12 $BAI |
| Stable Diffusion 3 | 0.3 $BAI  |

Video Summarizer

| Model   | Price     |
| ------- | --------- |
| Youtube | 0.07 $BAI |

Discussion

| Model      | Price    |
| ---------- | -------- |
| Discussion | 0.1 $BAI |

Brainstorm

| Model      | Price    |
| ---------- | -------- |
| Brainstorm | 0.1 $BAI |

***

### BAI TOKEN DETAILS

\
**BASE TESTNET**

```properties
ContractAddress: 0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8
Decimal: 18
Name: BAI
```

**See on explorer:** \
[**https://sepolia.basescan.org/address/0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8**](https://sepolia.basescan.org/address/0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8)<br>

**BASE MAINNET**

```properties
ContractAddress: 0x6a27CD26a373530835B9fE7aC472B3e080070F64
Decimal: 18
Name: BAI
```

**See on explorer:** \
[**https://basescan.org/address/0x6a27CD26a373530835B9fE7aC472B3e080070F64**](https://basescan.org/address/0x6a27CD26a373530835B9fE7aC472B3e080070F64)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.blockai.dev/bai/on-chain-dapps/base.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
