Ƭ AudioClassificationArgs: BaseArgs & AudioClassificationInput | LegacyAudioInput
inference/src/tasks/audio/audioClassification.ts:9
Ƭ AudioToAudioArgs: BaseArgs & { inputs: Blob } | LegacyAudioInput
inference/src/tasks/audio/audioToAudio.ts:8
Ƭ AuthMethod: "none" | "hf-token" | "credentials-include" | "provider-key"
Ƭ AutomaticSpeechRecognitionArgs: BaseArgs & AutomaticSpeechRecognitionInput | LegacyAudioInput
inference/src/tasks/audio/automaticSpeechRecognition.ts:9
Ƭ DocumentQuestionAnsweringArgs: BaseArgs & DocumentQuestionAnsweringInput & { inputs: DocumentQuestionAnsweringInputData & { image: Blob } }
inference/src/tasks/multimodal/documentQuestionAnswering.ts:13
Ƭ FeatureExtractionArgs: BaseArgs & FeatureExtractionInput & FeatureExtractionOAICompatInput
inference/src/tasks/nlp/featureExtraction.ts:12
Ƭ FeatureExtractionOutput: (number | number[] | number[][])[]
Returned values are a multidimensional array of floats (dimension depending on if you sent a string or a list of string, and if the automatic reduction, usually mean_pooling for instance was applied for you or not. This should be explained on the model’s README).
inference/src/tasks/nlp/featureExtraction.ts:17
Ƭ FillMaskArgs: BaseArgs & FillMaskInput
inference/src/tasks/nlp/fillMask.ts:7
Ƭ ImageClassificationArgs: BaseArgs & ImageClassificationInput | LegacyImageInput
inference/src/tasks/cv/imageClassification.ts:8
Ƭ ImageSegmentationArgs: BaseArgs & ImageSegmentationInput | LegacyImageInput
inference/src/tasks/cv/imageSegmentation.ts:8
Ƭ ImageToImageArgs: BaseArgs & ImageToImageInput
inference/src/tasks/cv/imageToImage.ts:8
Ƭ ImageToTextArgs: BaseArgs & ImageToTextInput | LegacyImageInput
inference/src/tasks/cv/imageToText.ts:9
Ƭ ImageToVideoArgs: BaseArgs & ImageToVideoInput
inference/src/tasks/cv/imageToVideo.ts:8
Ƭ InferenceProvider: typeof INFERENCE_PROVIDERS[number]
Ƭ InferenceProviderOrPolicy: typeof PROVIDERS_OR_POLICIES[number]
Ƭ InferenceTask: Exclude\<PipelineType, "other"> | "conversational"
Ƭ ModelId: string
HF model id, like “meta-llama/Llama-3.3-70B-Instruct”
Ƭ ObjectDetectionArgs: BaseArgs & ObjectDetectionInput | LegacyImageInput
inference/src/tasks/cv/objectDetection.ts:8
Ƭ QuestionAnsweringArgs: BaseArgs & QuestionAnsweringInput
inference/src/tasks/nlp/questionAnswering.ts:8
Ƭ RequestArgs: BaseArgs & { data: Blob | ArrayBuffer } | { inputs: unknown } | { prompt: string } | { text: string } | { audio_url: string } | ChatCompletionInput & { parameters?: Record\<string, unknown> }
Ƭ SentenceSimilarityArgs: BaseArgs & SentenceSimilarityInput
inference/src/tasks/nlp/sentenceSimilarity.ts:7
Ƭ SummarizationArgs: BaseArgs & SummarizationInput
inference/src/tasks/nlp/summarization.ts:7
Ƭ TableQuestionAnsweringArgs: BaseArgs & TableQuestionAnsweringInput
inference/src/tasks/nlp/tableQuestionAnswering.ts:7
Ƭ TabularClassificationArgs: BaseArgs & { inputs: { data: Record\<string, string[]> } }
inference/src/tasks/tabular/tabularClassification.ts:6
Ƭ TabularClassificationOutput: number[]
A list of predicted labels for each row
inference/src/tasks/tabular/tabularClassification.ts:18
Ƭ TabularRegressionArgs: BaseArgs & { inputs: { data: Record\<string, string[]> } }
inference/src/tasks/tabular/tabularRegression.ts:6
Ƭ TabularRegressionOutput: number[]
a list of predicted values for each row
inference/src/tasks/tabular/tabularRegression.ts:18
Ƭ TextClassificationArgs: BaseArgs & TextClassificationInput
inference/src/tasks/nlp/textClassification.ts:7
Ƭ TextGenerationStreamFinishReason: "length" | "eos_token" | "stop_sequence"
inference/src/tasks/nlp/textGenerationStream.ts:48
Ƭ TextToImageArgs: BaseArgs & TextToImageInput
inference/src/tasks/cv/textToImage.ts:8
Ƭ TextToVideoArgs: BaseArgs & TextToVideoInput
inference/src/tasks/cv/textToVideo.ts:11
Ƭ TextToVideoOutput: Blob
inference/src/tasks/cv/textToVideo.ts:13
Ƭ TokenClassificationArgs: BaseArgs & TokenClassificationInput
inference/src/tasks/nlp/tokenClassification.ts:7
Ƭ TranslationArgs: BaseArgs & TranslationInput
inference/src/tasks/nlp/translation.ts:7
Ƭ VisualQuestionAnsweringArgs: BaseArgs & VisualQuestionAnsweringInput & { inputs: VisualQuestionAnsweringInputData & { image: Blob } }
inference/src/tasks/multimodal/visualQuestionAnswering.ts:13
Ƭ ZeroShotClassificationArgs: BaseArgs & ZeroShotClassificationInput
inference/src/tasks/nlp/zeroShotClassification.ts:7
Ƭ ZeroShotImageClassificationArgs: BaseArgs & ZeroShotImageClassificationInput | LegacyZeroShotImageClassificationInput
inference/src/tasks/cv/zeroShotImageClassification.ts:15
• Const INFERENCE_PROVIDERS: readonly ["black-forest-labs", "cerebras", "cohere", "fal-ai", "featherless-ai", "fireworks-ai", "groq", "hf-inference", "hyperbolic", "nebius", "novita", "nscale", "openai", "ovhcloud", "replicate", "sambanova", "together"]
• Const PROVIDERS: Record\<InferenceProvider, Partial\<Record\<InferenceTask, TaskProviderHelper>>>
inference/src/lib/getProviderHelper.ts:54
• Const PROVIDERS_OR_POLICIES: readonly ["black-forest-labs", "cerebras", "cohere", "fal-ai", "featherless-ai", "fireworks-ai", "groq", "hf-inference", "hyperbolic", "nebius", "novita", "nscale", "openai", "ovhcloud", "replicate", "sambanova", "together", "auto"]
▸ audioClassification(args, options?): Promise\<AudioClassificationOutput>
This task reads some audio input and outputs the likelihood of classes. Recommended model: superb/hubert-large-superb-er
| Name | Type |
|---|---|
args | AudioClassificationArgs |
options? | Options |
Promise\<AudioClassificationOutput>
inference/src/tasks/audio/audioClassification.ts:15
▸ audioToAudio(args, options?): Promise\<AudioToAudioOutput[]>
This task reads some audio input and outputs one or multiple audio files. Example model: speechbrain/sepformer-wham does audio source separation.
| Name | Type |
|---|---|
args | AudioToAudioArgs |
options? | Options |
Promise\<AudioToAudioOutput[]>
inference/src/tasks/audio/audioToAudio.ts:39
▸ automaticSpeechRecognition(args, options?): Promise\<AutomaticSpeechRecognitionOutput>
This task reads some audio input and outputs the said words within the audio files. Recommended model (english language): facebook/wav2vec2-large-960h-lv60-self
| Name | Type |
|---|---|
args | AutomaticSpeechRecognitionArgs |
options? | Options |
Promise\<AutomaticSpeechRecognitionOutput>
inference/src/tasks/audio/automaticSpeechRecognition.ts:14
▸ chatCompletion(args, options?): Promise\<ChatCompletionOutput>
Use the chat completion endpoint to generate a response to a prompt, using OpenAI message completion API no stream
| Name | Type |
|---|---|
args | BaseArgs & ChatCompletionInput |
options? | Options |
Promise\<ChatCompletionOutput>
inference/src/tasks/nlp/chatCompletion.ts:10
▸ chatCompletionStream(args, options?): AsyncGenerator\<ChatCompletionStreamOutput>
Use to continue text from a prompt. Same as textGeneration but returns generator that can be read one token at a time
| Name | Type |
|---|---|
args | BaseArgs & ChatCompletionInput |
options? | Options |
AsyncGenerator\<ChatCompletionStreamOutput>
inference/src/tasks/nlp/chatCompletionStream.ts:10
▸ documentQuestionAnswering(args, options?): Promise\<DocumentQuestionAnsweringOutput[number]>
Answers a question on a document image. Recommended model: impira/layoutlm-document-qa.
| Name | Type |
|---|---|
args | DocumentQuestionAnsweringArgs |
options? | Options |
Promise\<DocumentQuestionAnsweringOutput[number]>
inference/src/tasks/multimodal/documentQuestionAnswering.ts:19
▸ featureExtraction(args, options?): Promise\<FeatureExtractionOutput>
This task reads some text and outputs raw float values, that are usually consumed as part of a semantic database/semantic search.
| Name | Type |
|---|---|
args | FeatureExtractionArgs |
options? | Options |
Promise\<FeatureExtractionOutput>
inference/src/tasks/nlp/featureExtraction.ts:22
▸ fillMask(args, options?): Promise\<FillMaskOutput>
Tries to fill in a hole with a missing word (token to be precise). That’s the base task for BERT models.
| Name | Type |
|---|---|
args | FillMaskArgs |
options? | Options |
Promise\<FillMaskOutput>
inference/src/tasks/nlp/fillMask.ts:12
▸ getProviderHelper(provider, task): TextToImageTaskHelper & TaskProviderHelper
Get provider helper instance by name and task
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-to-image" |
TextToImageTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:159
▸ getProviderHelper(provider, task): ConversationalTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "conversational" |
ConversationalTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:163
▸ getProviderHelper(provider, task): TextGenerationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-generation" |
TextGenerationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:167
▸ getProviderHelper(provider, task): TextToSpeechTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-to-speech" |
TextToSpeechTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:171
▸ getProviderHelper(provider, task): TextToAudioTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-to-audio" |
TextToAudioTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:175
▸ getProviderHelper(provider, task): AutomaticSpeechRecognitionTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "automatic-speech-recognition" |
AutomaticSpeechRecognitionTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:179
▸ getProviderHelper(provider, task): TextToVideoTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-to-video" |
TextToVideoTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:183
▸ getProviderHelper(provider, task): TextClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "text-classification" |
TextClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:187
▸ getProviderHelper(provider, task): QuestionAnsweringTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "question-answering" |
QuestionAnsweringTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:191
▸ getProviderHelper(provider, task): AudioClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "audio-classification" |
AudioClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:195
▸ getProviderHelper(provider, task): AudioToAudioTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "audio-to-audio" |
AudioToAudioTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:199
▸ getProviderHelper(provider, task): FillMaskTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "fill-mask" |
FillMaskTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:203
▸ getProviderHelper(provider, task): FeatureExtractionTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "feature-extraction" |
FeatureExtractionTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:207
▸ getProviderHelper(provider, task): ImageClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "image-classification" |
ImageClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:211
▸ getProviderHelper(provider, task): ImageSegmentationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "image-segmentation" |
ImageSegmentationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:215
▸ getProviderHelper(provider, task): DocumentQuestionAnsweringTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "document-question-answering" |
DocumentQuestionAnsweringTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:219
▸ getProviderHelper(provider, task): ImageToTextTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "image-to-text" |
ImageToTextTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:223
▸ getProviderHelper(provider, task): ObjectDetectionTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "object-detection" |
ObjectDetectionTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:227
▸ getProviderHelper(provider, task): ZeroShotImageClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "zero-shot-image-classification" |
ZeroShotImageClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:231
▸ getProviderHelper(provider, task): ZeroShotClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "zero-shot-classification" |
ZeroShotClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:235
▸ getProviderHelper(provider, task): ImageToImageTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "image-to-image" |
ImageToImageTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:239
▸ getProviderHelper(provider, task): ImageToVideoTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "image-to-video" |
ImageToVideoTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:243
▸ getProviderHelper(provider, task): SentenceSimilarityTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "sentence-similarity" |
SentenceSimilarityTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:247
▸ getProviderHelper(provider, task): TableQuestionAnsweringTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "table-question-answering" |
TableQuestionAnsweringTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:251
▸ getProviderHelper(provider, task): TabularClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "tabular-classification" |
TabularClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:255
▸ getProviderHelper(provider, task): TabularRegressionTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "tabular-regression" |
TabularRegressionTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:259
▸ getProviderHelper(provider, task): TokenClassificationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "token-classification" |
TokenClassificationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:263
▸ getProviderHelper(provider, task): TranslationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "translation" |
TranslationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:267
▸ getProviderHelper(provider, task): SummarizationTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "summarization" |
SummarizationTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:271
▸ getProviderHelper(provider, task): VisualQuestionAnsweringTaskHelper & TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | "visual-question-answering" |
VisualQuestionAnsweringTaskHelper & TaskProviderHelper
inference/src/lib/getProviderHelper.ts:275
▸ getProviderHelper(provider, task): TaskProviderHelper
| Name | Type |
|---|---|
provider | "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together" | "auto" |
task | undefined | InferenceTask |
TaskProviderHelper
inference/src/lib/getProviderHelper.ts:279
▸ imageClassification(args, options?): Promise\<ImageClassificationOutput>
This task reads some image input and outputs the likelihood of classes. Recommended model: google/vit-base-patch16-224
| Name | Type |
|---|---|
args | ImageClassificationArgs |
options? | Options |
Promise\<ImageClassificationOutput>
inference/src/tasks/cv/imageClassification.ts:14
▸ imageSegmentation(args, options?): Promise\<ImageSegmentationOutput>
This task reads some image input and outputs the likelihood of classes & bounding boxes of detected objects. Recommended model: facebook/detr-resnet-50-panoptic
| Name | Type |
|---|---|
args | ImageSegmentationArgs |
options? | Options |
Promise\<ImageSegmentationOutput>
inference/src/tasks/cv/imageSegmentation.ts:14
▸ imageToImage(args, options?): Promise\<Blob>
This task reads some text input and outputs an image. Recommended model: lllyasviel/sd-controlnet-depth
| Name | Type |
|---|---|
args | ImageToImageArgs |
options? | Options |
Promise\<Blob>
inference/src/tasks/cv/imageToImage.ts:14
▸ imageToText(args, options?): Promise\<ImageToTextOutput>
This task reads some image input and outputs the text caption.
| Name | Type |
|---|---|
args | ImageToTextArgs |
options? | Options |
Promise\<ImageToTextOutput>
inference/src/tasks/cv/imageToText.ts:13
▸ imageToVideo(args, options?): Promise\<Blob>
This task reads some text input and outputs an image. Recommended model: Wan-AI/Wan2.1-I2V-14B-720P
| Name | Type |
|---|---|
args | ImageToVideoArgs |
options? | Options |
Promise\<Blob>
inference/src/tasks/cv/imageToVideo.ts:14
▸ makeRequestOptions(args, providerHelper, options?): Promise\<{ info: RequestInit ; url: string }>
Helper that prepares request arguments. This async version handle the model ID resolution step.
| Name | Type |
|---|---|
args | RequestArgs & { data?: Blob | ArrayBuffer ; stream?: boolean } |
providerHelper | TaskProviderHelper |
options? | Options & { task?: InferenceTask } |
Promise\<{ info: RequestInit ; url: string }>
inference/src/lib/makeRequestOptions.ts:19
▸ makeRequestOptionsFromResolvedModel(resolvedModel, providerHelper, args, mapping, options?): Object
Helper that prepares request arguments. - for internal use only This sync version skips the model ID resolution step
| Name | Type |
|---|---|
resolvedModel | string |
providerHelper | TaskProviderHelper |
args | RequestArgs & { data?: Blob | ArrayBuffer ; stream?: boolean } |
mapping | undefined | InferenceProviderMappingEntry |
options? | Options & { task?: InferenceTask } |
Object
| Name | Type |
|---|---|
info | RequestInit |
url | string |
inference/src/lib/makeRequestOptions.ts:105
▸ objectDetection(args, options?): Promise\<ObjectDetectionOutput>
This task reads some image input and outputs the likelihood of classes & bounding boxes of detected objects. Recommended model: facebook/detr-resnet-50
| Name | Type |
|---|---|
args | ObjectDetectionArgs |
options? | Options |
Promise\<ObjectDetectionOutput>
inference/src/tasks/cv/objectDetection.ts:14
▸ questionAnswering(args, options?): Promise\<QuestionAnsweringOutput[number]>
Want to have a nice know-it-all bot that can answer any question?. Recommended model: deepset/roberta-base-squad2
| Name | Type |
|---|---|
args | QuestionAnsweringArgs |
options? | Options |
Promise\<QuestionAnsweringOutput[number]>
inference/src/tasks/nlp/questionAnswering.ts:13
▸ request\<T>(args, options?): Promise\<T>
Primitive to make custom calls to the inference provider
| Name |
|---|
T |
| Name | Type |
|---|---|
args | RequestArgs |
options? | Options & { task?: InferenceTask } |
Promise\<T>
Deprecated
Use specific task functions instead. This function will be removed in a future version.
inference/src/tasks/custom/request.ts:10
▸ sentenceSimilarity(args, options?): Promise\<SentenceSimilarityOutput>
Calculate the semantic similarity between one text and a list of other sentences by comparing their embeddings.
| Name | Type |
|---|---|
args | SentenceSimilarityArgs |
options? | Options |
Promise\<SentenceSimilarityOutput>
inference/src/tasks/nlp/sentenceSimilarity.ts:12
▸ streamingRequest\<T>(args, options?): AsyncGenerator\<T>
Primitive to make custom inference calls that expect server-sent events, and returns the response through a generator
| Name |
|---|
T |
| Name | Type |
|---|---|
args | RequestArgs |
options? | Options & { task?: InferenceTask } |
AsyncGenerator\<T>
Deprecated
Use specific task functions instead. This function will be removed in a future version.
inference/src/tasks/custom/streamingRequest.ts:10
▸ summarization(args, options?): Promise\<SummarizationOutput>
This task is well known to summarize longer text into shorter text. Be careful, some models have a maximum length of input. That means that the summary cannot handle full books for instance. Be careful when choosing your model.
| Name | Type |
|---|---|
args | SummarizationArgs |
options? | Options |
Promise\<SummarizationOutput>
inference/src/tasks/nlp/summarization.ts:12
▸ tableQuestionAnswering(args, options?): Promise\<TableQuestionAnsweringOutput[number]>
Don’t know SQL? Don’t want to dive into a large spreadsheet? Ask questions in plain english! Recommended model: google/tapas-base-finetuned-wtq.
| Name | Type |
|---|---|
args | TableQuestionAnsweringArgs |
options? | Options |
Promise\<TableQuestionAnsweringOutput[number]>
inference/src/tasks/nlp/tableQuestionAnswering.ts:12
▸ tabularClassification(args, options?): Promise\<TabularClassificationOutput>
Predicts target label for a given set of features in tabular form. Typically, you will want to train a classification model on your training data and use it with your new data of the same format. Example model: vvmnnnkv/wine-quality
| Name | Type |
|---|---|
args | TabularClassificationArgs |
options? | Options |
Promise\<TabularClassificationOutput>
inference/src/tasks/tabular/tabularClassification.ts:25
▸ tabularRegression(args, options?): Promise\<TabularRegressionOutput>
Predicts target value for a given set of features in tabular form. Typically, you will want to train a regression model on your training data and use it with your new data of the same format. Example model: scikit-learn/Fish-Weight
| Name | Type |
|---|---|
args | TabularRegressionArgs |
options? | Options |
Promise\<TabularRegressionOutput>
inference/src/tasks/tabular/tabularRegression.ts:25
▸ textClassification(args, options?): Promise\<TextClassificationOutput>
Usually used for sentiment-analysis this will output the likelihood of classes of an input. Recommended model: distilbert-base-uncased-finetuned-sst-2-english
| Name | Type |
|---|---|
args | TextClassificationArgs |
options? | Options |
Promise\<TextClassificationOutput>
inference/src/tasks/nlp/textClassification.ts:12
▸ textGeneration(args, options?): Promise\<TextGenerationOutput>
Use to continue text from a prompt. This is a very generic task. Recommended model: gpt2 (it’s a simple model, but fun to play with).
| Name | Type |
|---|---|
args | BaseArgs & TextGenerationInput |
options? | Options |
Promise\<TextGenerationOutput>
inference/src/tasks/nlp/textGeneration.ts:13
▸ textGenerationStream(args, options?): AsyncGenerator\<TextGenerationStreamOutput>
Use to continue text from a prompt. Same as textGeneration but returns generator that can be read one token at a time
| Name | Type |
|---|---|
args | BaseArgs & TextGenerationInput |
options? | Options |
AsyncGenerator\<TextGenerationStreamOutput>
inference/src/tasks/nlp/textGenerationStream.ts:90
▸ textToImage(args, options?): Promise\<string>
This task reads some text input and outputs an image. Recommended model: stabilityai/stable-diffusion-2
| Name | Type |
|---|---|
args | TextToImageArgs |
options? | TextToImageOptions & { outputType: "url" } |
Promise\<string>
inference/src/tasks/cv/textToImage.ts:18
▸ textToImage(args, options?): Promise\<Blob>
| Name | Type |
|---|---|
args | TextToImageArgs |
options? | TextToImageOptions & { outputType?: "blob" } |
Promise\<Blob>
inference/src/tasks/cv/textToImage.ts:22
▸ textToSpeech(args, options?): Promise\<Blob>
This task synthesize an audio of a voice pronouncing a given text. Recommended model: espnet/kan-bayashi_ljspeech_vits
| Name | Type |
|---|---|
args | TextToSpeechArgs |
options? | Options |
Promise\<Blob>
inference/src/tasks/audio/textToSpeech.ts:15
▸ textToVideo(args, options?): Promise\<TextToVideoOutput>
| Name | Type |
|---|---|
args | TextToVideoArgs |
options? | Options |
Promise\<TextToVideoOutput>
inference/src/tasks/cv/textToVideo.ts:15
▸ tokenClassification(args, options?): Promise\<TokenClassificationOutput>
Usually used for sentence parsing, either grammatical, or Named Entity Recognition (NER) to understand keywords contained within text. Recommended model: dbmdz/bert-large-cased-finetuned-conll03-english
| Name | Type |
|---|---|
args | TokenClassificationArgs |
options? | Options |
Promise\<TokenClassificationOutput>
inference/src/tasks/nlp/tokenClassification.ts:12
▸ translation(args, options?): Promise\<TranslationOutput>
This task is well known to translate text from one language to another. Recommended model: Helsinki-NLP/opus-mt-ru-en.
| Name | Type |
|---|---|
args | TranslationArgs |
options? | Options |
Promise\<TranslationOutput>
inference/src/tasks/nlp/translation.ts:11
▸ visualQuestionAnswering(args, options?): Promise\<VisualQuestionAnsweringOutput[number]>
Answers a question on an image. Recommended model: dandelin/vilt-b32-finetuned-vqa.
| Name | Type |
|---|---|
args | VisualQuestionAnsweringArgs |
options? | Options |
Promise\<VisualQuestionAnsweringOutput[number]>
inference/src/tasks/multimodal/visualQuestionAnswering.ts:19
▸ zeroShotClassification(args, options?): Promise\<ZeroShotClassificationOutput>
This task is super useful to try out classification with zero code, you simply pass a sentence/paragraph and the possible labels for that sentence, and you get a result. Recommended model: facebook/bart-large-mnli.
| Name | Type |
|---|---|
args | ZeroShotClassificationArgs |
options? | Options |
Promise\<ZeroShotClassificationOutput>
inference/src/tasks/nlp/zeroShotClassification.ts:12
▸ zeroShotImageClassification(args, options?): Promise\<ZeroShotImageClassificationOutput>
Classify an image to specified classes. Recommended model: openai/clip-vit-large-patch14-336
| Name | Type |
|---|---|
args | ZeroShotImageClassificationArgs |
options? | Options |
Promise\<ZeroShotImageClassificationOutput>
inference/src/tasks/cv/zeroShotImageClassification.ts:44
< > Update on GitHub