Black Forest Labs Utility API

Result polling, credits, fine-tune management.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/finetune_details Get a finetune's training details · Finetune Details #
Ask an LLM
“What training parameters were used for a finetune I created?”
“Can I see the metadata of one of my own finetunes?”
Tell an agent
Show the training details for finetune {finetune_id}.
Get the metadata of my finetune {finetune_id}.
GET /v1/my_finetunes List my finetunes · My Finetunes #
Ask an LLM
“Which finetunes have I created?”
“Can I see all my own LoRA finetunes?”
Tell an agent
List all finetunes I created.
Show my finetune IDs.
POST /v1/delete_finetune Delete a finetune · Delete Finetune #
Ask an LLM
“How do I delete a finetune I no longer need?”
“Can I remove a LoRA finetune by its ID?”
Tell an agent destructive · confirm first
Delete finetune {finetune_id}.
Remove my finetune {finetune_id}.
GET /v1/get_result Get a generation task's result · Get Result #
Ask an LLM
“Where do I fetch the output of a generation task?”
“Can I retrieve the result of a generation by its ID?”
Tell an agent
Get the result of generation task {id}.
Fetch generation output {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/black-forest-labs:black-forest-labs-utility-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

black-forest-labs-utility-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BFL Utility API
  description: Authorize with an API key from your user profile.
  version: 0.0.1
servers:
- url: https://api.bfl.ai
  description: BFL API
tags:
- name: Utility
  description: These utility endpoints allow you to check the results of submitted tasks and to manage your finetunes.
paths:
  /v1/finetune_details:
    get:
      tags:
      - Utility
      summary: Finetune Details
      description: Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user.
      operationId: finetune_details_v1_finetune_details_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: finetune_id
        in: query
        required: true
        schema:
          type: string
          title: Finetune Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinetuneDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      servers:
      - url: https://api.bfl.ai
        description: BFL Finetune API
  /v1/my_finetunes:
    get:
      tags:
      - Utility
      summary: My Finetunes
      description: List all finetune_ids created by the user
      operationId: my_finetunes_v1_my_finetunes_get
      security:
      - APIKeyHeader: []
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyFinetunesResponse'
      servers:
      - url: https://api.bfl.ai
        description: BFL Finetune API
  /v1/delete_finetune:
    post:
      tags:
      - Utility
      summary: Delete Finetune
      description: Delete a finetune_id that was created by the user
      operationId: delete_finetune_v1_delete_finetune_post
      security:
      - APIKeyHeader: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteFinetuneInputs'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFinetuneResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      servers:
      - url: https://api.bfl.ai
        description: BFL Finetune API
  /v1/get_result:
    get:
      tags:
      - Utility
      summary: Get Result
      description: An endpoint for getting generation task result.
      operationId: get_result_v1_get_result_get
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
          title: Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/SettledCostResultResponse'
                - $ref: '#/components/schemas/ResultResponse'
                title: Response Get Result V1 Get Result Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeleteFinetuneInputs:
      properties:
        finetune_id:
          type: string
          title: Finetune Id
          description: Name of the LoRA to delete.
          example: my-finetune
      type: object
      required:
      - finetune_id
      title: DeleteFinetuneInputs
    FinetuneDetailResponse:
      properties:
        finetune_details:
          additionalProperties: true
          type: object
          title: Finetune Details
          description: Details about the parameters used for finetuning
      type: object
      required:
      - finetune_details
      title: FinetuneDetailResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MyFinetunesResponse:
      properties:
        finetunes:
          items: {}
          type: array
          title: Finetunes
          description: List of finetunes created by the user
      type: object
      required:
      - finetunes
      title: MyFinetunesResponse
    ResultResponse:
      properties:
        id:
          type: string
          title: Id
          description: Task id for retrieving result
        status:
          $ref: '#/components/schemas/StatusResponse'
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
        progress:
          anyOf:
          - type: number
          - type: 'null'
          title: Progress
        details:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Details
        preview:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Preview
      type: object
      required:
      - id
      - status
      title: ResultResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SettledCostResultResponse:
      properties:
        id:
          type: string
          title: Id
          description: Task id for retrieving result
        status:
          $ref: '#/components/schemas/StatusResponse'
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
        progress:
          anyOf:
          - type: number
          - type: 'null'
          title: Progress
        details:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Details
        preview:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Preview
        cost:
          type: number
          title: Cost
          description: Settled cost in credits for this request
      type: object
      required:
      - id
      - status
      - cost
      title: SettledCostResultResponse
    StatusResponse:
      type: string
      enum:
      - Task not found
      - Pending
      - Reasoning
      - Generating
      - Request Moderated
      - Content Moderated
      - No Card Generated
      - Ready
      - Error
      title: StatusResponse
    DeleteFinetuneResponse:
      properties:
        status:
          type: string
          title: Status
          description: Status of the deletion
        message:
          type: string
          title: Message
          description: Message about the deletion
        deleted_finetune_id:
          type: string
          title: Deleted Finetune Id
          description: ID of the deleted finetune
        timestamp:
          type: string
          title: Timestamp
          description: Timestamp of the deletion
      type: object
      required:
      - status
      - message
      - deleted_finetune_id
      - timestamp
      title: DeleteFinetuneResponse
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-key
x-provenance:
  method: harvested
  publisher: Black Forest Labs
  source: https://api.bfl.ai/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)