{"openapi":"3.0.3","info":{"title":"osModa Spawn API","version":"1.0.0","description":"Spawn AI-managed NixOS servers. Pay with USDC via x402 protocol."},"servers":[{"url":"https://spawn.os.moda"}],"paths":{"/api/v1/plans":{"get":{"summary":"List available plans","responses":{"200":{"description":"Plan list with x402 pricing"}}}},"/api/v1/spawn/test":{"post":{"summary":"Spawn Solo server ($14.99/mo)","description":"1 agent, light tasks — 2 vCPU, 4GB RAM, 40GB SSD. Payment via x402 (USDC on eip155:8453).","x-x402":{"scheme":"exact","price":"$14.99","network":"eip155:8453","payTo":"0xb78476F8e3b9D3f7A0Da8315272B00b26293535a"},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnRequest"}}}},"responses":{"200":{"description":"Server spawned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnResponse"}}}},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"}}}},"/api/v1/spawn/starter":{"post":{"summary":"Spawn Pro server ($34.99/mo)","description":"2-4 agents, real work — 4 vCPU, 8GB RAM, 80GB SSD. Payment via x402 (USDC on eip155:8453).","x-x402":{"scheme":"exact","price":"$34.99","network":"eip155:8453","payTo":"0xb78476F8e3b9D3f7A0Da8315272B00b26293535a"},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnRequest"}}}},"responses":{"200":{"description":"Server spawned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnResponse"}}}},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"}}}},"/api/v1/spawn/developer":{"post":{"summary":"Spawn Team server ($62.99/mo)","description":"5-10 agents, heavy loads — 8 vCPU, 16GB RAM, 160GB SSD. Payment via x402 (USDC on eip155:8453).","x-x402":{"scheme":"exact","price":"$62.99","network":"eip155:8453","payTo":"0xb78476F8e3b9D3f7A0Da8315272B00b26293535a"},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnRequest"}}}},"responses":{"200":{"description":"Server spawned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnResponse"}}}},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"}}}},"/api/v1/spawn/production":{"post":{"summary":"Spawn Scale server ($125.99/mo)","description":"10-20+ agents, full fleet — 16 vCPU, 32GB RAM, 320GB SSD. Payment via x402 (USDC on eip155:8453).","x-x402":{"scheme":"exact","price":"$125.99","network":"eip155:8453","payTo":"0xb78476F8e3b9D3f7A0Da8315272B00b26293535a"},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnRequest"}}}},"responses":{"200":{"description":"Server spawned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnResponse"}}}},"402":{"description":"Payment required (x402)"},"429":{"description":"Rate limited"}}}},"/api/v1/status/{orderId}":{"get":{"summary":"Check server status","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Order status (full details with Bearer token)"}}}}},"components":{"schemas":{"SpawnRequest":{"type":"object","properties":{"region":{"type":"string","enum":["eu-central","eu-north","us-east","us-west"],"default":"eu-central"},"ssh_key":{"type":"string"},"ai_provider":{"type":"string","enum":["anthropic","openai"]},"api_key":{"type":"string"}}},"SpawnResponse":{"type":"object","properties":{"order_id":{"type":"string"},"api_token":{"type":"string"},"plan":{"type":"string"},"price_usd":{"type":"number"},"server_ip":{"type":"string"},"status":{"type":"string"},"status_url":{"type":"string"},"chat_url":{"type":"string"},"ssh":{"type":"string"},"message":{"type":"string"}}}}}}