openapi: 3.0.0
servers:
  - url: https://prod.api.market/api/v1/magicapi/simple-image-text-extraction-api
info:
  title: Fast Image Text Extraction API (abiruyt/text-extract-ocr)
  description: Quickly extract accurate text from images for search, data entry,
    and automation with this lightweight OCR model.
  version: a524caeaa23495bc9edc805ab08ab5fe943afd3febed884a4f3747aa32e9cd61
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            properties:
              loc:
                items:
                  anyOf:
                    - type: string
                    - type: integer
                title: Location
                type: array
              msg:
                title: Message
                type: string
              type:
                title: Error Type
                type: string
            required:
              - loc
              - msg
              - type
            title: ValidationError
            type: object
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    Input:
      properties:
        image:
          description: Image to process
          format: uri
          title: Image
          type: string
          x-order: 0
          example: https://replicate.delivery/pbxt/KhTOXyqrFtkoj2hobh1a4As6dYDIvNV2Ujbc0LbGD9ZguRwR/bowers.jpg
      required:
        - image
      title: Input
      type: object
    Output:
      title: Output
      type: string
    PredictionRequest:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          title: Id
          type: string
        input:
          properties:
            image:
              description: Image to process
              format: uri
              title: Image
              type: string
              x-order: 0
          required:
            - image
          title: Input
          type: object
        output_file_prefix:
          title: Output File Prefix
          type: string
        webhook:
          format: uri
          maxLength: 65536
          minLength: 1
          title: Webhook
          type: string
        webhook_events_filter:
          default:
            - start
            - output
            - logs
            - completed
          items:
            description: An enumeration.
            enum:
              - start
              - output
              - logs
              - completed
            title: WebhookEvent
            type: string
          type: array
      title: PredictionRequest
      type: object
    PredictionResponse:
      properties:
        completed_at:
          format: date-time
          title: Completed At
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        error:
          title: Error
          type: string
        id:
          title: Id
          type: string
        input:
          properties:
            image:
              description: Image to process
              format: uri
              title: Image
              type: string
              x-order: 0
          required:
            - image
          title: Input
          type: object
        logs:
          default: ""
          title: Logs
          type: string
        metrics:
          title: Metrics
          type: object
        output:
          title: Output
          type: string
        started_at:
          format: date-time
          title: Started At
          type: string
        status:
          description: An enumeration.
          enum:
            - starting
            - processing
            - succeeded
            - canceled
            - failed
          title: Status
          type: string
        version:
          title: Version
          type: string
      title: PredictionResponse
      type: object
    Status:
      description: An enumeration.
      enum:
        - starting
        - processing
        - succeeded
        - canceled
        - failed
      title: Status
      type: string
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    WebhookEvent:
      description: An enumeration.
      enum:
        - start
        - output
        - logs
        - completed
      title: WebhookEvent
      type: string
  securitySchemes: {}
