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

# Estimate cost

> Calculate the exact credit cost of a prediction from an upload's dimensions and requested markers, with no credit reservation against your org balance.



## OpenAPI

````yaml POST /predict/estimate
openapi: 3.1.0
info:
  title: Strand AI Platform API
  version: v1
  description: >-
    REST surface for uploading WSIs, submitting Lattice inference jobs, and
    streaming results. All endpoints require an `Authorization: Bearer
    sk-strand-...` header. Generate keys at `/settings/api-keys`.
servers:
  - url: https://app.strandai.com/api/v1
    description: Production
security:
  - ApiKey: []
paths:
  /predict/estimate:
    post:
      tags:
        - Predict
      summary: Estimate credit cost for a prediction
      operationId: estimatePrediction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - uploadId
                - markers
              properties:
                uploadId:
                  type: string
                  format: uuid
                markers:
                  type: array
                  items:
                    type: string
                  minItems: 1
      responses:
        '200':
          description: Estimate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Estimate'
        '409':
          description: Upload missing dimensions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Estimate:
      type: object
      required:
        - patchCount
        - markerCount
        - estimatedCredits
        - orgBalance
      properties:
        patchCount:
          type: integer
        markerCount:
          type: integer
        estimatedCredits:
          type: integer
        orgBalance:
          type: integer
        orgPending:
          type: integer
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        required:
          type: integer
          nullable: true
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk-strand-XXXXXXXXXXXXXXXXXXXXXXXX

````