Reference

Supported AI Models and Deployment Addresses of Onchain AI Oracle.

Models

Llama3 8B Instruct

Model ID

11

Deployed Network

Ethereum & Ethereum Sepolia, Optimism & Optimism Sepolia, Arbitrum & Arbitrum Sepolia, Manta & Manta Sepolia, Linea, Base, Mantle, Polygon PoS

Fee

Mainnet: 0.0003 ETH / 3 MATIC / 3 MNT Testnet: 0.01 ETH

Usage

Input: Prompt (example tx). Output: Inference result (example tx).

OpenLM 1B

Model ID

13

Deployed Network

Ethereum & Ethereum Sepolia

Fee

Mainnet: 0.0003 ETH Testnet: 0.01 ETH

Usage

Input: Prompt (example tx). Output: Inference result (example tx).

OpenLM Score 7B, aka. (A.I.)location Oracle

OpenLM Score 7B, aka. (A.I.)location Oracle

Model ID

14

Deployed Network

Arbitrum & Arbitrum Sepolia, Ethereum Sepolia

Fee

Mainnet: 0.0003 ETH Testnet: 0.01 ETH

Usage

Input: Instruction and prompt with the format of JSON String: {"instruction":"${instruction}","input":"${prompt}"} (example tx). Default instruction (if sending raw prompt only) is You are a helpful assistant. Output: Inference result (example tx).

Note

Input exceeds 7000 characters won't receive callback.

OpenLM Score 7B, aka. (A.I.)location Oracle

Model ID

15

Deployed Network

Arbitrum & Arbitrum Sepolia, Ethereum Sepolia

Fee

Mainnet: 0.0003 ETH Testnet: 0.01 ETH

Usage

Input: Instruction and prompt with the format of JSON String: {"instruction":"${instruction}","input":"${prompt}"} (example tx). Default instruction (if sending raw prompt only) is You are a helpful assistant. Output: Inference result (example tx).

Stable Diffusion v2-1

Model ID

50

Deployed Network

Ethereum & Ethereum Sepolia, Optimism & Optimism Sepolia, Arbitrum & Arbitrum Sepolia, Manta & Manta Sepolia, Linea, Base, Mantle, Polygon PoS

Fee

Mainnet: 0.0003 ETH / 3 MATIC / 3 MNT Testnet: 0.01 ETH

Usage

Input: Prompt (example tx). Output: IPFS hash of inference result (example tx). Access with IPFS gateway, see example.

Stable Diffusion v3

Stable Diffusion v3 Medium

Model ID

503

Deployed Network

Ethereum & Ethereum Sepolia, Optimism & Optimism Sepolia, Arbitrum & Arbitrum Sepolia, Manta & Manta Sepolia, Linea, Base, Mantle, Polygon PoS

Fee

Mainnet: 0.0003 ETH / 3 MATIC / 3 MNT Testnet: 0.01 ETH

Usage

Input: Prompt (example tx). Output: IPFS hash of inference result (example tx). Access with IPFS gateway, see example.

Deployed Addresses

Prompt and SimplePrompt are both example smart contracts interacted with OAO.

For simpler application scenarios (eg. Prompt Engineering based AI like GPTs), you can directly use Prompt or SimplePrompt.

SimplePrompt saves gas by only emitting the event without storing historical data.

Ethereum Mainnet

Ethereum Sepolia

Deprecated contracts: AIOracle, Prompt.

Optimism Mainnet

Optimism Sepolia

Arbitrum Mainnet

Arbitrum Sepolia Testnet

Manta Mainnet

Manta Sepolia Testnet

Linea Mainnet

Base Mainnet

Polygon PoS Mainnet

Mantle Mainnet

Last updated