Overview
What is FlashML?
FlashML turns a trained ONNX model into a hosted inference API, so students and small teams can use their models without building deployment infrastructure first.
The short version
You bring a trained model exported to ONNX. FlashML handles upload storage, bundle validation, model version tracking, and the hosted runtime endpoint. The result is a model ID you can send inputs to with POST /v1/models/:id/infer.
ONNX is a portable model format that allows trained models from frameworks like PyTorch or TensorFlow to run in a standardized inference runtime.
Problem
FlashML
Result
A concrete example
A text sentiment classifier might start as a small folder with an ONNX model, preprocessing instructions, and class labels.
sentiment-model/
model.onnx
preprocess.json
labels.txttar -czf sentiment-model.tar.gz -C sentiment-model .
flashml upload sentiment-model.tar.gzPOST /v1/models/model_123/infer
{
"text": "The checkout flow was fast and reliable."
}{
"prediction": "positive",
"confidence": 0.9821,
"scores": [
{ "label": "positive", "score": 0.9821 },
{ "label": "negative", "score": 0.0179 }
]
}How the pieces fit together
Step 1
Train or export an ONNX model
Step 2
Package model files
Step 3
Upload to FlashML
Step 4
Call the inference API
ONNX model bundle->FlashML validation->Versioned model ID->Inference APIWhat you bring
A model bundle
.tar.gz archive containing one ONNX model, one preprocess.json, and optional labels or tokenizer files.A task declaration
What FlashML handles
Upload storage
Validation
Versioning
Inference routing
After upload completes
There is no separate deploy button. When the completion request returns a model with status: validated, the model is ready to infer immediately using the returned model ID.
Base URL
https://api.flashml.devAPI version
/v1Main endpoint
POST /v1/models/:id/inferWhere to go next
Run the quickstart
Upload a bundle, complete validation, and call inference.
Open the Colab walkthrough
Train a tiny classifier, export ONNX, package a bundle, upload it, and run inference.
Package your model
See the required files and supported task formats.
Call inference
Review request formats for text and image models.