AutoTuneMPC

Constrained nonlinear MPC, tuned over HTTPS.

CasADi and IPOPT solve the constrained nonlinear program. Optuna tunes the weights. One JSON API covers the solve, the tuner, and three registered plants.

Speed bound
Untuned, crosses the bound AutoTuneMPC, stays inside

Illustration of a step response. It is not a recorded solve.

Live validator

These bodies match the current schemas. The three plants are the systems DifferentialDriveRobotTemplate, BatteryPeakShavingTemplate, and RootZoneIrrigationTemplate compile for POST /v1/validate. The solve body is a POST /v1/solve request, which the validator also accepts. Edit the JSON and run it.

Status — · Latency — ms

The formatted JSON response appears here.

Endpoints

POST /v1/solve

$0.02 USD

One constrained MPC step. Send X-API-Key or pay the HTTP 402 challenge.

POST /v1/autotune

$1.50 USD

Queue an Optuna search. The response includes job_id and, when enforcement is on, job_token.

POST /v1/templates/autotune

$2.00 USD

name is differential_drive, battery_peak_shaving, or root_zone_irrigation.

free GET /health returns {"status":"ok"}. free POST /v1/validate checks the plant before a paid solve.

curl -sS -X POST https://api.autotunempc.com/v1/solve \
  -H 'content-type: application/json' \
  -H 'X-API-Key: YOUR_KEY' \
  -d '{"system":{"kind":"nonlinear","name":"double_integrator","parameters":{"dt":0.1},"N":8,"u_min":[-2.0],"u_max":[2.0],"du_min":[-1.0],"du_max":[1.0]},"x0":[0.0,0.0],"x_ref":[0.4,0.0],"Q":[[10.0,0.0],[0.0,2.0]],"R":[[0.1]],"Rd":[[0.1]],"Qf":[[20.0,0.0],[0.0,4.0]]}'

Pricing

Prepaid API Credit Pack

$29.00 USD

One-time payment. No subscription. The key is digital and available as soon as checkout completes.

  • 1000 solve credits. POST /v1/solve spends 1.
  • 4 autotune credits. POST /v1/autotune spends 1.
  • POST /v1/templates/autotune spends 2 autotune credits.

The pack is those two counters. It is not a mixed dollar wallet. After checkout, the success page shows the key.

HTTP 402 for agents

Pay per call when a pack key has no credits left, or when you do not send a key.

  • /v1/solve $0.02 USD
  • /v1/autotune $1.50 USD
  • /v1/templates/autotune $2.00 USD

Contact

Email kaidenfield898@gmail.com.

After checkout, the success page shows the key.