Base

Any smart contract supporting dapp to dapp request cant initiate an AI task by calling the BAI smart contract and wait to receive the result through a callback.

BAI SMART CONTRACT

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

TESTNET

0x445fB8938858CF4486A9E5AB2Ab31969DB0208B7

See on explorer: https://sepolia.basescan.org/address/0x445fB8938858CF4486A9E5AB2Ab31969DB0208B7

MAINNET Soon...


METHOD AND PARAMETERS

Smart Contract need to send their request to the registerTaskCallback (description: string, type:string, callback: string) 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

Image Generation

Video Summarizer

Discussion

Brainstorm


BAI TOKEN DETAILS

BASE TESTNET

ContractAddress: 0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8
Decimal: 18
Name: BAI

See on explorer: https://sepolia.basescan.org/address/0x10Da043D0B46e43B53B74a88AC60CCC28e2AFDf8

BASE MAINNET

ContractAddress: 0x6a27CD26a373530835B9fE7aC472B3e080070F64
Decimal: 18
Name: BAI

See on explorer: https://basescan.org/address/0x6a27CD26a373530835B9fE7aC472B3e080070F64

Last updated