Rule: Huggingface Text To Image (AI Interpolator Huggingface)
Summary:
The Huggingface Text To Image rule, takes a prompt and generates an image using one of the many Text To Image models.
You can choose between using the free inference API where available or host a dedicated endpoint via their system.
If you run the model frequently or need to have it readily available, the dedicated endpoint is the only way to go.
Module needed:
Huggingface
Field types to populate:
- Image
Base Fields types to use as context:
- Text (plain)
- Text (plain, long)
- Text (formatted)
- Text (formatted, long)
- Text (formatted, long, with summary)
Extra Requirements:
You need a Huggingface account and in the case of using it in production, a setup endpoint on the dedicated endpoint api.
Prompting tips:
This all depends on the model, but here is a good tutorial on Stable Diffusion prompts.
Extra Settings:
None
Extra Advanced Settings:
Type of Inference
Choose the type of inference to use, between the free API or the dedicated endpoint.
Huggingface Model
If you use the free API here, you have to give the namespace to a Text To Image model, that allows to use the free dedicated api.
Possible example use cases:
- Generate generic images (though Dall-E 3 is better at this)
- Generate images from finetuned models.
- Generate images from specialized models.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion