Predictions API
Run predictions using pre-trained AI models
The Spice AI Predictions API is made available for research purposes only. By accessing and using the APIs, in addition to the Spice AI Terms, you agree to these terms and conditions.
Spice AI has trained a number of AI models for predictions on blockchain data. These models come with data included, so all you need to get a glimpse of the future is a simple API request.
Perform prediction with AI model
POST
https://data.spiceai.io/v1/predictions
The model id should be sent in the JSON payload along with an optional Boolean if you want the historical data returned in the response.
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | String | The API Key for your Spice app |
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/json |
X-API-KEY | String | The API Key for your Spice app |
Request Body
Name | Type | Description |
---|---|---|
model_id* | String | The id of a pre-trained model |
return_lookback_data | Bool | Set to true to include the historical lookback data that the model used to make its prediction. |
Sample request payload
Available models
Model Id | Description |
---|---|
| Short horizon forecasting of Uniswap v3 data for the USDC:ETH 0.05% pool |
| Short horizon forecasting of Uniswap v3 data for the ETH:USDT 0.05% pool |
| Short horizon forecasting of Uniswap v3 data for the WBTC/ETH 0.05% pool |
| A new Ethereum gas fee prediction model. |
Requirements and limitations
An API key is required for all predictions.
Last updated