# CloudWorldModel Autoscaling Threshold Optimizer

> CloudWorldModel Autoscaling Threshold Optimizer is a paid API for AI agents from www.cloudworldmodel.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Analyzes traffic forecast and simulation results to recommend optimal autoscaling thresholds for cloud infrastructure.

## Facts

- Endpoint: POST https://www.cloudworldmodel.ai/api/predictions/optimize-thresholds
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloudworldmodel-autoscaling-threshold-optimizer-65fda03f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BK_ke-TtRnEh2HtIQDgYF

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 cloudworldmodel-autoscaling-threshold-optimizer-65fda03f -d '<json body>'
```

Example prompt: Based on my simulation ID 'sim-20240601' and a traffic forecast peaking at 8500 RPS with an average of 2200 RPS across these hourly data points, run 150 simulation steps and tell me what autoscaling thresholds I should configure.

## When to prefer this

Use this endpoint when you have an active cloud simulation and traffic forecast data and need data-driven autoscaling threshold recommendations. It is distinct from static rule-based autoscaling configs because it incorporates simulation dynamics and RL-style optimization from CloudWorldModel's hybrid engine, making it especially useful after running traffic spike or node-kill simulations to stress-test threshold candidates.

## Known failure modes

- Invalid simulationId returns 404 or error indicating simulation not found
- Missing required trafficForecast fields (name, dataPoints) returns 400 bad request
- Malformed dataPoints array (missing timestamp or rps) causes validation error
- Payment not included or insufficient USDC triggers 402 Payment Required
- testSteps value out of accepted range may return an error or be clamped to default
- Simulation not yet advanced enough to produce meaningful threshold recommendations

## 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 recommended autoscaling threshold values derived from the simulation run — including scale-up and scale-down trigger points calibrated to the provided traffic forecast and RPS patterns.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "testSteps": {
   "type": "number",
   "description": "Simulation steps to run (default 100)"
  },
  "simulationId": {
   "type": "string"
  },
  "trafficForecast": {
   "type": "object",
   "required": [
    "name",
    "dataPoints"
   ],
   "properties": {
    "name": {
     "type": "string"
    },
    "avgRPS": {
     "type": "number"
    },
    "peakRPS": {
     "type": "number"
    },
    "dataPoints": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "timestamp",
       "rps"
      ],
      "properties": {
       "rps": {
        "type": "number"
       },
       "label": {
        "type": "string"
       },
       "timestamp": {
        "type": "number"
       }
      }
     }
    },
    "description": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "job": {
   "id": "job-id",
   "type": "optimize_thresholds",
   "status": "pending",
   "createdAt": "2024-01-01T00:00:00.000Z"
  },
  "message": "Validation job created and processing started"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloudworldmodel-autoscaling-threshold-optimizer-65fda03f/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)
