# Cloud World Model - Inject Failure into Simulation

> Cloud World Model - Inject Failure into Simulation is a paid API for AI agents from www.cloudworldmodel.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-12).

Inject a specific failure event into a running cloud simulation, causing a named compute node or resource to transition to a failed state.

## Facts

- Endpoint: POST https://www.cloudworldmodel.ai/api/simulations/%7BsimulationId%7D/inject-failure
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-world-model-inject-failure-into-simulation-66d47d87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2_uRHaZgZuMVxQ5iT5O_g

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cloud-world-model-inject-failure-into-simulation-66d47d87 -d '<json body>'
```

Example prompt: Inject a node failure into my Cloud World Model simulation sim-abc123 — take down the web-server-1 node and mark it as failed so I can see how the environment responds.

## When to prefer this

Use this endpoint when you need to deliberately introduce a specific named failure into a running cloud simulation — for example, to test how an RL agent or autoscaler responds to node failure, to run chaos engineering experiments without touching real infrastructure, or to evaluate fault tolerance policies in a controlled simulated environment. Prefer this over the 'kill random node' endpoint when you need deterministic, targeted failure injection rather than random chaos.

## Known failure modes

- simulationId not found — returns 404 with error indicating simulation does not exist
- simulation is not in a running state — returns 400 indicating failure cannot be injected into a stopped or pending simulation
- target node already failed — may return 409 or a no-op event
- malformed request body — returns 400 with schema validation error
- payment not processed or insufficient balance — returns 402 requiring x402 payment
- rate limit exceeded — returns 429

## How this service works

Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.

## Output

Returns a JSON object with two top-level keys: 'event' (containing event ID, human-readable failure message, severity level such as 'warning', and the simulationId) and 'simulation' (containing the updated simulation ID and current resource list reflecting the injected failure state).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "resourceId": {
   "type": "string",
   "description": "**Recommended** — ID of the resource to fail. Takes precedence over resourceName. Use this for reproducible, deterministic fault injection."
  },
  "resourceName": {
   "type": "string",
   "description": "**Recommended** — Human-readable name of the resource to fail (exact match preferred; unambiguous prefix accepted). Ambiguous names return 400 with a candidate list. Omit both fields for a random healthy node (non-deterministic)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "event": {
   "id": "evt-id",
   "message": "Node failure injected: web-server-1 → failed",
   "severity": "warning",
   "simulationId": "sim-abc123"
  },
  "simulation": {
   "id": "sim-abc123",
   "resources": []
  },
  "healthyNodes": [
   {
    "id": "web-1",
    "name": "web-server-1"
   },
   {
    "id": "web-2",
    "name": "web-server-2"
   }
  ],
  "previousHealth": "healthy",
  "resolvedResourceId": "web-1",
  "resolvedResourceName": "web-server-1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-world-model-inject-failure-into-simulation-66d47d87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.cloudworldmodel.ai](https://www.zero.xyz/host/www.cloudworldmodel.ai/llms.txt)
