Combined Text and Image Generation

Generate both text and images using Google AI and Hugging Face APIs. You can input a text prompt, and the system will generate a text response using Google AI API and an image using Hugging Face Inference API based on the same prompt. This demonstrates how to combine multiple AI services to create richer applications.

Input Text

Describe the tteokbokki so that we can generate yummy image.

Generated Response/Output

**Vivid Prompt for a Mouth‑Watering Tteokbokki Image**

- **Main Focus:** A close‑up, slightly angled view of a steaming bowl of tteokbokki. The camera is positioned just above the rim, allowing the viewer to see the glossy, ruby‑red sauce coating every bite‑size element.

- **Rice Cakes (tteok):**
- Thick, cylindrical rice cakes with a soft, chewy texture.
- Their surfaces are slightly glossy from the sauce, showing a subtle sheen that catches the light.
- Some pieces are cut in half, revealing a fluffy, slightly translucent interior that hints at their tender bite.

- **Sauce:**
- A deep, vibrant red gochujang‑based sauce that looks thick and velvety.
- Tiny flecks of minced garlic and ginger are visible, adding specks of off‑white and pale yellow.
- A faint, glossy glaze clings to the edges of the rice cakes and other ingredients, suggesting a perfect balance of sweet, spicy, and umami.

- **Accompanying Ingredients:**
- **Fish Cakes (eomuk):** Thin, white, slightly translucent slices with a delicate, silky texture, peeking out from under the sauce.
- **Boiled Eggs:** Halved, bright yellow yolks peeking through the red glaze, their creamy interior contrasting beautifully.
- **Scallions:** Fresh, emerald‑green rings and thin diagonal slices scattered across the top, adding a pop of color and a hint of crisp freshness.
- **Sesame Seeds:** A light dusting of toasted white sesame seeds, providing a subtle nutty aroma and a speckled texture.

- **Steam & Atmosphere:**
- Wisps of gentle, translucent steam rise from the bowl, catching the light and giving the scene a warm, inviting feel.
- The steam curls around the edges of the rice cakes, emphasizing that the dish is hot and freshly served.

- **Bowl & Setting:**
- A rustic, matte‑finished white or light‑gray ceramic bowl that frames the vivid colors of the tteokbokki.
- The bowl sits on a wooden table with a subtle grain pattern, adding a cozy, homestyle vibe.
- Soft, natural lighting from a nearby window creates gentle highlights on the sauce’s sheen and casts a warm, golden glow over the entire composition.

- **Overall Mood:**
- The image feels vibrant, comforting, and irresistibly appetizing—capturing the essence of a beloved Korean street‑food classic that’s both spicy and sweet, soft yet satisfying, and visually striking with its bold red hue against the fresh green scallions and creamy yellow yolks.

Use these details as a prompt for an image‑generation model (e.g., “A close‑up of steaming tteokbokki in a white ceramic bowl, glossy ruby‑red gochujang sauce coating chewy rice cakes, white fish cake slices, halved boiled eggs with bright yellow yolks, emerald scallion rings, toasted sesame seeds, gentle steam rising, warm natural lighting, rustic wooden table background”). This should guide the model to create a truly yummy, mouth‑watering illustration.