diff --git a/_blog.yml b/_blog.yml index fd9f8cf771..cf02c7e198 100644 --- a/_blog.yml +++ b/_blog.yml @@ -6541,3 +6541,14 @@ - llm - evaluation - agents + +- local: generate-images-with-claude-and-mcp + title: Generate Images with Claude and Hugging Face + author: evalstate + thumbnail: /blog/assets/generate-images-with-claude-and-mcp/thumbnail.png + date: Aug 14, 2025 + tags: + - mcp + - llm + - qwen + - text_to_image diff --git a/assets/generate-images-with-claude-and-mcp/thumbnail.png b/assets/generate-images-with-claude-and-mcp/thumbnail.png new file mode 100644 index 0000000000..610bd906d9 Binary files /dev/null and b/assets/generate-images-with-claude-and-mcp/thumbnail.png differ diff --git a/generate-images-with-claude-and-mcp.md b/generate-images-with-claude-and-mcp.md new file mode 100644 index 0000000000..8aec149c2f --- /dev/null +++ b/generate-images-with-claude-and-mcp.md @@ -0,0 +1,91 @@ +--- +title: "Generate Images with Claude and Hugging Face" +thumbnail: /blog/assets/generate-images-with-claude-and-mcp/thumbnail.png +authors: +- user: evalstate +--- + +# Create Images with Claude and Hugging Face + +> [!TIP] +> **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. + +## Introduction + +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. + +The advantages of generating pictures using this way are: + - The AI can assist in building detailed prompts that may improve the output quality of generated images. + - The AI can "see" the generated images, then help iterate on designs and techniques to get perfect results. + +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: + +
+ +
Conneting Claude to Hugging Face
+
+ +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. + +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. + +## Natural Images with Flux.1 Krea Dev + +[FLUX.1 Krea [dev]](https://huggingface.co/black-forest-labs/FLUX.1-Krea-dev) aims to eliminate the telltale "AI look" that often plague generated images - for example plastic skin, oversaturated colors, or overly smooth textures. If you want images that look like they were shot by a professional photographer rather than generated by a computer, Krea delivers the realistic textures, natural lighting, and authentic aesthetics that other AI models struggle with. You can read more about how they did this [on their blog](https://www.krea.ai/blog/flux-krea-open-source-release). + +
+ Examples from Krea +
Examples from the Krea Image Generator
+
+ +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. + +
+ +
Adding a Space in MCP Settings
+
+ + +You can then try a prompt in Claude like: + +> "Use Krea to create an image of a Vibrant garden with victorian house". + +To begin generating pictures. + +## Qwen Image + +[Qwen-Image](https://huggingface.co/Qwen/Qwen-Image) is a powerful AI image generator that excels at creating images with accurate text rendering, making it ideal for designing posters, signs, infographics, and marketing materials where text quality matters. Read more about the Qwen-Image model from their [blog post](https://qwenlm.github.io/blog/qwen-image/). + +
+ Examples from Qwen +
Examples from the Qwen-Image Generator
+
+ + +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. + +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". + + +
+ Hugging Face Graffiti Street Scene +
Hugging Face Graffiti Street Scene
+
+ + + +## Conclusion + +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. + +With a Hugging Face account, it's simple to add new tools to Claude and use them straight away.