{"uid":"cap_-xU3UJt_JJRvzJ23nItWA","slug":"cloud-world-model-infrastructure-optimization-8446a693","name":"Cloud World Model - Infrastructure Optimization","description":"Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.","url":"https://www.cloudworldmodel.ai/api/analysis/optimize","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"job":{"id":"job-id","status":"pending","createdAt":"2024-01-01T00:00:00.000Z"},"message":"Optimization job created and processing started"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__5ZjLwQHM5eki3ZjoOgtJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs an optimization job against a cloud infrastructure simulation to minimize cost, maximize performance, or balance both — without provisioning real resources","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"FinOps cost-cut without real deployment","prompt":"I want to squeeze the cost out of my cloud simulation 'sim-prod-42' — set the primary goal to minimize_cost, weight cost at 0.8 and stability at 0.2, and cap spending at $1.50 per hour. Run the optimization and tell me what job was created."},{"title":"Performance-first optimization under latency SLA","prompt":"Optimize simulation 'sim-perf-99' for maximum performance — I need p95 latency to stay under 150ms and throughput above 5000 req/s, and I don't care much about cost. Use a balance weight of 0.8 for performance."},{"title":"Balanced cost-performance RL training scenario","prompt":"For my cloud simulation 'sim-train-007', run a balanced optimization with equal weights on cost, performance, and stability, inject failures during the test, and use a traffic pattern of 'spike' over 100 steps — I want to see how the system holds up before I train the agent on it."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:33:52.279Z","isFirstParty":false}