# Cloud World Model - Infrastructure Optimization

> Cloud World Model - Infrastructure Optimization 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-14).

Runs an optimization job against a cloud infrastructure simulation to minimize cost, maximize performance, or balance both — without provisioning real resources

## Facts

- Endpoint: POST https://www.cloudworldmodel.ai/api/analysis/optimize
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-world-model-infrastructure-optimization-8446a693
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-xU3UJt_JJRvzJ23nItWA

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-infrastructure-optimization-8446a693 -d '<json body>'
```

Example prompt: Run an optimization job on my simulation 'sim-abc123' with the primary goal of minimizing cost — weight cost at 0.7, performance at 0.2, stability at 0.1 — and keep p95 latency under 300ms and cost under $2/hour.

## When to prefer this

Choose this endpoint when you need to find the optimal cloud resource configuration for cost, performance, or balance goals without incurring real cloud spend. It is purpose-built for simulation-based FinOps analysis, pre-deployment optimization, and RL agent training on cloud infrastructure. Prefer it over real cloud cost tools (AWS Cost Explorer, GCP Recommender) when you want risk-free, repeatable optimization experiments across multiple providers (AWS, GCP, Azure, OCI, DigitalOcean) in a controlled environment.

## Known failure modes

- Invalid or non-existent simulationId returns an error — simulation must be created first
- Missing required 'primary' goal field causes validation failure
- Constraint values that conflict (e.g. impossibly low latency + very low cost cap) may result in infeasible optimization jobs
- Payment failure (x402) if insufficient USDC balance — returns 402 before job creation
- Malformed weight values (not summing to meaningful range) may be silently normalized or rejected

## 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 an optimization job object containing a unique job ID, initial status ('pending'), and creation timestamp. The job runs asynchronously; the agent must poll for completion to retrieve the actual optimization recommendations and configuration suggestions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "goals": {
   "type": "object",
   "required": [
    "primary"
   ],
   "properties": {
    "primary": {
     "enum": [
      "minimize_cost",
      "maximize_performance",
      "balance"
     ],
     "type": "string"
    },
    "weights": {
     "type": "object",
     "properties": {
      "cost": {
       "type": "number"
      },
      "stability": {
       "type": "number"
      },
      "performance": {
       "type": "number"
      }
     }
    },
    "constraints": {
     "type": "object",
     "properties": {
      "min_throughput": {
       "type": "number"
      },
      "max_latency_p95": {
       "type": "number"
      },
      "max_cost_per_hour": {
       "type": "number"
      }
     }
    }
   }
  },
  "simulationId": {
   "type": "string",
   "description": "Simulation to optimise"
  },
  "testScenario": {
   "type": "object",
   "properties": {
    "duration_steps": {
     "type": "integer"
    },
    "traffic_pattern": {
     "type": "string"
    },
    "include_failures": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-world-model-infrastructure-optimization-8446a693/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)
