UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

15 lines 756 B
import type { BodyParams, HeaderParams, UrlParams } from "../types"; import { TaskProviderHelper, type TextToImageTaskHelper } from "./providerHelper"; interface BlackForestLabsResponse { id: string; polling_url: string; } export declare class BlackForestLabsTextToImageTask extends TaskProviderHelper implements TextToImageTaskHelper { constructor(); preparePayload(params: BodyParams): Record<string, unknown>; prepareHeaders(params: HeaderParams, binary: boolean): Record<string, string>; makeRoute(params: UrlParams): string; getResponse(response: BlackForestLabsResponse, url?: string, headers?: HeadersInit, outputType?: "url" | "blob"): Promise<string | Blob>; } export {}; //# sourceMappingURL=black-forest-labs.d.ts.map