Cascade Forecast API

The Forecast API from Cascade — 1 operation(s) for forecast.

GitHub OpenAPI

Operations 1

POST /api/v1/forecast Run and bill a forecast #

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/cascade-industries:cascade-industries-forecast-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

cascade-industries-forecast-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cascade Industries Forecast API
  version: 1.0.0
  description: 'Operations tagged Forecast across 2 of this provider''s published API definitions: cascade-industries-ephemeris-openapi-m1.json, cascade-industries-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: '{baseUrl}'
  variables:
    baseUrl:
      default: http://localhost:3000
security:
- apiKey: []
tags:
- name: Forecast
paths:
  /api/v1/forecast:
    post:
      operationId: runForecast
      summary: Run and bill a forecast
      description: Use the same Idempotency-Key when retrying an identical request. A completed retry returns the stored response without running or charging for the forecast again.
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: A unique 8-128 character retry key. Keys are scoped to the authenticated user.
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9._:-]+$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForecastRequest'
      responses:
        '200':
          description: Forecast completed
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            Idempotency-Replayed:
              $ref: '#/components/headers/IdempotencyReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForecastResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCredits'
        '409':
          description: Idempotency key conflict or request still processing
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            Retry-After:
              description: Seconds before retrying an in-progress request
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ProviderUnavailable'
      tags:
      - Forecast
    servers:
    - url: '{baseUrl}'
      variables:
        baseUrl:
          default: http://localhost:3000
components:
  responses:
    ProviderUnavailable:
      description: Forecasting or pricing is temporarily unavailable
      headers:
        Retry-After:
          description: Seconds before retrying
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate or capacity limit exceeded
      headers:
        Retry-After:
          description: Seconds before retrying
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, or revoked API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    ForecastResponse:
      type: object
      required:
      - meta
      properties:
        meta:
          type: object
          required:
          - gateway_request_id
          - billing
          properties:
            gateway_request_id:
              type: string
            request_id:
              type: string
            models_used:
              type: array
              items:
                type: string
            upstream_request_ids:
              type: array
              items:
                type: string
              description: Model request IDs when a mixed-frequency request is split into compatible groups.
            upstream_calls:
              type: integer
              minimum: 1
            billing:
              type: object
              required:
              - settled_mc
              - balance_mc
              properties:
                settled_mc:
                  type: string
                balance_mc:
                  type: string
          additionalProperties: true
      additionalProperties: true
    SeriesCovariates:
      type: object
      required:
      - past
      properties:
        past:
          type: object
          additionalProperties:
            type: array
            items:
              type: number
          description: Named historical channels aligned to the series context length.
        future:
          type: object
          additionalProperties:
            type: array
            items:
              type: number
          description: Optional known-future channels aligned to the requested horizon. Every future channel must also have past history.
      additionalProperties: false
    InsufficientCredits:
      type: object
      required:
      - error
      - balance_mc
      - required_mc
      - topup_url
      properties:
        error:
          type: string
        balance_mc:
          type: string
        required_mc:
          type: string
        topup_url:
          type: string
          format: uri
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    ForecastRequest:
      type: object
      required:
      - mode
      - series
      properties:
        mode:
          type: string
          enum:
          - explicit
          - ensemble
          - route
        model:
          type: string
        series:
          type: array
          minItems: 1
          maxItems: 64
          items:
            $ref: '#/components/schemas/ForecastSeries'
        context_len:
          type: integer
          minimum: 1
          maximum: 16384
        horizon:
          type: integer
          minimum: 1
          maximum: 4096
          description: Maximum 4096 steps. Slots x horizon x quantiles must not exceed 120000 output values; omitted or empty quantiles are budgeted as 21.
        quantiles:
          type: array
          maxItems: 21
          items:
            type: number
            exclusiveMinimum: 0
            exclusiveMaximum: 1
        top_k:
          type:
          - integer
          - 'null'
          minimum: 1
          maximum: 16
          description: Optional ensemble-only limit on the number of models.
        combine:
          type: string
          enum:
          - mixture
          - vincentize
          description: Optional ensemble combination method.
      additionalProperties: true
    ForecastSeries:
      type: object
      required:
      - values
      properties:
        values:
          oneOf:
          - type: array
            minItems: 1
            items:
              type: number
          - type: array
            minItems: 1
            items:
              type: array
              minItems: 1
              items:
                type: number
        freq:
          type: string
          minLength: 1
          description: Optional per-series frequency. Mixed-frequency batches are split into compatible upstream calls and reassembled in request order.
        covariates:
          $ref: '#/components/schemas/SeriesCovariates'
      additionalProperties: true
  headers:
    RequestId:
      description: Stable forecast request identifier used by usage logs and safe retries
      schema:
        type: string
        pattern: ^req_[a-f0-9]{32}$
    IdempotencyReplayed:
      description: True when a completed response was returned from the idempotency store
      schema:
        type: string
        enum:
        - 'true'
        - 'false'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: pc_live_...
      description: Ephemeris application API key
x-refined-from:
- cascade-industries-ephemeris-openapi-m1.json
- cascade-industries-openapi.yml