Upload a SQLite database file
URL to a SQLite database file
SQL queries to execute, numbered 1-5
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run corywilkerson/fx-analyze-me using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "corywilkerson/fx-analyze-me:3621f327fb06a68d8c19f5cb277118d1ed406e90024bd7f570b4a6b3b0177779", { input: { db_url: "https://github.com/corywilkerson/data/raw/refs/heads/main/cubs_stats.db", queries: "1. SELECT * FROM data LIMIT 5;\n2. SELECT COUNT(*) FROM data;\n3. SELECT DISTINCT Player FROM data;\n" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "corywilkerson/fx-analyze-me:3621f327fb06a68d8c19f5cb277118d1ed406e90024bd7f570b4a6b3b0177779", input={ "db_url": "https://github.com/corywilkerson/data/raw/refs/heads/main/cubs_stats.db", "queries": "1. SELECT * FROM data LIMIT 5;\n2. SELECT COUNT(*) FROM data;\n3. SELECT DISTINCT Player FROM data;\n" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "corywilkerson/fx-analyze-me:3621f327fb06a68d8c19f5cb277118d1ed406e90024bd7f570b4a6b3b0177779", "input": { "db_url": "https://github.com/corywilkerson/data/raw/refs/heads/main/cubs_stats.db", "queries": "1. SELECT * FROM data LIMIT 5;\\n2. SELECT COUNT(*) FROM data;\\n3. SELECT DISTINCT Player FROM data;\\n" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2025-04-08T19:53:59.406452Z", "created_at": "2025-04-08T19:53:59.231000Z", "data_removed": false, "error": null, "id": "hmtnzp3rqxrm80cp2vvsqq2vx8", "input": { "db_url": "https://github.com/corywilkerson/data/raw/refs/heads/main/cubs_stats.db", "queries": "1. SELECT * FROM data LIMIT 5;\n2. SELECT COUNT(*) FROM data;\n3. SELECT DISTINCT Player FROM data;\n" }, "logs": null, "metrics": { "predict_time": 0.172298031, "total_time": 0.175452 }, "output": "Query 1 Results:\n Player Position Year Games At_Bats Hits Home_Runs RBIs Batting_Average\n0 Ernie Banks SS/1B 1959 155 589 179 45 143 0.304\n1 Ron Santo 3B 1969 160 576 179 29 123 0.311\n2 Billy Williams LF 1970 161 624 205 42 129 0.329\n3 Fergie Jenkins SP 1971 39 124 25 6 20 0.202\n4 Greg Maddux SP 1992 35 89 15 1 7 0.169\n\nQuery 2 Results:\n COUNT(*)\n0 10\n\nQuery 3 Results:\n Player\n0 Ernie Banks\n1 Ron Santo\n2 Billy Williams\n3 Fergie Jenkins\n4 Greg Maddux\n5 Sammy Sosa\n6 Kris Bryant\n7 Javier Baez\n8 Kyle Hendricks\n9 Anthony Rizzo\n", "started_at": "2025-04-08T19:53:59.234154Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hmtnzp3rqxrm80cp2vvsqq2vx8", "cancel": "https://api.replicate.com/v1/predictions/hmtnzp3rqxrm80cp2vvsqq2vx8/cancel" }, "version": "3621f327fb06a68d8c19f5cb277118d1ed406e90024bd7f570b4a6b3b0177779" }
This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input