Create Machine

POST/v1/machines

VerifiedPublished by Smol Machines
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "smolmachines",
"path": "/v1/machines",
"method": "POST",
"body": {
"source": {
"type": "",
"reference": ""
},
"resources": {
"cpus": ,
"memoryMb":
},
"ttlSeconds":
}
}'

The price changes with the values you send.

from$0.002044per call

Request-basedThe price depends on what you send. You see it before you run.

You aren't charged for failed calls. A wallet payment for a failed call is refunded.

About this endpoint

Create a new microVM. Minimal example: {"source":{"type":"image","reference":"alpine:3.20"},"resources":{"cpus":1,"memoryMb":512},"ttlSeconds":3600}. Poll GET /v1/machines/{id} until ready is true before running commands.

Body parameters

More from Smol Machines

  1. Execute CommandPOST/v1/machines/{id}/execFree
  2. Session ExecPOST/v1/machines/{id}/sessions/{session_id}/execFree
  3. Download FileGET/v1/machines/{id}/filesFree
  4. Delete MachineDELETE/v1/machines/{id}Free
  5. Create SessionPOST/v1/machines/{id}/sessionsFree
  6. Stop MachinePOST/v1/machines/{id}/stopFree
  7. Run CodePOST/v1/machines/{id}/codeFree
  8. Get MachineGET/v1/machines/{id}Free
  9. Delete SessionDELETE/v1/machines/{id}/sessions/{session_id}Free
  10. Machine EventsGET/v1/machines/{id}/eventsFree
  11. Upload FilePOST/v1/machines/{id}/filesFree
  12. Start MachinePOST/v1/machines/{id}/startFree
All 15 Smol Machines endpoints