Usage Guide for Anyone to Use Onchain AI Directly as User
As a user, to interact with AI Oracle, you can:
Use AI.ORA.IOarrow-up-right frontend.
Interact with Prompt contract directly on Etherscan
We built an interface for users to interact with Onchain AI Oracle directly.
Go to AI.ORA.IOarrow-up-right
Enter your prompt
Send transaction
See AI inference result
Check out the video tutorialarrow-up-right if you have any question.
Here's the guide to use AI Oracle by interacting with Prompt contract using Etherscan:
In Prompt contract's Read Contract section, call estimateFee with specified modelId.
Read Contract
estimateFee
modelId
In Prompt contract's Write Contract section, call calculateAIResult with fee (converted from wei to ether), prompt, and modelId.
Write Contract
calculateAIResult
prompt
In AIOracle contract, watch for new transaction that fulfills the request you sent.
In Prompt contract's Read Contract section, call getAIResult with previous modelId and prompt to see the AI inference result.
getAIResult
Last updated 1 year ago
Was this helpful?