Black Forest Labs Utility API
Result polling, credits, fine-tune management.
Result polling, credits, fine-tune management.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/black-forest-labs:black-forest-labs-utility-api"
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.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
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)