security: {}
paths:
  /predictions:
    post:
      summary: Create a prediction with abiruyt/text-extract-ocr
      description: Run inference with the abiruyt/text-extract-ocr model on API.market
      operationId: createText_extract_ocrPrediction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - version
                - input
              properties:
                version:
                  type: string
                  description: Model version ID
                  default: a524caeaa23495bc9edc805ab08ab5fe943afd3febed884a4f3747aa32e9cd61
                input:
                  $ref: "#/components/schemas/Input"
            examples:
              default:
                summary: Default example
                value:
                  version: a524caeaa23495bc9edc805ab08ab5fe943afd3febed884a4f3747aa32e9cd61
                  input:
                    image: https://replicate.delivery/pbxt/KhTOXyqrFtkoj2hobh1a4As6dYDIvNV2Ujbc0LbGD9ZguRwR/bowers.jpg
      responses:
        "201":
          description: Prediction created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the prediction
                  version:
                    type: string
                    description: Model version used for the prediction
                  status:
                    type: string
                    enum:
                      - starting
                      - processing
                      - succeeded
                      - failed
                      - canceled
                    description: Current status of the prediction
                  created_at:
                    type: string
                    format: date-time
                    description: When the prediction was created
              examples:
                success:
                  summary: Successful prediction creation
                  value:
                    id: ufawqhfynnddngldkgtslldrkq
                    version: a524caeaa23495bc9edc805ab08ab5fe943afd3febed884a4f3747aa32e9cd61
                    status: starting
                    created_at: 2025-05-18T08:21:02.216Z
        "400":
          description: Bad request, validation error
        "401":
          description: Unauthorized, invalid API token
    parameters:
      - &a1
        description: API.market API Key
        in: header
        name: x-api-market-key
        value: Please Login/Signup to get an API Key
        required: true
        schema:
          type: string
  /predictions/{id}:
    get:
      summary: Get prediction status and results
      description: Get the status and results of a abiruyt/text-extract-ocr prediction
        from API.market
      operationId: getText_extract_ocrPrediction
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The prediction ID
      responses:
        "200":
          description: Prediction details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the prediction
                  status:
                    type: string
                    enum:
                      - starting
                      - processing
                      - succeeded
                      - failed
                      - canceled
                    description: Current status of the prediction
                  output:
                    $ref: "#/components/schemas/Output"
                  error:
                    type: string
                    description: Error message if the prediction failed
                  created_at:
                    type: string
                    format: date-time
                    description: When the prediction was created
                  started_at:
                    type: string
                    format: date-time
                    description: When the prediction started processing
                  completed_at:
                    type: string
                    format: date-time
                    description: When the prediction completed
              examples:
                succeeded:
                  summary: Successful prediction result
                  value:
                    id: ufawqhfynnddngldkgtslldrkq
                    status: succeeded
                    output: >+
                      The Life and Work of

                      Fredson Bowers


                      by

                      G. THOMAS TANSELLE


                      N EVERY FIELD OF ENDEAVOR THERE ARE A FEW FIGURES WHOSE
                      AGCOM-

                      plishment and influence cause them to be the symbols of
                      their age;

                      their careers and oeuvres become the touchstones by which
                      the

                      field is measured and its history told. In the related
                      pursuits of


                      analytical and descriptive bibliography, textual
                      criticism, and scholarly

                      editing, Fredson Bowers was such a figure, dominating the
                      four decades

                      after 1949, when his Principles of Bibliographical
                      Description was pub-

                      lished. By 1973 the period was already being called “the
                      age of Bowers”:

                      in that year Norman Sanders, writing the chapter on
                      textual scholarship

                      for Stanley Wells's Shakespeare: Select Bibliographies,
                      gave this title to

                      a section of his essay. For most people, it would be
                      achievement enough

                      to rise to such a position in a field as complex as
                      Shakespearean textual

                      studies; but Bowers played an equally important role in
                      other areas.

                      Editors of nineteenth-century American authors, for
                      example, would

                      also have to call the recent past “the age of Bowers,” as
                      would the writers

                      of descriptive bibliographies of authors and presses. His
                      ubiquity in

                      the broad field of bibliographical and textual study, his
                      seemingly com-

                      plete possession of it, distinguished him from his
                      illustrious predeces-

                      sors and made him the personification of bibliographical
                      scholarship in

                      his time.


                      When in 1969 Bowers was awarded the Gold Medal of the
                      Biblio-

                      graphical Society in London, John Carter’s citation
                      referred to the

                      Principles as “majestic,” called Bowers's current projects
                      “formidable,”

                      said that he had “imposed critical discipline” on the
                      texts of several

                      authors, described Studies in Bibliography as a “great and
                      continuing

                      achievement,” and included among his characteristics
                      ‘uncompromising

                      seriousness of purpose” and “professional intensity.”
                      Bowers was not

                      unaccustomed to such encomia, but he had also experienced
                      his share of

                      attacks: his scholarly positions were not universally
                      popular, and he

                      expressed them with an aggressiveness that almost seemed
                      calculated to

                    created_at: 2023-01-01T12:00:00.000Z
                    started_at: 2023-01-01T12:00:05.000Z
                    completed_at: 2023-01-01T12:01:00.000Z
        "401":
          description: Unauthorized, invalid API token
        "404":
          description: Prediction not found
    parameters:
      - *a1
tags:
  - name: artificial-intelligence
    description: Operations related to artificial-intelligence
  - name: image
    description: Operations related to image
  - name: tools
    description: Operations related to tools
