BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks.
nano-banana-2/api/v1/nano_banana/text_to_image
运行信息
模型
nano-banana-2
提供方
Google
服务
Nano Banana
Endpoint
Text To Image
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
}
JSON
import { NanoBananaClient } from "@runapi.ai/nano-banana";
const client = new NanoBananaClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"model": "nano-banana-2",
"prompt": "BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
});
console.log(result.id);
require "runapi/nano_banana"
client = RunApi::NanoBanana::Client.new
result = client.text_to_image.run(
model: "nano-banana-2",
prompt: "BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks."
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"nano-banana-2\",\"prompt\":\"BAGEL LABS. Act as a creative director curating a wide-ranging, eclectic collection of “recontextualized everyday objects.” DIVERSE OBJECT SELECTION (MANDATORY VARIETY): Randomly select ONE object from these distinct categories to ensure diversity: Analog Office & Desk: Sport & Leisure: Barware & Kitchen: Utility & Tools: Grooming: Travel: SELECTED CATEGORY: Barware & Kitchen CHOSEN OBJECT: A coffee machine and coffee cup — instantly recognizable, reimagined as a luxury technological artifact. THE CONCEPT: Recontextualize the everyday coffee machine as a transparent, high-precision object of engineered beauty. A fully glass espresso machine reveals its internal systems: hot water circulation, pressure chambers, coffee bean hopper, grinding mechanism, and extraction pathway. Integrated computer circuitry runs through the machine like a nervous system, visually linking ritual, data, and energy. Fresh coffee is actively pouring from the machine into a matching glass cup, captured mid-flow. The moment feels frozen, precise, and intentional—ritual meets technology. MATERIALS & FINISH: - COFFEE MACHINE BODY: Precision-molded optical glass with subtle green-tinted transparency. Internal structure is fully visible and meticulously organized. - INTERNAL COMPONENTS: - Hot water tubes and pressure lines clearly visible, rendered in brushed titanium and warm grey. - Coffee bean chamber visible at the top with realistic roasted beans. - Grinding and extraction mechanisms exposed, engineered and clean. - CIRCUITRY: Integrated PC-style circuitry embedded within the machine’s internal architecture. - Circuit paths in muted industrial orange. - Supporting components in graphite and titanium tones. Circuits are physical and structural, not glowing or decorative. - COFFEE CUP: Matching optical glass cup with weighted base and refined silhouette. Subtle BAGEL LABS logomark engraved near the base. - BRAND INTEGRATION: BAGEL LABS logomark engraved into the glass body of the machine (side or rear plane), and subtly etched on the cup. No stickers. No printed logos. ACTION / MOMENT: Coffee is visibly flowing from the machine into the glass cup. Liquid motion is realistic and smooth. Crema and color gradient are visible through the glass, emphasizing transparency and material depth. PRESENTATION (NO BOXES): The coffee machine and cup stand fully exposed on a minimal pedestal or surface. No packaging, no housing, no covers. All components are visible by design. PHOTOGRAPHY & LIGHTING: Style: High-end product editorial (Wallpaper* / Dezeen). Lighting: Soft, studio high-key lighting with carefully controlled reflections to highlight glass thickness, liquid motion, and internal depth. No harsh shadows. Background: Clean, seamless light grey or white cyclorama. COLOR & GRADING: Primary tones: transparent glass with subtle green tint, warm greys, titanium neutrals. Accent: restrained BAGEL LABS orange within the circuitry only. Overall mood: clean, intelligent, technological luxury. GRAPHIC OVERLAYS (UI): - Bottom Left: A small, minimalist two-line descriptor identifying the object. - Bottom Right: A small, discreet, monochrome BAGEL LABS logomark. Do not visualize font names or color codes. CAMERA & DETAIL: Full-frame, 50mm equivalent. Ultra-high realism: accurate glass refraction, liquid physics, micro-detail in circuits and mechanical parts. Shallow depth of field allowed, but machine and cup must remain fully legible. NEGATIVE PROMPT: No people, no hands, no kitchens, no cafes, no clutter, no packaging, no stickers, no printed text on surfaces, no neon colors, no glow effects, no cartoon or CGI look, no fingerprints, no dust, no watermarks.\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/nano_banana/text_to_image", body)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
fmt.Println(resp.Status)
}
nano-banana-2/api/v1/nano_banana/text_to_image获取 API Key
Ultra-realistic 8K full body portrait of [PERSON’S FULL NAME], wearing a clean and pressed white social shirt with folded collar and a small lapel microphone, dark navy-blue dress pants and polished brown social shoes. Casually and unpretentiously leaning against a smooth light gray studio wall; hands are in pockets and one leg is crossed over the other, with relaxed and confident body language. Add to the wall next to them a prominent vector portrait in black and white of their face and bust - with sharp lines and angles, overlapping polygonal shapes and a minimalist modern graphic style, right below the information: “[PERSON’S FULL NAME]”, and below the name: “[PROFESSION]”
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "Ultra-realistic 8K full body portrait of [PERSON’S FULL NAME], wearing a clean and pressed white social shirt with folded collar and a small lapel microphone, dark navy-blue dress pants and polished brown social shoes. Casually and unpretentiously leaning against a smooth light gray studio wall; hands are in pockets and one leg is crossed over the other, with relaxed and confident body language. Add to the wall next to them a prominent vector portrait in black and white of their face and bust - with sharp lines and angles, overlapping polygonal shapes and a minimalist modern graphic style, right below the information: “[PERSON’S FULL NAME]”, and below the name: “[PROFESSION]”"
}
JSON
Ultra-clean modern recipe infographic. Showcase [FOOD] in a visually appealing finished form—sliced, plated, or portioned—floating slightly in perspective or angled view. Arrange ingredients, steps, and tips around the dish in a dynamic editorial layout, not restricted to top-down. Ingredients Section: Include icons or mini illustrations for each ingredient with quantities. Arrange them in clusters, lists, or circular flows connected visually to the dish. Steps Section: Show preparation steps with numbered panels, arrows, or lines, forming a logical flow around the main dish. Include small cooking icons (knife, pan, oven, timer) where helpful. Additional Info (optional): Total calories, prep/cook time, servings, spice level—displayed as clean bubbles or badges near the dish. Visual Style: Editorial infographic meets lifestyle food photography. Vibrant, natural food colors, subtle drop shadows, clean vector icons, modern typography, soft gradients or glassmorphism for step panels. Accent colors can highlight key info (calories, prep time). Composition Guidelines: Finished meal as hero visual (perspective or angled). Ingredients and steps flow dynamically around the dish. Clear visual hierarchy: dish > steps > ingredients > optional stats. Enough negative space to keep design airy and readable. Lighting & Background: Soft, natural studio lighting. Minimal textured or gradient background for premium editorial feel. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "Ultra-clean modern recipe infographic. Showcase [FOOD] in a visually appealing finished form—sliced, plated, or portioned—floating slightly in perspective or angled view. Arrange ingredients, steps, and tips around the dish in a dynamic editorial layout, not restricted to top-down. Ingredients Section: Include icons or mini illustrations for each ingredient with quantities. Arrange them in clusters, lists, or circular flows connected visually to the dish. Steps Section: Show preparation steps with numbered panels, arrows, or lines, forming a logical flow around the main dish. Include small cooking icons (knife, pan, oven, timer) where helpful. Additional Info (optional): Total calories, prep/cook time, servings, spice level—displayed as clean bubbles or badges near the dish. Visual Style: Editorial infographic meets lifestyle food photography. Vibrant, natural food colors, subtle drop shadows, clean vector icons, modern typography, soft gradients or glassmorphism for step panels. Accent colors can highlight key info (calories, prep time). Composition Guidelines: Finished meal as hero visual (perspective or angled). Ingredients and steps flow dynamically around the dish. Clear visual hierarchy: dish > steps > ingredients > optional stats. Enough negative space to keep design airy and readable. Lighting & Background: Soft, natural studio lighting. Minimal textured or gradient background for premium editorial feel. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark"
}
JSON
Create a branded technical infographic of a [SNACK], combining a realistic photograph or photoreal render of the product with technical annotation overlays placed directly on top. Use black ink–style line drawings with strategic [BRAND COLOR] accents (architectural sketch look) on a pure white studio background, including: • Key component labels • Internal cross-section showing structure, layering, or internal design • Measurements, dimensions, and specifications • Material callouts with composition and quantities • Arrows indicating function for primary features and structural integrity • Simple schematic or sectional diagram showing key mechanical or design elements • Sustainability callouts Title placement: Inside a hand-drawn technical annotation box with accent border reading the product name in bold font, positioned in upper corner. Style & layout rules: • The realistic product remains clearly visible • Annotations feel sketched, technical, and architectural • Accents used for highlight (20-30% of linework), black for primary technical lines (70-80%) • Clean composition with balanced negative space • Educational, food-engineering vibe with premium branding • Include subtle brand logo mark in corner Visual style: Minimal technical illustration aesthetic, black linework with accents over realistic imagery, precise but slightly hand-drawn feel. Color palette: White background, black annotation lines/text, [BRAND COLOR] for accents and key callouts only. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "Create a branded technical infographic of a [SNACK], combining a realistic photograph or photoreal render of the product with technical annotation overlays placed directly on top. Use black ink–style line drawings with strategic [BRAND COLOR] accents (architectural sketch look) on a pure white studio background, including: • Key component labels • Internal cross-section showing structure, layering, or internal design • Measurements, dimensions, and specifications • Material callouts with composition and quantities • Arrows indicating function for primary features and structural integrity • Simple schematic or sectional diagram showing key mechanical or design elements • Sustainability callouts Title placement: Inside a hand-drawn technical annotation box with accent border reading the product name in bold font, positioned in upper corner. Style & layout rules: • The realistic product remains clearly visible • Annotations feel sketched, technical, and architectural • Accents used for highlight (20-30% of linework), black for primary technical lines (70-80%) • Clean composition with balanced negative space • Educational, food-engineering vibe with premium branding • Include subtle brand logo mark in corner Visual style: Minimal technical illustration aesthetic, black linework with accents over realistic imagery, precise but slightly hand-drawn feel. Color palette: White background, black annotation lines/text, [BRAND COLOR] for accents and key callouts only. Output: 1080×1080, ultra-crisp, social-feed optimized, no watermark"
}
JSON
[product], luxury packaging reveal scene, premium unboxing moment, pristine hands partially visible at the edges, delicate interaction with the packaging, lid slightly lifted to reveal the product inside, crisp folds and precise alignment, tactile materials [ ex: matte paper, soft touch coating, embossed details, foil accents], subtle micro texture and dust free finish, clean white background, soft diffused studio lighting, controlled specular highlights, realistic shadows, macro product photography look, shallow depth of field with sharp focus on the product and branding area, high end editorial commercial style, ultra realistic, 4k, 1:1, no watermark, no extra text
Create a 3×3 grid in 3:4 aspect ratio for a high-end commercial marketing campaign using the uploaded product as the central subject. Each frame must present a distinct visual concept while maintaining perfect product consistency across all nine images. Grid Concepts (one per cell): 1. Iconic hero still life with bold composition 2. Extreme macro detail highlighting material, surface, or texture 3. Dynamic liquid or particle interaction surrounding the product 4. Minimal sculptural arrangement with abstract forms 5. Floating elements composition suggesting lightness and innovation 6. Sensory close-up emphasizing tactility and realism 7. Color-driven conceptual scene inspired by the product palette 8. Ingredient or component abstraction (non-literal, symbolic) 9. Surreal yet elegant fusion scene combining realism and imagination Visual Rules: Product must remain 100% accurate in shape, proportions, label, typography, color, and branding No distortion, deformation, or redesign of the product Clean separation between product and background Lighting & Style: Soft, controlled studio lighting Subtle highlights, realistic shadows High dynamic range, ultra-sharp focus Editorial luxury advertising aesthetic Premium sensory marketing look Overall Feel: Modern, refined, visually cohesive High-end commercial campaign Designed for brand websites, social grids, and digital billboards Hyperreal, cinematic, polished, and aspirational
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "Create a 3×3 grid in 3:4 aspect ratio for a high-end commercial marketing campaign using the uploaded product as the central subject. Each frame must present a distinct visual concept while maintaining perfect product consistency across all nine images. Grid Concepts (one per cell): 1. Iconic hero still life with bold composition 2. Extreme macro detail highlighting material, surface, or texture 3. Dynamic liquid or particle interaction surrounding the product 4. Minimal sculptural arrangement with abstract forms 5. Floating elements composition suggesting lightness and innovation 6. Sensory close-up emphasizing tactility and realism 7. Color-driven conceptual scene inspired by the product palette 8. Ingredient or component abstraction (non-literal, symbolic) 9. Surreal yet elegant fusion scene combining realism and imagination Visual Rules: Product must remain 100% accurate in shape, proportions, label, typography, color, and branding No distortion, deformation, or redesign of the product Clean separation between product and background Lighting & Style: Soft, controlled studio lighting Subtle highlights, realistic shadows High dynamic range, ultra-sharp focus Editorial luxury advertising aesthetic Premium sensory marketing look Overall Feel: Modern, refined, visually cohesive High-end commercial campaign Designed for brand websites, social grids, and digital billboards Hyperreal, cinematic, polished, and aspirational"
}
JSON
Create ONE final image. A clean 3×3 [ratio] storyboard grid with nine equal [ratio] sized panels on [4:5] ratio. Use the reference image as the base product reference. Keep the same product, packaging design, branding, materials, colors, proportions and overall identity across all nine panels exactly as the reference. The product must remain clearly recognizable in every frame. The label, logo and proportions must stay exactly the same. This storyboard is a high-end designer mockup presentation for a branding portfolio. The focus is on form, composition, materiality and visual rhythm rather than realism or lifestyle narrative. The overall look should feel curated, editorial and design-driven. FRAME 1: Front-facing hero shot of the product in a clean studio setup. Neutral background, balanced composition, calm and confident presentation of the product. FRAME 2: Close-up shot with the focus centered on the middle of the product. Focusing on surface texture, materials and print details. FRAME 3: Shows the reference product placed in an environment that naturally fits the brand and product category. Studio setting inspired by the product design elements and colours. FRAME 4: Product shown in use or interaction on a neutral studio background. Hands and interaction elements are minimal and restrained, the look matches the style of the package. FRAME 5: Isometric composition showing multiple products arranged in a precise geometric order from the top isometric angle. All products are placed at the same isometric top angle, evenly spaced, clean, structured and graphic. FRAME 6: Product levitating slightly tilted on a neutral background that matches the reference image color palette. Floating position is angled and intentional, the product is floating naturally in space. FRAME 7: is an extreme close-up focusing on a specific detail of the label, edge, texture or material behavior. FRAME 8: The product in an unexpected yet aesthetically strong setting that feels bold, editorial and visually striking. Unexpected but highly stylized setting. Studio-based, and designer-driven. Bold composition that elevates the brand. FRAME 9: Wide composition showing the product in use, placed within a refined designer setup. Clean props, controlled styling, cohesive with the rest of the series. CAMERA & STYLE: Ultra high-quality studio imagery with a real camera look. Different camera angles and framings across frames. Controlled depth of field, precise lighting, accurate materials and reflections. Lighting logic, color palette, mood and visual language must remain consistent across all nine panels as one cohesive series. OUTPUT: A clean 3×3 grid with no borders, no text, no captions and no watermarks.
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "nano-banana-2",
"prompt": "Create ONE final image. A clean 3×3 [ratio] storyboard grid with nine equal [ratio] sized panels on [4:5] ratio. Use the reference image as the base product reference. Keep the same product, packaging design, branding, materials, colors, proportions and overall identity across all nine panels exactly as the reference. The product must remain clearly recognizable in every frame. The label, logo and proportions must stay exactly the same. This storyboard is a high-end designer mockup presentation for a branding portfolio. The focus is on form, composition, materiality and visual rhythm rather than realism or lifestyle narrative. The overall look should feel curated, editorial and design-driven. FRAME 1: Front-facing hero shot of the product in a clean studio setup. Neutral background, balanced composition, calm and confident presentation of the product. FRAME 2: Close-up shot with the focus centered on the middle of the product. Focusing on surface texture, materials and print details. FRAME 3: Shows the reference product placed in an environment that naturally fits the brand and product category. Studio setting inspired by the product design elements and colours. FRAME 4: Product shown in use or interaction on a neutral studio background. Hands and interaction elements are minimal and restrained, the look matches the style of the package. FRAME 5: Isometric composition showing multiple products arranged in a precise geometric order from the top isometric angle. All products are placed at the same isometric top angle, evenly spaced, clean, structured and graphic. FRAME 6: Product levitating slightly tilted on a neutral background that matches the reference image color palette. Floating position is angled and intentional, the product is floating naturally in space. FRAME 7: is an extreme close-up focusing on a specific detail of the label, edge, texture or material behavior. FRAME 8: The product in an unexpected yet aesthetically strong setting that feels bold, editorial and visually striking. Unexpected but highly stylized setting. Studio-based, and designer-driven. Bold composition that elevates the brand. FRAME 9: Wide composition showing the product in use, placed within a refined designer setup. Clean props, controlled styling, cohesive with the rest of the series. CAMERA & STYLE: Ultra high-quality studio imagery with a real camera look. Different camera angles and framings across frames. Controlled depth of field, precise lighting, accurate materials and reflections. Lighting logic, color palette, mood and visual language must remain consistent across all nine panels as one cohesive series. OUTPUT: A clean 3×3 grid with no borders, no text, no captions and no watermarks."
}
JSON