#
Replicate

> All supported Replicate models can be found here

Replicate is building tools so all software engineers can use AI as if it were normal software. You should be able to import an image generator the same way you import an npm package. You should be able to customize a model as easily as you can fork something on GitHub.

##
Supported tasks

###
Automatic Speech Recognition

Find out more about Automatic Speech Recognition here.

Language

Client

Provider

Settings

    import os
    from huggingface_hub import InferenceClient

    client = InferenceClient(
        provider="replicate",
        api_key=os.environ["HF_TOKEN"],
    )

    output = client.automatic_speech_recognition("sample1.flac", model="openai/whisper-large-v3")

###
Image To Image

Find out more about Image To Image here.

Language

Client

Provider

Settings

    import os
    from huggingface_hub import InferenceClient

    client = InferenceClient(
        provider="replicate",
        api_key=os.environ["HF_TOKEN"],
    )

    with open("cat.png", "rb") as image_file:
       input_image = image_file.read()

    # output is a PIL.Image object
    image = client.image_to_image(
        input_image,
        prompt="Turn the cat into a tiger.",
        model="black-forest-labs/FLUX.1-Kontext-dev",
    )

###
Text To Image

Find out more about Text To Image here.

Language

Provider

Settings

    import os
    from huggingface_hub import InferenceClient

    client = InferenceClient(
        provider="replicate",
        api_key=os.environ["HF_TOKEN"],
    )

    # output is a PIL.Image object
    image = client.text_to_image(
        "Astronaut riding a horse",
        model="tencent/HunyuanImage-3.0",
    )

###
Text To Video

Find out more about Text To Video here.

Language

Provider

Settings

    import os
    from huggingface_hub import InferenceClient

    client = InferenceClient(
        provider="replicate",
        api_key=os.environ["HF_TOKEN"],
    )

    video = client.text_to_video(
        "A young man walking on the street",
        model="Wan-AI/Wan2.2-TI2V-5B",
    )

Update on GitHub