Cloud World Model Understand API

Get AI-generated natural-language explanations, optimization suggestions, and step-by-step troubleshooting for the current simulation state. x402 micro-payment required.

GitHub OpenAPI

Operations 4

POST /simulations/{simulationId}/explain Generate a natural-language explanation of simulation behaviour #
POST /simulations/{simulationId}/optimize Generate AI optimization suggestions for a simulation #
POST /simulations/{simulationId}/troubleshoot Generate AI troubleshooting guidance for a simulation issue #
POST /simulations/{simulationId}/analyze-bottlenecks Generate an AI analysis of performance bottlenecks #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudworldmodel-ai:cloudworldmodel-ai-understand-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudworldmodel-ai-understand-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudworldmodel Ai Understand API
  version: 1.0.0
  contact:
    name: Cloud World Model API Support
    url: https://www.cloudworldmodel.ai
    email: api@cloudworldmodel.ai
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  description: 'Operations tagged Understand across 3 of this provider''s published API definitions: cloudworldmodel-ai-openapi.json, cloudworldmodel-ai-agent-x402-openapi.yml, cloudworldmodel-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.cloudworldmodel.ai/api
  description: Production
- url: http://localhost:5000/api
  description: Local development
tags:
- name: Understand
  description: Get AI-generated natural-language explanations, optimization suggestions, and step-by-step troubleshooting for the current simulation state. x402 micro-payment required.
