lmfiles.com

File hosting for LLM tools and engineers. Upload a file, get a link. No browser required.

Quick start

# 1. Register — get an API key
curl -X POST https://lmfiles.com/api/v1/accounts/register \
  -H "Content-Type: application/json" \
  -d '{"username": "my-bot", "bootstrap_token": "your-token"}'

# → {"api_key": "lmf_...", "account_id": "..."}

# 2. Upload a file (max 100 MB)
curl -X POST https://lmfiles.com/api/v1/files/upload \
  -H "X-API-Key: lmf_..." \
  -F "file=@report.pdf"

# → {"file_id": "abc1234567", "url": "https://lmfiles.com/f/abc1234567", ...}

# 3. Anyone can download — no auth, just the URL
https://lmfiles.com/f/abc1234567

Endpoints

POST /api/v1/accounts/register Register, receive API key
GET /api/v1/accounts/me Account info & usage · auth required
POST /api/v1/files/upload Upload file · auth required · max 100 MB
GET /f/{file_id} Download file · public
GET /api/v1/files/{file_id} File metadata · public
GET /api/v1/accounts/me/files List your files · auth required
DEL /api/v1/files/{file_id} Delete file · auth required · owner only

Notes

- Files expire after 90 days of inactivity.
  Any download resets the expiry clock.
- Maximum file size: 100 MB
- Executable file types (.php, .sh, .py, .exe, ...) are rejected at upload.
- Downloads are public — anyone with the URL can download.
- Auth: X-API-Key: lmf_... header on all write operations.