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

# List a fine tune's model files

> The files a local run needs, with their hashes. decideLocal and decide_local call this to download a model, and about once an hour to learn it still exists. It does not count against the daily download limit.



## OpenAPI

````yaml /openapi.json get /fine-tunes/{name}/bundle
openapi: 3.1.0
info:
  title: tokz API
  version: 1.0.0
  description: >-
    Typed decisions about text from the open OpenDecision models. Text sent to
    /decide is read by the model and never stored or logged; only counters are
    kept. Fine tunes are built in the dashboard, which is not part of this API.
  contact:
    name: tokz
    url: https://tokz.si
servers:
  - url: https://api.tokz.si
    description: Production
  - url: http://127.0.0.1:3999
    description: Local dev (dev:pglite)
security:
  - bearerAuth: []
tags:
  - name: Decisions
    description: Typed decisions about text, answered by the OpenDecision models.
  - name: Fine tunes
    description: >-
      The files of a model you trained. Starting, canceling and deleting one
      happen in the dashboard.
  - name: Operations
    description: Health and diagnostics.
paths:
  /fine-tunes/{name}/bundle:
    get:
      tags:
        - Fine tunes
      summary: List a fine tune's model files
      description: >-
        The files a local run needs, with their hashes. decideLocal and
        decide_local call this to download a model, and about once an hour to
        learn it still exists. It does not count against the daily download
        limit.
      operationId: getFineTuneBundle
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
          description: The model's name, as shown in the dashboard.
      responses:
        '200':
          description: The model's id, name and files.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FineTuneBundle'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/FineTuneNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Fine Tune is off (fine_tune_off).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FineTuneBundle:
      type: object
      required:
        - id
        - name
        - files
      properties:
        id:
          type: string
          description: >-
            ft_ plus 24 hex characters. A name used again after a delete gets a
            new id.
        name:
          type: string
        files:
          type: array
          items:
            type: object
            required:
              - path
              - bytes
              - sha256
            properties:
              path:
                type: string
              bytes:
                type: integer
              sha256:
                type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A code or a short message. Never contains payload content.
        message:
          type: string
          description: >-
            What went wrong and what to do next, when the API has a sentence for
            it.
        requestId:
          type: string
  responses:
    Unauthorized:
      description: Missing, malformed, revoked, or incorrect API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    FineTuneNotFound:
      description: >-
        No ready model with that name in this key's organization. Another
        organization's model, a deleted one and an unfinished one all get this
        same answer.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        Too many requests. The limit is per API key; retry after the window
        resets.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key: `Authorization: Bearer tokz_live_<id>_<secret>`. Only a
        SHA-256 hash of the secret is stored.

````

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