paths:
  /simulations/{simulationId}/explain:
    x-stability: stable
    post:
      tags:
      - Understand
      summary: Generate a natural-language explanation of simulation behaviour
      description: 'Uses GPT-5 to generate a natural-language explanation of what is currently

        happening in the simulation: why latency is high, why autoscaling is or

        isn''t triggering, what the dominant cost drivers are, etc.


        Set `beginnerMode: true` to receive a simplified, jargon-free explanation

        suitable for cloud newcomers.


        **Authentication:** Requires an API key (`write` scope) or an x402

        micro-payment (3 credits — $0.0030 USDC on Base). Pass

        `Authorization: Bearer ` for API key access, or include a signed

        x402 payment header (no account required). Use

        `GET /api/billing/x402/config` to discover the live price.'
      operationId: explainSimulation
      x-codeSamples:
      - lang: curl
        label: curl
        source: "curl -X POST https://your-production-domain.com/api/simulations/sim-abc123/explain \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"beginnerMode\": false}'\n"
      - lang: Python
        label: Python
        source: "import requests\n\nBASE_URL = \"https://your-production-domain.com/api\"\nAPI_KEY = \"your-api-key\"\n\nresp = requests.post(\n    f\"{BASE_URL}/simulations/sim-abc123/explain\",\n    headers={\"Authorization\": f\"Bearer {API_KEY}\"},\n    json={\"beginnerMode\": False},\n)\nresp.raise_for_status()\nprint(resp.json()[\"explanation\"])\n"
      - lang: Node.js
        label: Node.js
        source: "const BASE_URL = \"https://your-production-domain.com/api\";\nconst API_KEY = \"your-api-key\";\n\nconst resp = await fetch(`${BASE_URL}/simulations/sim-abc123/explain`, {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({ beginnerMode: false }),\n});\nconst data = await resp.json();\nconsole.log(data.explanation);\n"
      security:
      - BearerAuth: []
      - x402: []
      - x402Solana: []
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.003'
      x-x402-call-type: ai.explain
      x-x402-price-usdc: $0.0030
      parameters:
      - name: simulationId
        in: path
        required: true
        schema:
          type: string
        description: Simulation UUID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                beginnerMode:
                  type: boolean
                  default: false
                  description: Return a simplified, jargon-free explanation
                  example: false
            examples:
              expertMode:
                summary: Request an expert-level explanation
                value:
                  beginnerMode: false
              beginnerMode:
                summary: Request a beginner-friendly, jargon-free explanation
                value:
                  beginnerMode: true
      responses:
        '200':
          description: AI explanation
          content:
            application/json:
              schema:
                type: object
                properties:
                  explanation:
                    type: string
                    description: Natural-language explanation of simulation behaviour
                    example: Your simulation is experiencing high CPU utilization (82%) because the traffic load of 8 000 RPS exceeds the capacity of the current 3-node cluster. The autoscaler has not yet triggered because CPU has not been above the 75% threshold for the required 2-step cooldown window.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/X402PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: Rate limit exceeded
          headers:
            Retry-After:
              description: Seconds until the rate-limit window resets
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://www.cloudworldmodel.ai/api
      description: Production
    - url: http://localhost:5000/api
      description: Local development
  /simulations/{simulationId}/optimize:
    x-stability: stable
    post:
      tags:
      - Understand
      summary: Generate AI optimization suggestions for a simulation
      description: 'Uses GPT-5 to analyse the simulation''s current resource configuration and

        metric history and return prioritised suggestions for reducing cost,

        improving reliability, or increasing performance.


        Set `beginnerMode: true` for simplified language.


        **Authentication:** Requires an API key (`write` scope) or an x402

        micro-payment (3 credits — $0.0030 USDC on Base). Pass

        `Authorization: Bearer ` for API key access, or include a signed

        x402 payment header (no account required). Use

        `GET /api/billing/x402/config` to discover the live price.'
      operationId: optimizeSimulation
      x-codeSamples:
      - lang: curl
        label: curl
        source: "curl -X POST https://your-production-domain.com/api/simulations/sim-abc123/optimize \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"beginnerMode\": false}'\n"
      - lang: Python
        label: Python
        source: "import requests\n\nBASE_URL = \"https://your-production-domain.com/api\"\nAPI_KEY = \"your-api-key\"\n\nresp = requests.post(\n    f\"{BASE_URL}/simulations/sim-abc123/optimize\",\n    headers={\"Authorization\": f\"Bearer {API_KEY}\"},\n    json={\"beginnerMode\": False},\n)\nresp.raise_for_status()\nprint(resp.json()[\"suggestions\"])\n"
      - lang: Node.js
        label: Node.js
        source: "const BASE_URL = \"https://your-production-domain.com/api\";\nconst API_KEY = \"your-api-key\";\n\nconst resp = await fetch(`${BASE_URL}/simulations/sim-abc123/optimize`, {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({ beginnerMode: false }),\n});\nconst data = await resp.json();\nconsole.log(data.suggestions);\n"
      security:
      - BearerAuth: []
      - x402: []
      - x402Solana: []
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.003'
      x-x402-call-type: ai.optimize
      x-x402-price-usdc: $0.0030
      parameters:
      - name: simulationId
        in: path
        required: true
        schema:
          type: string
        description: Simulation UUID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                beginnerMode:
                  type: boolean
                  default: false
                  description: Return simplified suggestions
            examples:
              expertOptimize:
                summary: Request expert-level optimization suggestions
                value:
                  beginnerMode: false
              beginnerOptimize:
                summary: Request beginner-friendly optimization suggestions
                value:
                  beginnerMode: true
      responses:
        '200':
          description: AI optimisation suggestions
          content:
            application/json:
              schema:
                type: object
                properties:
                  suggestions:
                    type: string
                    description: Prioritised optimisation recommendations
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/X402PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: Rate limit exceeded
          headers:
            Retry-After:
              description: Seconds until the rate-limit window resets
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://www.cloudworldmodel.ai/api
      description: Production
    - url: http://localhost:5000/api
      description: Local development
  /simulations/{simulationId}/troubleshoot:
    x-stability: stable
    post:
      tags:
      - Understand
      summary: Generate AI troubleshooting guidance for a simulation issue
      description: 'Accepts a plain-text description of a problem (e.g. "latency spikes every

        30 seconds") and uses GPT-5 to analyse the simulation''s current state and

        event history to produce step-by-step troubleshooting guidance.


        **Authentication:** Requires an API key (`write` scope) or an x402

        micro-payment (3 credits — $0.0030 USDC on Base). Pass

        `Authorization: Bearer ` for API key access, or include a signed

        x402 payment header (no account required). Use

        `GET /api/billing/x402/config` to discover the live price.'
      operationId: troubleshootSimulation
      x-codeSamples:
      - lang: curl
        label: curl
        source: "curl -X POST https://your-production-domain.com/api/simulations/sim-abc123/troubleshoot \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"issue\": \"Latency spikes every 30 seconds and error rate climbs to 5% during spikes\"}'\n"
      - lang: Python
        label: Python
        source: "import requests\n\nBASE_URL = \"https://your-production-domain.com/api\"\nAPI_KEY = \"your-api-key\"\n\nresp = requests.post(\n    f\"{BASE_URL}/simulations/sim-abc123/troubleshoot\",\n    headers={\"Authorization\": f\"Bearer {API_KEY}\"},\n    json={\"issue\": \"Latency spikes every 30 seconds and error rate climbs to 5% during spikes\"},\n)\nresp.raise_for_status()\nprint(resp.json()[\"guidance\"])\n"
      - lang: Node.js
        label: Node.js
        source: "const BASE_URL = \"https://your-production-domain.com/api\";\nconst API_KEY = \"your-api-key\";\n\nconst resp = await fetch(`${BASE_URL}/simulations/sim-abc123/troubleshoot`, {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    issue: \"Latency spikes every 30 seconds and error rate climbs to 5% during spikes\",\n  }),\n});\nconst data = await resp.json();\nconsole.log(data.guidance);\n"
      security:
      - BearerAuth: []
      - x402: []
      - x402Solana: []
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.003'
      x-x402-call-type: ai.troubleshoot
      x-x402-price-usdc: $0.0030
      parameters:
      - name: simulationId
        in: path
        required: true
        schema:
          type: string
        description: Simulation UUID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - issue
              properties:
                issue:
                  type: string
                  description: Plain-text description of the problem to investigate
                  example: Latency spikes every 30 seconds and error rate climbs to 5% during spikes
            examples:
              latencySpike:
                summary: Investigate periodic latency spikes
                value:
                  issue: Latency spikes every 30 seconds and error rate climbs to 5% during spikes
              autoscalingStuck:
                summary: Debug why autoscaling is not triggering
                value:
                  issue: CPU is consistently above 80% but autoscaler has not added instances in the last 10 steps
      responses:
        '200':
          description: Troubleshooting guidance
          content:
            application/json:
              schema:
                type: object
                properties:
                  guidance:
                    type: string
                    description: Step-by-step troubleshooting guidance
        '400':
          description: Missing issue description
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/X402PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: Rate limit exceeded
          headers:
            Retry-After:
              description: Seconds until the rate-limit window resets
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://www.cloudworldmodel.ai/api
      description: Production
    - url: http://localhost:5000/api
      description: Local development
  /simulations/{simulationId}/analyze-bottlenecks:
    x-stability: stable
    post:
      tags:
      - Understand
      summary: Generate an AI analysis of performance bottlenecks
      description: 'Uses GPT-5 to identify performance bottlenecks in the simulation based on

        the current resource configuration, metric history, and event log.

        Returns a detailed analysis and, where applicable, a DigitalOcean-specific

        migration recommendation.


        Set `beginnerMode: true` for simplified language.


        **Authentication:** Requires an API key (`write` scope) or an x402

        micro-payment (3 credits — $0.0030 USDC on Base). Pass

        `Authorization: Bearer ` for API key access, or include a signed

        x402 payment header (no account required). Use

        `GET /api/billing/x402/config` to discover the live price.'
      operationId: analyzeBottlenecks
      x-codeSamples:
      - lang: curl
        label: curl
        source: "curl -X POST https://your-production-domain.com/api/simulations/sim-abc123/analyze-bottlenecks \\\n  -H \"Authorization: Bearer $API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"beginnerMode\": false}'\n"
      - lang: Python
        label: Python
        source: "import requests\n\nBASE_URL = \"https://your-production-domain.com/api\"\nAPI_KEY = \"your-api-key\"\n\nresp = requests.post(\n    f\"{BASE_URL}/simulations/sim-abc123/analyze-bottlenecks\",\n    headers={\"Authorization\": f\"Bearer {API_KEY}\"},\n    json={\"beginnerMode\": False},\n)\nresp.raise_for_status()\ndata = resp.json()\nprint(data[\"analysis\"])\nif data.get(\"doRecommendation\"):\n    print(\"DO recommendation:\", data[\"doRecommendation\"])\n"
      - lang: Node.js
        label: Node.js
        source: "const BASE_URL = \"https://your-production-domain.com/api\";\nconst API_KEY = \"your-api-key\";\n\nconst resp = await fetch(`${BASE_URL}/simulations/sim-abc123/analyze-bottlenecks`, {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({ beginnerMode: false }),\n});\nconst data = await resp.json();\nconsole.log(data.analysis);\nif (data.doRecommendation) {\n  console.log(\"DO recommendation:\", data.doRecommendation);\n}\n"
      security:
      - BearerAuth: []
      - x402: []
      - x402Solana: []
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.003'
      x-x402-call-type: ai_bottleneck
      x-x402-price-usdc: $0.0030
      parameters:
      - name: simulationId
        in: path
        required: true
        schema:
          type: string
        description: Simulation UUID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                beginnerMode:
                  type: boolean
                  default: false
                  description: Return simplified analysis
            examples:
              expertAnalysis:
                summary: Request expert-level bottleneck analysis
                value:
                  beginnerMode: false
              beginnerAnalysis:
                summary: Request beginner-friendly bottleneck analysis
                value:
                  beginnerMode: true
      responses:
        '200':
          description: Bottleneck analysis
          content:
            application/json:
              schema:
                type: object
                properties:
                  analysis:
                    type: string
                    description: Detailed bottleneck analysis
                  doRecommendation:
                    nullable: true
                    description: DigitalOcean-specific migration/right-sizing recommendation (if applicable)
                    oneOf:
                    - type: 'null'
                    - type: object
                      properties:
                        suggestedDropletSize:
                          type: string
                          description: Recommended Droplet size slug (e.g. "s-2vcpu-4gb")
                        estimatedHourlyRate:
                          type: number
                          description: Hourly rate for the suggested Droplet size in USD
                        estimatedMonthlyCost:
                          type: number
                          description: Estimated monthly cost for all Droplets in USD
                        currentHourlyCost:
                          type: number
                          description: Current compute-tier hourly cost (compute resources only — see savingsBasis)
                        estimatedHourlySavings:
                          type: number
                          description: Estimated hourly savings vs current compute-tier cost
                        estimatedMonthlySavings:
                          type: number
                          description: Estimated monthly savings in USD
                        savingsPercent:
                          type: number
                          description: Savings as a percentage of the compute-tier baseline (0–70)
                        savingsIsComputed:
                          type: boolean
                          description: True when savings are derived from real cost data rather than a default estimate
                        savingsBasis:
                          type: string
                          enum:
                          - compute-only
                          description: Indicates that savings are computed against compute-tier costs only; non-compute resources (managed DB, cache, load balancer) are excluded from the baseline
                        reason:
                          type: string
                          enum:
                          - right-sizing
                          - migration
                          - scale-out
                          description: The primary recommendation category
                        numDroplets:
                          type: number
                          description: Suggested number of Droplets
                        reversibilityTier:
                          type: string
                          enum:
                          - instant
                          - minutes
                          - hours
                          - days
                          description: How hard this recommendation is to reverse — cross-provider migrations classify as "days"
                        reversibilityReason:
                          type: string
                          description: Human-readable explanation of the dominant reversibility factor
                        estimatedMinutesMin:
                          type: number
                          description: Lower bound of estimated rollback time in minutes
                        estimatedMinutesMax:
                          type: number
                          description: Upper bound of estimated rollback time in minutes
                        basis:
                          type: string
                          enum:
                          - rule_based
                          description: Always "rule_based" — reversibility is classified deterministically, not via LLM
                      required:
                      - suggestedDropletSize
                      - estimatedHourlyRate
                      - estimatedMonthlyCost
                      - currentHourlyCost
                      - estimatedHourlySavings
                      - estimatedMonthlySavings
                      - savingsPercent
                      - savingsIsComputed
                      - savingsBasis
                      - reason
                      - numDroplets
                      - reversibilityTier
                      - reversibilityReason
                      - estimatedMinutesMin
                      - estimatedMinutesMax
                      - basis
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/X402PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://www.cloudworldmodel.ai/api
      description: Production
    - url: http://localhost:5000/api
      description: Local development
