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

# Estimate a job

> The price of one exact job before it runs, what makes it up, and a quote id that holds the price for 15 minutes. Free, no sign-in.



## OpenAPI

````yaml scripts/api/sources/openapi.json POST /estimate
openapi: 3.1.0
info:
  title: Summer API
  version: '1'
  description: >-
    Curated, tested game-dev models: 3D, images, video, voice, sound and music,
    into your Summer assets.
servers:
  - url: https://www.summerengine.com/v1
security:
  - bearer: []
paths:
  /estimate:
    post:
      summary: Estimate a Summer API job
      description: >-
        Price one exact job without running it: the USD amount, its breakdown
        and a quoteId that holds the price for 15 minutes. Public; no sign-in.
      operationId: models_estimate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  description: >-
                    A Summer model id from models.list, such as 3d/hunyuan-3d or
                    3d/default.
                  type: string
                  minLength: 1
                  maxLength: 120
                input:
                  description: The model's input, matching its inputSchema.
                  default: {}
                  type: object
                  additionalProperties: {}
              required:
                - model
      responses:
        '200':
          description: Done.
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                  currency:
                    type: string
                    const: USD
                  price:
                    description: US dollars as a decimal string.
                    type: string
                    pattern: ^\d+(\.\d+)?$
                  atMost:
                    description: >-
                      true: Summer decides a step while it runs; the charge can
                      be lower, never higher.
                    type: boolean
                  breakdown:
                    type: array
                    items:
                      type: object
                      properties:
                        item:
                          type: string
                        price:
                          description: US dollars as a decimal string.
                          type: string
                          pattern: ^\d+(\.\d+)?$
                      required:
                        - item
                        - price
                      additionalProperties: false
                  quoteId:
                    anyOf:
                      - type: string
                      - type: 'null'
                  quoteExpiresAt:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - model
                  - currency
                  - price
                  - atMost
                  - breakdown
                  - quoteId
                  - quoteExpiresAt
                additionalProperties: false
        default:
          description: An error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - param
            - request_id
            - doc_url
          properties:
            type:
              type: string
            code:
              type: string
              description: >-
                A stable code: invalid_input, not_signed_in, no_credits (the
                paid balance), over_limit (the app's own spend limit), ...
            message:
              type: string
            param:
              type:
                - string
                - 'null'
              description: The field to fix, such as input.prompt or Idempotency-Key.
            request_id:
              type: string
            doc_url:
              type: string
            fix_url:
              type: string
              description: Where the person fixes it, such as adding credits.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A Summer sign-in: an OAuth 2.1 access token, valid one hour. Sign in
        once with npx -y summer-engine login, then print a token with summer
        token. Each app you sign in spends your paid credits up to the limit you
        set in Connected apps.

````

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