> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iotools.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Project Cash Flow Calculator API

> Forecast a construction or contract project's cash flow: cost and revenue S-curves, advance payment, retention, and client payment delay — with the peak funding requirement, the month it hits, and a cumulative month-by-month schedule.

[Try Project Cash Flow Calculator in your browser →](https://iotools.cloud/tool/project-cash-flow-calculator/)



## OpenAPI

````yaml https://api.iotools.cloud/v1/openapi post /v1/tool/project-cash-flow-calculator
openapi: 3.1.0
info:
  title: iotools.cloud API
  version: 1.0.0
  description: >-
    Run any iotools.cloud tool over HTTP.


    Authenticate with `Authorization: Bearer iot_live_…`.


    **Only `POST /v1/tool/{slug}` costs credits.** Every GET here — the catalog,
    a tool's schema, your balance — is free. A tool call is charged its own
    weight or your plan's per-call minimum, whichever is larger;
    `x-iotools-credit-cost` on each operation is quoted at the free-tier
    minimum, and `GET /v1/tools/list` returns the exact figure for your key.
    `GET /v1/me/credits` reports what you have left, and `GET /v1/me/usage`
    reports what it went on.


    Failures are RFC 9457 problem documents — branch on `code`.
servers:
  - url: https://api.iotools.cloud
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Catalog
    description: Find a tool and read its contract. Free.
  - name: Converters
    description: >-
      Convert between formats, encodings, and units — Base64, CSV and JSON,
      timestamps, and more. Fast, free, and processed right in your browser.
  - name: Formatters
    description: >-
      Format, beautify, minify, and validate code and data — JSON, HTML, CSS,
      SQL, and regex. Clean up messy input in one click, with nothing to upload.
  - name: Generators
    description: >-
      Generate exactly what you need and on demand — passwords, UUIDs, QR codes,
      hashes, random numbers, and more. Secure, instant, and free.
  - name: Calculators
    description: >-
      Crunch the numbers fast — from everyday math to specialized conversions
      and unit work. Free online calculators that run entirely in your browser.
  - name: Editors
    description: >-
      Edit and transform text, code, and images with quick, focused editors that
      run entirely in your browser — nothing to install, and no sign-up needed.
  - name: Utilities
    description: >-
      Everyday developer and web utilities — DNS and IP lookups, redirect and
      certificate checkers, and other quick diagnostics. Free and
      privacy-friendly.
  - name: Account
    description: Your key's allowance, limits and usage history.
paths:
  /v1/tool/project-cash-flow-calculator:
    post:
      tags:
        - Calculators
      summary: Project Cash Flow Calculator
      description: >-
        Forecast a construction or contract project's cash flow: cost and
        revenue S-curves, advance payment, retention, and client payment delay —
        with the peak funding requirement, the month it hits, and a cumulative
        month-by-month schedule.


        [Try Project Cash Flow Calculator in your browser
        →](https://iotools.cloud/tool/project-cash-flow-calculator/)
      operationId: run_project_cash_flow_calculator
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                contractValue:
                  type: number
                  description: Contract Value (Revenue)
                  minimum: 0
                  maximum: 99999999999
                totalCost:
                  type: number
                  description: Total Project Cost
                  minimum: 0
                  maximum: 99999999999
                duration:
                  type: number
                  description: Duration (months)
                  minimum: 1
                  maximum: 60
                costProfile:
                  enum:
                    - scurve
                    - even
                    - front
                    - back
                  description: Cost Profile
                revenueProfile:
                  enum:
                    - scurve
                    - even
                    - front
                    - back
                  description: Progress Billing Profile
                advancePct:
                  type: number
                  description: Advance Payment (%)
                  minimum: 0
                  maximum: 100
                retentionPct:
                  type: number
                  description: Retention (%)
                  minimum: 0
                  maximum: 100
                retentionLag:
                  type: number
                  description: Retention Release (months after completion)
                  minimum: 0
                  maximum: 36
                paymentDelay:
                  type: number
                  description: Client Payment Delay (months)
                  minimum: 0
                  maximum: 6
                availableFunding:
                  type: number
                  description: Available Funding / Credit Line
                  minimum: 0
                  maximum: 99999999999
                currency:
                  enum:
                    - USD
                    - EUR
                    - GBP
                    - AUD
                    - JPY
                    - CAD
                  description: Currency
              required: []
            examples:
              12_month_build_with_front_loaded_costs:
                summary: 12-month build with front-loaded costs
                value:
                  contractValue: '1000000'
                  totalCost: '900000'
                  duration: '12'
                  costProfile: front
                  revenueProfile: scurve
                  advancePct: '0'
                  retentionPct: '5'
                  retentionLag: '3'
                  paymentDelay: '1'
                  availableFunding: '50000'
                  currency: USD
              6_month_even_job_10_retention:
                summary: 6-month even job, 10% retention
                value:
                  contractValue: '1000000'
                  totalCost: '850000'
                  duration: '6'
                  costProfile: even
                  revenueProfile: even
                  advancePct: '10'
                  retentionPct: '10'
                  retentionLag: '2'
                  paymentDelay: '2'
                  availableFunding: '0'
                  currency: EUR
      responses:
        '200':
          description: Tool output
          content:
            application/json:
              examples:
                12_month_build_with_front_loaded_costs:
                  summary: 12-month build with front-loaded costs
                  value:
                    tool: project-cash-flow-calculator
                    tool_version: 1.0.2
                    outputs:
                      summary:
                        - metric: Contract Value
                          value: $1,000,000.00
                        - metric: Total Project Cost
                          value: $900,000.00
                        - metric: Expected Profit
                          value: $100,000.00 (10.0%)
                        - metric: Peak Funding Requirement
                          value: $351,562.50
                        - metric: Peak Funding Month
                          value: '4'
                        - metric: Cash Break-even Month
                          value: '12'
                        - metric: Funding Status
                          value: Shortfall of $301,562.50
                        - metric: Final Cumulative Cash
                          value: $100,000.00
                      schedule:
                        - month: '0'
                          costs-paid: $0.00
                          work-billed: $0.00
                          retention-held: $0.00
                          advance-recovered: $0.00
                          cash-received: $0.00
                          net-cash-flow: $0.00
                          cumulative: $0.00
                        - month: '1'
                          costs-paid: $143,750.00
                          work-billed: $19,675.93
                          retention-held: $983.80
                          advance-recovered: $0.00
                          cash-received: $0.00
                          net-cash-flow: '-$143,750.00'
                          cumulative: '-$143,750.00'
                        - month: '2'
                          costs-paid: $131,250.00
                          work-billed: $54,398.15
                          retention-held: $2,719.91
                          advance-recovered: $0.00
                          cash-received: $18,692.13
                          net-cash-flow: '-$112,557.87'
                          cumulative: '-$256,307.87'
                        - month: '3'
                          costs-paid: $118,750.00
                          work-billed: $82,175.93
                          retention-held: $4,108.80
                          advance-recovered: $0.00
                          cash-received: $51,678.24
                          net-cash-flow: '-$67,071.76'
                          cumulative: '-$323,379.63'
                        - month: '4'
                          costs-paid: $106,250.00
                          work-billed: $103,009.26
                          retention-held: $5,150.46
                          advance-recovered: $0.00
                          cash-received: $78,067.13
                          net-cash-flow: '-$28,182.87'
                          cumulative: '-$351,562.50'
                        - month: '5'
                          costs-paid: $93,750.00
                          work-billed: $116,898.15
                          retention-held: $5,844.91
                          advance-recovered: $0.00
                          cash-received: $97,858.80
                          net-cash-flow: $4,108.80
                          cumulative: '-$347,453.70'
                        - month: '6'
                          costs-paid: $81,250.00
                          work-billed: $123,842.59
                          retention-held: $6,192.13
                          advance-recovered: $0.00
                          cash-received: $111,053.24
                          net-cash-flow: $29,803.24
                          cumulative: '-$317,650.46'
                        - month: '7'
                          costs-paid: $68,750.00
                          work-billed: $123,842.59
                          retention-held: $6,192.13
                          advance-recovered: $0.00
                          cash-received: $117,650.46
                          net-cash-flow: $48,900.46
                          cumulative: '-$268,750.00'
                        - month: '8'
                          costs-paid: $56,250.00
                          work-billed: $116,898.15
                          retention-held: $5,844.91
                          advance-recovered: $0.00
                          cash-received: $117,650.46
                          net-cash-flow: $61,400.46
                          cumulative: '-$207,349.54'
                        - month: '9'
                          costs-paid: $43,750.00
                          work-billed: $103,009.26
                          retention-held: $5,150.46
                          advance-recovered: $0.00
                          cash-received: $111,053.24
                          net-cash-flow: $67,303.24
                          cumulative: '-$140,046.30'
                        - month: '10'
                          costs-paid: $31,250.00
                          work-billed: $82,175.93
                          retention-held: $4,108.80
                          advance-recovered: $0.00
                          cash-received: $97,858.80
                          net-cash-flow: $66,608.80
                          cumulative: '-$73,437.50'
                        - month: '11'
                          costs-paid: $18,750.00
                          work-billed: $54,398.15
                          retention-held: $2,719.91
                          advance-recovered: $0.00
                          cash-received: $78,067.13
                          net-cash-flow: $59,317.13
                          cumulative: '-$14,120.37'
                        - month: '12'
                          costs-paid: $6,250.00
                          work-billed: $19,675.93
                          retention-held: $983.80
                          advance-recovered: $0.00
                          cash-received: $51,678.24
                          net-cash-flow: $45,428.24
                          cumulative: $31,307.87
                        - month: '13'
                          costs-paid: $0.00
                          work-billed: $0.00
                          retention-held: $0.00
                          advance-recovered: $0.00
                          cash-received: $18,692.13
                          net-cash-flow: $18,692.13
                          cumulative: $50,000.00
                        - month: '14'
                          costs-paid: $0.00
                          work-billed: $0.00
                          retention-held: $0.00
                          advance-recovered: $0.00
                          cash-received: $0.00
                          net-cash-flow: $0.00
                          cumulative: $50,000.00
                        - month: '15'
                          costs-paid: $0.00
                          work-billed: $0.00
                          retention-held: $0.00
                          advance-recovered: $0.00
                          cash-received: $50,000.00
                          net-cash-flow: $50,000.00
                          cumulative: $100,000.00
                    credits_used: 5
                    credits_remaining: null
                6_month_even_job_10_retention:
                  summary: 6-month even job, 10% retention
                  value:
                    tool: project-cash-flow-calculator
                    tool_version: 1.0.2
                    outputs:
                      summary:
                        - metric: Contract Value
                          value: €1,000,000.00
                        - metric: Total Project Cost
                          value: €850,000.00
                        - metric: Expected Profit
                          value: €150,000.00 (15.0%)
                        - metric: Peak Funding Requirement
                          value: €216,666.67
                        - metric: Peak Funding Month
                          value: '6'
                        - metric: Cash Break-even Month
                          value: '8'
                        - metric: Funding Status
                          value: Shortfall of €216,666.67
                        - metric: Final Cumulative Cash
                          value: €150,000.00
                      schedule:
                        - month: '0'
                          costs-paid: €0.00
                          work-billed: €0.00
                          retention-held: €0.00
                          advance-recovered: €0.00
                          cash-received: €100,000.00
                          net-cash-flow: €100,000.00
                          cumulative: €100,000.00
                        - month: '1'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €0.00
                          net-cash-flow: '-€141,666.67'
                          cumulative: '-€41,666.67'
                        - month: '2'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €0.00
                          net-cash-flow: '-€141,666.67'
                          cumulative: '-€183,333.33'
                        - month: '3'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €133,333.33
                          net-cash-flow: '-€8,333.33'
                          cumulative: '-€191,666.67'
                        - month: '4'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €133,333.33
                          net-cash-flow: '-€8,333.33'
                          cumulative: '-€200,000.00'
                        - month: '5'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €133,333.33
                          net-cash-flow: '-€8,333.33'
                          cumulative: '-€208,333.33'
                        - month: '6'
                          costs-paid: €141,666.67
                          work-billed: €166,666.67
                          retention-held: €16,666.67
                          advance-recovered: €16,666.67
                          cash-received: €133,333.33
                          net-cash-flow: '-€8,333.33'
                          cumulative: '-€216,666.67'
                        - month: '7'
                          costs-paid: €0.00
                          work-billed: €0.00
                          retention-held: €0.00
                          advance-recovered: €0.00
                          cash-received: €133,333.33
                          net-cash-flow: €133,333.33
                          cumulative: '-€83,333.33'
                        - month: '8'
                          costs-paid: €0.00
                          work-billed: €0.00
                          retention-held: €0.00
                          advance-recovered: €0.00
                          cash-received: €233,333.33
                          net-cash-flow: €233,333.33
                          cumulative: €150,000.00
                    credits_used: 5
                    credits_remaining: null
              schema:
                type: object
                required:
                  - tool
                  - tool_version
                  - outputs
                  - credits_used
                  - credits_remaining
                properties:
                  outputs:
                    type: object
                    properties:
                      summary:
                        type: array
                        description: Project Cash Flow Summary
                        items:
                          type: object
                          properties:
                            metric:
                              type: string
                              description: Metric
                            value:
                              type: string
                              description: Value
                        x-iotools-columns:
                          - metric
                          - value
                      schedule:
                        type: array
                        description: Month-by-Month Schedule
                        items:
                          type: object
                          properties:
                            month:
                              type: string
                              description: Month
                            costs-paid:
                              type: string
                              description: Costs Paid
                            work-billed:
                              type: string
                              description: Work Billed
                            retention-held:
                              type: string
                              description: Retention Held
                            advance-recovered:
                              type: string
                              description: Advance Recovered
                            cash-received:
                              type: string
                              description: Cash Received
                            net-cash-flow:
                              type: string
                              description: Net Cash Flow
                            cumulative:
                              type: string
                              description: Cumulative
                        x-iotools-columns:
                          - month
                          - costs-paid
                          - work-billed
                          - retention-held
                          - advance-recovered
                          - cash-received
                          - net-cash-flow
                          - cumulative
                  tool:
                    type: string
                    description: The tool's slug, echoing the {slug} in the request path.
                  tool_version:
                    type: string
                    description: Output-contract version for this tool.
                  credits_used:
                    type: integer
                    description: >-
                      Credits this call consumed, after any settlement refund. 0
                      when metering is disabled.
                  credits_remaining:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      Credits left in the current monthly allowance, or null
                      when metering is disabled.
                  request_id:
                    type: string
                    description: Correlation id, also sent as x-request-id.
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/ToolNotAllowed'
        '404':
          $ref: '#/components/responses/ToolNotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/UnprocessableInput'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ToolFailed'
        '503':
          $ref: '#/components/responses/ToolDisabled'
      security:
        - bearerAuth: []
components:
  responses:
    ValidationError:
      description: Invalid request.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/validation_error
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Invalid request
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - validation_error
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
              fields:
                type:
                  - object
                  - string
                additionalProperties:
                  type: string
                description: >-
                  What failed: a map of field name → message. Absent when the
                  body itself is malformed; a single string when the failure
                  isn't tied to one field.
          example:
            type: https://docs.iotools.cloud/errors/validation_error
            title: Invalid request
            status: 400
            code: validation_error
            detail: One or more inputs are invalid — see `fields`.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
            fields:
              inputString: Required
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/invalid_api_key
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Invalid API key
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - invalid_api_key
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
          example:
            type: https://docs.iotools.cloud/errors/invalid_api_key
            title: Invalid API key
            status: 401
            code: invalid_api_key
            detail: 'Provide ''Authorization: Bearer <key>''.'
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
    InsufficientCredits:
      description: Monthly credit allowance exhausted.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/insufficient_credits
                  - >-
                    https://docs.iotools.cloud/errors/vendor_api_tier_limit_exceeded
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Insufficient credits
                  - Free-tier API limit reached for this tool
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - insufficient_credits
                  - vendor_api_tier_limit_exceeded
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
              credits_used:
                type: integer
                description: Always 0 — a refused call charges nothing.
              credits_remaining:
                type: integer
                description: Credits left in the allowance — fewer than this call costs.
          example:
            type: https://docs.iotools.cloud/errors/insufficient_credits
            title: Insufficient credits
            status: 402
            code: insufficient_credits
            detail: This call costs 1 credit and 0 remain in this month's allowance.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
            credits_used: 0
            credits_remaining: 0
    ToolNotAllowed:
      description: Tool exists but has no API surface.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/tool_not_allowed
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Tool not available over the API
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - tool_not_allowed
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
          example:
            type: https://docs.iotools.cloud/errors/tool_not_allowed
            title: Tool not available over the API
            status: 403
            code: tool_not_allowed
            detail: >-
              "Background Remover" is available on iotools.cloud but has no API
              endpoint.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
    ToolNotFound:
      description: No such tool.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/tool_not_found
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Tool not found
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - tool_not_found
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
          example:
            type: https://docs.iotools.cloud/errors/tool_not_found
            title: Tool not found
            status: 404
            code: tool_not_found
            detail: No tool with that slug. See GET /v1/tools/list.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
    PayloadTooLarge:
      description: Body too large.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/payload_too_large
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Payload too large
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - payload_too_large
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
          example:
            type: https://docs.iotools.cloud/errors/payload_too_large
            title: Payload too large
            status: 413
            code: payload_too_large
            detail: Request body exceeds this tool's size limit.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
    UnprocessableInput:
      description: Well-formed request, but there is no result to return.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/unprocessable_input
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Input cannot be processed
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - unprocessable_input
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
              credits_used:
                type: integer
                description: >-
                  Always 0 on `unprocessable_input` — a failed run is refunded,
                  floor included.
              credits_remaining:
                type: integer
                description: >-
                  Credits left after the refund. Absent when metering is
                  disabled.
          example:
            type: https://docs.iotools.cloud/errors/unprocessable_input
            title: Input cannot be processed
            status: 422
            code: unprocessable_input
            detail: >-
              This video has no captions or subtitles, so there is no transcript
              to extract.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
            credits_used: 0
    RateLimited:
      description: Per-minute rate limit exceeded.
      headers:
        Retry-After:
          description: Seconds to wait before retrying (RFC 9110 delta-seconds).
          schema:
            type: integer
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/rate_limited
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Rate limit exceeded
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - rate_limited
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
              retry_after:
                type: integer
                description: >-
                  Seconds until the window resets — the same value as the
                  `Retry-After` header.
          example:
            type: https://docs.iotools.cloud/errors/rate_limited
            title: Rate limit exceeded
            status: 429
            code: rate_limited
            detail: Too many requests. Retry in 30s.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
            retry_after: 30
    ToolFailed:
      description: Tool failed to run.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/processing_error
                  - https://docs.iotools.cloud/errors/internal_error
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Tool failed to run
                  - Internal error
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - processing_error
                  - internal_error
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
              credits_used:
                type: integer
                description: >-
                  Always 0 on `processing_error` — a failed run is refunded,
                  floor included.
              credits_remaining:
                type: integer
                description: >-
                  Credits left after the refund. Absent when metering is
                  disabled.
          example:
            type: https://docs.iotools.cloud/errors/processing_error
            title: Tool failed to run
            status: 500
            code: processing_error
            detail: The tool failed to run. Please try again.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
            credits_used: 0
    ToolDisabled:
      description: Tool temporarily disabled.
      content:
        application/problem+json:
          schema:
            type: object
            description: >-
              RFC 9457 problem document, served as application/problem+json.
              Branch on `code`; `title` is human prose and may be reworded
              without notice. Some failures add extension members — `fields` on
              validation errors, `retry_after` on 429s,
              `credits_used`/`credits_remaining` on billing-adjacent failures —
              documented on the responses that carry them.
            required:
              - type
              - title
              - status
              - code
            properties:
              type:
                type: string
                format: uri
                description: Stable documentation URI for this failure.
                examples:
                  - https://docs.iotools.cloud/errors/tool_disabled
                  - https://docs.iotools.cloud/errors/api_unconfigured
              title:
                type: string
                description: Short human-readable summary of the failure.
                examples:
                  - Tool temporarily disabled
                  - API not configured
              status:
                type: integer
                description: HTTP status code, matching the response's own status.
              code:
                type: string
                description: >-
                  Stable machine-readable error code — branch on this, not
                  `title`.
                enum:
                  - tool_disabled
                  - api_unconfigured
              detail:
                type: string
                description: Human explanation of this occurrence.
              request_id:
                type: string
                description: Correlation id, also sent as x-request-id.
          example:
            type: https://docs.iotools.cloud/errors/tool_disabled
            title: Tool temporarily disabled
            status: 503
            code: tool_disabled
            detail: This tool is temporarily unavailable. Try again shortly.
            request_id: e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: iot_live_…

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.