# BNB Chain

### BAI SMART CONTRACT

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

**TESTNET**

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

**See on explorer:** [**https://testnet.bscscan.com/address/0xA3c6967209A749412c2DBD30EeC01D1e50e7cb55**](https://testnet.bscscan.com/address/0xA3c6967209A749412c2DBD30EeC01D1e50e7cb55)<br>

**MAINNET**

```properties
ContractAddress: soon
Decimal: 18
Name: BAI
```

**See on explorer: 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)

**Task type:** \
The AI task type (see available type list below)

**Callback:** \
The name of the method to call back once the task is resolved. \
The callback have to be on the caller 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

**TESTNET**&#x20;

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

**See on explorer:** [**https://testnet.bscscan.com/address/0x7940D1047A8326Eb1AFF1ec312fec7d28B58D00d**](https://testnet.bscscan.com/address/0x7940D1047A8326Eb1AFF1ec312fec7d28B58D00d)<br>

**MAINNET**

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

**See on explorer:** [0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8](https://bscscan.com/address/0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8)
