Non-Developer Guides
Easy to use guides for non-developers
Using AI Oracle
As a user, to interact with AI Oracle, you can:
- Use the AI.ORA.IO frontend- view our video tutorial 
- Directly via the Prompt contract on Etherscan 
Via Etherscan
- In Prompt contract's - Read Contractsection, call- estimateFeewith specified- modelId.

- In Prompt contract's - Write Contractsection, call- calculateAIResultwith fee (converted from wei to ether),- prompt, and- modelId.

- In the AI Oracle contract, look for the new transaction that fulfills the request you sent. 

- In Prompt contract's - Read Contractsection, call- getAIResultwith previous- modelIdand- promptto view the AI inference result.

Retrieve Historical AI Inference
If you want to retrieve your historical AI inference (eg. AIGC image), you can find them on blockchain explorer:
- Find your transaction for sending AI request, and enter the "Logs" tab. Example tx: https://etherscan.io/tx/0xfbfdb2efcee23197c5ea8487368a905385c84afdc465cab43bc1ad01da773404#eventlog 
- Access your - requestIdin "Logs" tab Example's case: "1928".
- In OAO's smart contract, look for the - Invoke Callbacktransaction with the same- requestId. Normally, this transaction will be around the same time as the one in step 1. To filter transactions by date, click "Advanced Filter" and then the button near "Age".
- Find the transaction for AI inference result, and enter the "Logs" tab. Example tx: https://etherscan.io/tx/0xfbfdb2efcee23197c5ea8487368a905385c84afdc465cab43bc1ad01da773404#eventlog 
- Access output data. Example's case: "QmecBGR7dD7pRtY48FEKoeLVsmBTLwvdicWRkX9xz2NVvC" which is the IPFS hash that can be accessed with IPFS gateway) 
Last updated
Was this helpful?