components:
  responses:
    Unauthorized:
      description: Authentication required or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    X402PaymentRequired:
      description: 'Payment required — the endpoint is metered and no API key was provided.


        The response body follows the [x402 v2 protocol](https://x402.org) and describes

        one or more USDC payment options that the caller can select before retrying the request.

        Base is always the first option and uses `X-PAYMENT`. When an `accepts` entry for Solana

        is present, it is an additional USDC-SPL option that uses `PAYMENT-SIGNATURE` and its

        `extra.feePayer` value. The server verifies either payment through the PayAI facilitator

        at `https://facilitator.payai.network`.


        The `PAYMENT-REQUIRED` response header carries this entire JSON body as a

        base64-encoded string for protocol-aware clients.


        Call `GET /api/billing/x402/config` to retrieve the current price table and wallet

        address and `paymentOptions` before constructing a payment.

        '
      content:
        application/json:
          schema:
            type: object
            required:
            - x402Version
            - error
            - resource
            - accepts
            properties:
              x402Version:
                type: integer
                example: 2
              error:
                type: string
                example: Payment required. Send an X-PAYMENT header containing a signed USDC payment on Base (x402 protocol).
              resource:
                type: object
                required:
                - url
                - description
                - mimeType
                properties:
                  url:
                    type: string
                    description: Full URL of the endpoint being paid for.
                  description:
                    type: string
                    description: Human-readable description of the metered call.
                  mimeType:
                    type: string
                    example: application/json
              accepts:
                type: array
                items:
                  type: object
                  required:
                  - scheme
                  - network
                  - amount
                  - payTo
                  - maxTimeoutSeconds
                  - asset
                  properties:
                    scheme:
                      type: string
                      example: exact
                    network:
                      type: string
                      description: CAIP-2 network identifier.
                      example: eip155:8453
                    amount:
                      type: string
                      description: Payment amount in USDC atomic units (6-decimal integer string).
                      example: '5000'
                    payTo:
                      type: string
                      description: Recipient wallet address on the selected network.
                    maxTimeoutSeconds:
                      type: integer
                      example: 300
                    asset:
                      type: string
                      description: USDC contract or mint address on the selected network.
                      example: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                    extra:
                      type: object
                      description: 'Network-specific x402 details. Solana options include

                        `feePayer`, the PayAI wallet that sponsors the transaction fee.

                        '
              extensions:
                type: object
                description: Optional protocol extensions (empty object in standard use).
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Error message
          example: Simulation not found
        details:
          type: array
          description: Detailed validation errors (for 400 responses)
          items:
            type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or Wallet Session JWT
      description: 'API key or wallet-session JWT authentication using Bearer tokens in the Authorization header.


        **How to authenticate:**

        1. Create an API key using POST /api/keys

        2. Include the key in the Authorization header: `Bearer cwm_live_<your_key>`

        3. All RL environment endpoints require authentication


        **Rate Limits:**

        - Default: 1000 requests/hour per key

        - Configurable per key

        - Returns 429 when exceeded

        '
    UiSessionCookie:
      type: apiKey
      in: cookie
      name: cwm_ui_session
      description: 'HttpOnly browser-workspace session cookie issued by

        `POST /api/ui/simulations`. It authorizes UI mutations for simulations

        owned by that browser workspace.

        '
    x402:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: "x402 v2 Base micropayment option. Select the Base entry from\n`GET /api/billing/x402/config` `paymentOptions`, then send its signed USDC\nmicro-payment in the `X-PAYMENT` header to get full access to the metered\nendpoint in a single round-trip — no account, no API key, no sign-up required.\n\n**402 → pay → retry loop:**\n1. Call the endpoint without an `X-PAYMENT` header.\n2. Receive a `402 Payment Required` response. The body is a\n   standard JSON `PaymentRequired` object. The same payload is also\n   echoed as a base64-encoded string in the `PAYMENT-REQUIRED`\n   response header for clients that cannot access the body.\n3. Decode the `PaymentRequired` body (or the `PAYMENT-REQUIRED`\n   header) to read the exact `payTo` wallet,\n   USDC amount, network, and facilitator URL.\n4. Construct and sign the payment with your x402 client library.\n5. Retry the Base request with the `X-PAYMENT` header — the server\n   verifies via `https://facilitator.payai.network` and responds `200`.\n\n**Optional Solana:** When `paymentOptions` advertises a Solana entry, callers\nmay instead select it and use `PAYMENT-SIGNATURE`. Solana is an additional\noption; use `X-PAYMENT` for the Base option shown by this security scheme.\n\n**Discovery:** `GET /api/billing/x402/config` returns the live `payTo`\naddress, canonical `paymentOptions`, per-call-type USDC amounts, facilitator\nURL, and the credits-per-USDC conversion rate. Always fetch this before\nhardcoding any amounts or a payment header.\n\n**Price range:** $0.0030 per 3-credit call — $0.0050 per 5-credit\ncall (see `x-x402-price-usdc` on each\noperation for the exact amount).\n\n**Facilitator:** `https://facilitator.payai.network` (PayAI-operated,\nverifies the advertised Base and optional Solana options).\n"
    x402Solana:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: 'Optional x402 v2 Solana payment alternative. Use this security option only

        when `GET /api/billing/x402/config` `paymentOptions` advertises a Solana

        network, then send its signed Solana USDC payment payload in the

        `PAYMENT-SIGNATURE` header. Include the option''s `feePayer` detail when

        constructing the transaction.


        For the primary Base payment option, select the `x402` security option

        instead and send its signed payment payload in the `X-PAYMENT` header.

        '
x-refined-from:
- cloudworldmodel-ai-openapi.json
- cloudworldmodel-ai-agent-x402-openapi.yml
- cloudworldmodel-ai-openapi.yml