Inference Providers documentation

Replicate

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

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.

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.

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="Qwen/Qwen-Image-Edit", )

Text To Image

Find out more about Text To Image here.

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="briaai/FIBO", )

Text To Video

Find out more about Text To Video here.

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