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

# Estimate a price

> Estimates parts and credits from image sizes alone, before uploading.
Nothing is held. This is an estimate: the binding price is the quote
on a `ready` chapter. Any valid key can call it.




## OpenAPI

````yaml /openapi.yaml post /estimate
openapi: 3.1.0
info:
  title: Relettr API
  version: '1'
  summary: Translate manhwa chapters (Korean comics) into lettered English.
  description: |
    The Relettr public REST API, version 1.

    Every request is authenticated with an API key sent as a bearer token
    (`rl_live_…` or `rl_test_…`). Credits are integers; 100 credits = $1.

    Within v1 only additive changes are made: new endpoints, new optional
    fields, new event types and new enum values. Ignore unknown fields, and
    treat an unknown chapter `status` as non-terminal.
  contact:
    name: Relettr support
    email: support@relettr.com
servers:
  - url: https://api.relettr.com/v1
    description: Production (live and test keys)
security:
  - bearer: []
tags:
  - name: Chapters
    description: Create, upload, quote, start, poll and download a chapter.
  - name: Regions and review
    description: >-
      Read and edit the translated text, re-render, and resolve failed-mask
      zones.
  - name: Series
    description: Series hold the binding glossary and the context shared between chapters.
  - name: Glossary
    description: Glossary entries of a series.
  - name: Webhooks
    description: Registered webhook endpoints.
  - name: Events
    description: The events that are delivered to webhooks, as a list you can page through.
  - name: Credits
    description: Balance, usage, ledger and price estimates.
  - name: Status
    description: Service status. No authentication.
  - name: Test helpers
    description: Endpoints that exist only for `rl_test_` keys.
paths:
  /estimate:
    post:
      tags:
        - Credits
      summary: Estimate a price
      description: |
        Estimates parts and credits from image sizes alone, before uploading.
        Nothing is held. This is an estimate: the binding price is the quote
        on a `ready` chapter. Any valid key can call it.
      operationId: createEstimate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - images
              properties:
                images:
                  type: array
                  minItems: 1
                  maxItems: 300
                  items:
                    type: object
                    required:
                      - width
                      - height
                    properties:
                      width:
                        type: integer
                        minimum: 64
                      height:
                        type: integer
                        minimum: 64
                layout:
                  type: string
                  enum:
                    - strip
                    - pages
                  default: strip
                translate_sfx:
                  type: boolean
                  default: false
            example:
              images:
                - width: 690
                  height: 12000
                - width: 690
                  height: 11800
              layout: strip
      responses:
        '200':
          description: The estimate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Estimate'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Estimate:
      type: object
      properties:
        object:
          const: estimate
        parts_estimate:
          type: integer
        credits_estimate:
          type: integer
        breakdown:
          type: object
          properties:
            ocr:
              type: integer
            translate:
              type: integer
            clean_letter:
              type: integer
            sfx:
              type: integer
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          additionalProperties: true
          description: |
            Some codes add fields: `required` and `available` (402),
            `scope`, `limit` and `used_this_month` (spend limits), `limit` and
            `active` (concurrency), `estimated_wait_s` (503), `status` and
            `allowed_from` (invalid_state), `missing_indexes`
            (upload_incomplete).
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication
                - permission
                - not_found
                - conflict
                - payment_required
                - rate_limited
                - capacity
                - api_error
            code:
              type: string
              examples:
                - parameter_invalid
            message:
              type: string
            param:
              type: string
              examples:
                - files[3].content_type
            doc_url:
              type: string
              format: uri
            request_id:
              type: string
  responses:
    BadRequest:
      description: '`parameter_invalid`, `parameter_missing` or `json_invalid`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: '`api_key_missing`, `api_key_invalid` or `api_key_revoked`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: '`rate_limited` or `concurrency_limit`.'
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: |
        An API key: `rl_live_…` for real work, `rl_test_…` for test mode.
        Create keys on the site. Never put a key in browser code.

````

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