Skip to content

Commit da19a18

Browse files
committed
latest
1 parent bcf6699 commit da19a18

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

generate-images-with-claude-and-mcp.md renamed to claude-and-mcp.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
22
title: "Generate Images with Claude and Hugging Face"
3-
thumbnail: /blog/assets/generate-images-with-claude-and-mcp/thumbnail.png
3+
thumbnail: /blog/assets/claude-and-mcp/thumbnail.png
44
authors:
55
- user: evalstate
66
---
77

8-
# Create Images with Claude and Hugging Face
8+
# Generate Images with Claude and Hugging Face
99

1010
> [!TIP]
11-
> **TL;DR:** Its easier than ever to generate detailed pictures with state-of-the-art AI models - by connecting Claude to Hugging Face Spaces. This article describes how and why, and introduces recently launched models which excel at producing natural images and including text.
11+
> **TL;DR:** It's easier than ever to generate detailed pictures with state-of-the-art AI models by connecting Claude to Hugging Face Spaces. This article describes how and why, and introduces recently launched models which excel at producing natural images or images that include text.
1212
1313
## Introduction
1414

1515
Recent advances in image generation models have improved their ability to produce realistic outputs and incorporate high quality text. It's easier than ever to use these models by connecting them directly to Claude.
1616

17-
The advantages of generating pictures using this way are:
18-
- The AI can assist in building detailed prompts that may improve the output quality of generated images.
17+
The advantages of generating pictures this way are:
18+
- The AI can assist in building detailed prompts that may improve the quality of generated images.
1919
- The AI can "see" the generated images, then help iterate on designs and techniques to get perfect results.
20+
- You can easily swap in the latest models or the one best suited for your needs.
2021

2122
To get started, create a free [Hugging Face account](https://huggingface.co/join), then connect Claude from its "Search and tools" menu in the chat input box. The video below shows the exact steps needed:
2223

@@ -30,9 +31,9 @@ To get started, create a free [Hugging Face account](https://huggingface.co/join
3031
<figcaption>Conneting Claude to Hugging Face</figcaption>
3132
</figure>
3233

33-
Behind the scenes Claude is now set up to use tools from the [Hugging Face MCP Server](https://huggingface.co/mcp?login), seamlessly extending it's capabilities. This includes the latest AI Applications running on our innovative [ZeroGPU](https://huggingface.co/docs/hub/spaces-zerogpu) powered Spaces - providing free access to large, powerful models that are would normally be expensive to use.
34+
Behind the scenes Claude is now set up to use tools from the [Hugging Face MCP Server](https://huggingface.co/mcp?login), seamlessly extending it's capabilities. This includes the latest AI Applications running on our innovative [ZeroGPU](https://huggingface.co/docs/hub/spaces-zerogpu) powered Spaces. Your Hugging Face account provides free credits to use these large, powerful models.
3435

35-
Confirm that that the Hugging Face tools are available from the "Search and tools" menu... and now we are ready to try some of the latest models.
36+
After Claude has been connected with Hugging Face, we'll show how to configure image generation tools that Claude can use.
3637

3738
## Natural Images with Flux.1 Krea Dev
3839

@@ -43,7 +44,7 @@ Confirm that that the Hugging Face tools are available from the "Search and tool
4344
<figcaption>Examples from the Krea Image Generator</figcaption>
4445
</figure>
4546

46-
To try **Krea**, go to [`huggingface.co/mcp/settings`](https://huggingface.co/settings/mcp) and add `evalstate/flux1-krea` to your "Spaces Tools". This will add a tool named something similar to "`flux1_krea_dev_infer`" to Claude. This enables Claude to generate beautiful, realistic looking images. Note the precise name may vary slightly depending on your configuration.
47+
To use **Krea** with Claude, go to [`huggingface.co/mcp/settings`](https://huggingface.co/settings/mcp) and add `evalstate/FLUX.1-Krea-dev` to your "Spaces Tools". That's all you need to enable Claude to generate beautiful, realistic looking images.
4748

4849
<figure class="image flex flex-col items-center text-center m-0 w-full">
4950
<video
@@ -58,7 +59,7 @@ To try **Krea**, go to [`huggingface.co/mcp/settings`](https://huggingface.co/se
5859

5960
You can then try a prompt in Claude like:
6061

61-
> "Use Krea to create an image of a Vibrant garden with victorian house".
62+
> "Use Krea to create an image of a vibrant garden with victorian house".
6263
6364
To begin generating pictures.
6465

@@ -71,21 +72,16 @@ To begin generating pictures.
7172
<figcaption>Examples from the Qwen-Image Generator</figcaption>
7273
</figure>
7374

74-
7575
To use **Qwen-Image** add `evalstate/qwen-image` from your [MCP Servers setting](https://huggingface.co/settings/mcp) page, then check it is enabled in Claude to start using it.
7676

77-
You can even keep both enabled and ask Claude to use both and compare results for similar concepts - for example: "Use Krea and Qwen to generate a street scene with 'Hugging Face' graffiti sprayed on the wall".
78-
77+
You can even keep both Krea and Qwen-Image enabled and ask Claude to use both so you can compare results. For example: "Use Krea and Qwen to generate a street scene with 'Hugging Face' graffiti sprayed on the wall".
7978

8079
<figure class="image text-center">
8180
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/claude-images-mcp/krea_hf_example.webp" alt="Hugging Face Graffiti Street Scene">
8281
<figcaption>Hugging Face Graffiti Street Scene</figcaption>
8382
</figure>
8483

8584

86-
8785
## Conclusion
8886

89-
Connecting Claude to Hugging Face Spaces makes using state-of-the-art models on the day of release as easy as clicking a button. Explore the AI App Directory at [https://huggingface.co/spaces](https://huggingface.co/spaces) and build amazing things with [Video Generation](https://huggingface.co/spaces/evalstate/ltx-video-distilled), [Text Generation](https://huggingface.co/spaces/amd/gpt-oss-120b-chatbot), [Image Editing](https://huggingface.co/spaces/evalstate/FLUX.1-Kontext-Dev) and many thousands more. Let us know what you find and create in the comments below.
90-
91-
With a Hugging Face account, it's simple to add new tools to Claude and use them straight away.
87+
Connecting Claude to Hugging Face Spaces makes using state-of-the-art models as easy as clicking a button, even the day new models are released. Explore the AI App Directory at [https://huggingface.co/spaces](https://huggingface.co/spaces) and build amazing projects with [Video Generation](https://huggingface.co/spaces/evalstate/ltx-video-distilled), [Web Search](https://huggingface.co/spaces/victor/websearch), [Image Editing](https://huggingface.co/spaces/evalstate/FLUX.1-Kontext-Dev) and many thousands more. With a [Pro account](https://huggingface.co/pro) you get increased usage limits and more. Let us know what you find and create in the comments below!

0 commit comments

Comments
 (0)