CLAP HTSAT Fused

CLAP_HTSAT_FUSED

Audio and text embeddings in one 512-dimensional space, for searching sounds by description, finding similar sounds and zero-shot audio classification.

Embeddingsembeddingsaudio-textclapzero-shotsoundapache-2.0Fine-tunable
CLAP HTSAT Fused: Embeddings model on Kainguru

About CLAP HTSAT Fused

Capabilities

  • Sounds and text in one space — describe a sound in words and find the recordings that match
  • Zero-shot audio classification — send a clip with candidate labels and get a score for each, with no training
  • Longer clips — a clip over 10 seconds is read as a whole and as three 10-second parts
  • Fine-tunable — adapt it to your own recordings and descriptions with a LoRA fine-tune

Good to know

  • Audio is resampled to 48 kHz mono. Recordings may be up to 60 seconds long, clips for fine-tuning up to 30 seconds.
  • English descriptions only; texts are read up to 77 tokens and longer texts are cut.
  • With both texts and recordings, each recording's scores are shares over the texts you sent and add up to 1.
  • The same recording always gives the same vector; a fine-tuned model has a vector space of its own.

CLAP HTSAT Fused inputs and output

NameTypeRequiredDefaultDetails
audiofile listOne of: texts, audio—Up to 16 recordings (WAV, MP3, FLAC, OGG, M4A, AAC or WebM) of up to 60 seconds and 50 MB each. Send texts, recordings or both.
1–16 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm
textstextOne of: texts, audio—One text, or a JSON array of up to 64 texts of up to 500 characters; each is read up to the model's token limit (see its notes).
1–192258 characters

Output. JSON: {"text_embeddings": [[...]], "audio_embeddings": [[...]], "dimensions": n} for what was sent, unit-length vectors in one space; with both, "scores": per recording, each text's share from 0 to 1.

Run CLAP HTSAT Fused with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=CLAP_HTSAT_FUSED" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {},
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "CLAP_HTSAT_FUSED",
        {},
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune CLAP HTSAT Fused

You can fine-tune CLAP HTSAT Fused on your own data and run the tuned model through the same API. Dataset: 8 to 2000 {file, text} items: a clip of up to 30 seconds and 50 MB and a description of what it sounds like (up to 1000 characters). A clip may come with several captions.

The steps are in the docs.

CLAP HTSAT Fused pricing

Price per request: 0.02185 credits ($0.0002185). The price is shown again before every run; all prices are on the pricing page.

Licence and source

SigLIP 2 Large Patch16 384: Embeddings model on Kainguru
Embeddings

SigLIP 2 Large Patch16 384

Image and text embeddings in one 1024-dimensional space from Google's SigLIP 2, for image search, image-text matching…

Fine-tunable
All MiniLM L6 v2: Embeddings model on Kainguru
Embeddings

All MiniLM L6 v2

Fast, compact English sentence embeddings for semantic search, clustering and finding duplicate texts.

Fine-tunable
All MPNet Base v2: Embeddings model on Kainguru
Embeddings

All MPNet Base v2

English sentence and paragraph embeddings for semantic search, clustering and finding similar texts.

Fine-tunable
CLIP ViT-L/14 LAION-2B: Embeddings model on Kainguru
Embeddings

CLIP ViT-L/14 LAION-2B

Image and text embeddings in one 768-dimensional space, for searching images by text, finding similar images and…

Fine-tunable
ECAPA-TDNN VoxCeleb: Embeddings model on Kainguru
Embeddings

ECAPA-TDNN VoxCeleb

Speaker embeddings, a 192-number voice print per recording, for checking whether two recordings are of the same…

Fine-tunable