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

# Post apivizcostestimate

> POST /viz/cost/estimate

Validates the spec (structural + semantic) then returns a
``VizCostEstimate``. Same authentication, visibility, and
readiness rules as POST /viz/safe-viz-spec/validate/.

On failure: ``{is_valid: false, errors: [{path, error}]}`` —
same envelope as the validate endpoint, so clients have a
single error-handling path. On success: the flat
``VizCostEstimate`` body.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/viz/cost/estimate/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/viz/cost/estimate/:
    post:
      tags:
        - api
      description: |-
        POST /viz/cost/estimate

        Validates the spec (structural + semantic) then returns a
        ``VizCostEstimate``. Same authentication, visibility, and
        readiness rules as POST /viz/safe-viz-spec/validate/.

        On failure: ``{is_valid: false, errors: [{path, error}]}`` —
        same envelope as the validate endpoint, so clients have a
        single error-handling path. On success: the flat
        ``VizCostEstimate`` body.
      operationId: api_viz_cost_estimate_create
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: {}
          application/x-www-form-urlencoded:
            schema:
              type: object
              additionalProperties: {}
          multipart/form-data:
            schema:
              type: object
              additionalProperties: {}
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
      security:
        - cookieAuthCsrfExempt: []
components: {}

````