/v1/models/uploadsCreate a model upload
Reserves the next model version, creates an upload record, and returns a short-lived presigned S3 PUT URL. size_bytes is optional but recommended for early size checks.
Request
curl https://api.flashml.dev/v1/models/uploads \
-H "Authorization: Bearer $FLASHML_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filename": "sentiment-classifier.tar.gz",
"modality": "text",
"task": "classification",
"size_bytes": 44040192
}'Response
{
"upload_id": "upl_ZdvJxLqgP6QeVnkn8SLcWg",
"status": "pending_upload",
"model_key": "user-id/sentiment-classifier-v1.tar.gz",
"version": 1,
"upload_url": "https://...",
"expires_in": 300,
"expires_at": "2026-05-21T16:48:03.120000+00:00",
"method": "PUT"
}