High-impact e-commerce infographic for "Apple Pods Pro 3" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: "HEADPHONES" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: "Apple Pods Pro 3" Subtitle smaller text: "Over-Ear Wireless" MID LEFT: → Icon: small sound wave symbol → Bold text: "Premium Sound" → Sub-text: "Active Noise Cancellation + Transparency Mode" MID RIGHT: → Extra-large bold numeral: "40" → Smaller text below: "hours of battery life" LOWER LEFT: → Extra-large bold numeral: "0" with "to" beside it → then bold "100%" → Sub-text: "Fast charge — 10 min = 3hrs playback" BOTTOM RIGHT: → Extra-large bold numeral: "1" → Sub-text: "Year Warranty Included" BOTTOM CENTER (fine print style): → Small elegant text: "Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading
gpt-image-2/api/v1/gpt_image_2/text_to_image
运行信息
模型
gpt-image-2
提供方
OpenAI
服务
Gpt Image 2
Endpoint
Text To Image
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"High-impact e-commerce infographic for "Apple Pods Pro 3" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: "HEADPHONES" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: "Apple Pods Pro 3" Subtitle smaller text: "Over-Ear Wireless" MID LEFT: → Icon: small sound wave symbol → Bold text: "Premium Sound" → Sub-text: "Active Noise Cancellation + Transparency Mode" MID RIGHT: → Extra-large bold numeral: "40" → Smaller text below: "hours of battery life" LOWER LEFT: → Extra-large bold numeral: "0" with "to" beside it → then bold "100%" → Sub-text: "Fast charge — 10 min = 3hrs playback" BOTTOM RIGHT: → Extra-large bold numeral: "1" → Sub-text: "Year Warranty Included" BOTTOM CENTER (fine print style): → Small elegant text: "Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"High-impact e-commerce infographic for "Apple Pods Pro 3" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: "HEADPHONES" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: "Apple Pods Pro 3" Subtitle smaller text: "Over-Ear Wireless" MID LEFT: → Icon: small sound wave symbol → Bold text: "Premium Sound" → Sub-text: "Active Noise Cancellation + Transparency Mode" MID RIGHT: → Extra-large bold numeral: "40" → Smaller text below: "hours of battery life" LOWER LEFT: → Extra-large bold numeral: "0" with "to" beside it → then bold "100%" → Sub-text: "Fast charge — 10 min = 3hrs playback" BOTTOM RIGHT: → Extra-large bold numeral: "1" → Sub-text: "Year Warranty Included" BOTTOM CENTER (fine print style): → Small elegant text: "Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"High-impact e-commerce infographic for "Apple Pods Pro 3" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: "HEADPHONES" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: "Apple Pods Pro 3" Subtitle smaller text: "Over-Ear Wireless" MID LEFT: → Icon: small sound wave symbol → Bold text: "Premium Sound" → Sub-text: "Active Noise Cancellation + Transparency Mode" MID RIGHT: → Extra-large bold numeral: "40" → Smaller text below: "hours of battery life" LOWER LEFT: → Extra-large bold numeral: "0" with "to" beside it → then bold "100%" → Sub-text: "Fast charge — 10 min = 3hrs playback" BOTTOM RIGHT: → Extra-large bold numeral: "1" → Sub-text: "Year Warranty Included" BOTTOM CENTER (fine print style): → Small elegant text: "Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"High-impact e-commerce infographic for "Apple Pods Pro 3" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: "HEADPHONES" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: "Apple Pods Pro 3" Subtitle smaller text: "Over-Ear Wireless" MID LEFT: → Icon: small sound wave symbol → Bold text: "Premium Sound" → Sub-text: "Active Noise Cancellation + Transparency Mode" MID RIGHT: → Extra-large bold numeral: "40" → Smaller text below: "hours of battery life" LOWER LEFT: → Extra-large bold numeral: "0" with "to" beside it → then bold "100%" → Sub-text: "Fast charge — 10 min = 3hrs playback" BOTTOM RIGHT: → Extra-large bold numeral: "1" → Sub-text: "Year Warranty Included" BOTTOM CENTER (fine print style): → Small elegant text: "Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2",
"prompt": "High-impact e-commerce infographic for \"Apple Pods Pro 3\" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: \"HEADPHONES\" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: \"Apple Pods Pro 3\" Subtitle smaller text: \"Over-Ear Wireless\" MID LEFT: → Icon: small sound wave symbol → Bold text: \"Premium Sound\" → Sub-text: \"Active Noise Cancellation + Transparency Mode\" MID RIGHT: → Extra-large bold numeral: \"40\" → Smaller text below: \"hours of battery life\" LOWER LEFT: → Extra-large bold numeral: \"0\" with \"to\" beside it → then bold \"100%\" → Sub-text: \"Fast charge — 10 min = 3hrs playback\" BOTTOM RIGHT: → Extra-large bold numeral: \"1\" → Sub-text: \"Year Warranty Included\" BOTTOM CENTER (fine print style): → Small elegant text: \"Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging\" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
}
JSON
import { GptImage2Client } from "@runapi.ai/gpt-image-2";
const client = new GptImage2Client({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"model": "gpt-image-2",
"prompt": "High-impact e-commerce infographic for \"Apple Pods Pro 3\" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: \"HEADPHONES\" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: \"Apple Pods Pro 3\" Subtitle smaller text: \"Over-Ear Wireless\" MID LEFT: → Icon: small sound wave symbol → Bold text: \"Premium Sound\" → Sub-text: \"Active Noise Cancellation + Transparency Mode\" MID RIGHT: → Extra-large bold numeral: \"40\" → Smaller text below: \"hours of battery life\" LOWER LEFT: → Extra-large bold numeral: \"0\" with \"to\" beside it → then bold \"100%\" → Sub-text: \"Fast charge — 10 min = 3hrs playback\" BOTTOM RIGHT: → Extra-large bold numeral: \"1\" → Sub-text: \"Year Warranty Included\" BOTTOM CENTER (fine print style): → Small elegant text: \"Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging\" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
});
console.log(result.id);
require "runapi/gpt_image_2"
client = RunApi::GptImage2::Client.new
result = client.text_to_image.run(
model: "gpt-image-2",
prompt: "High-impact e-commerce infographic for \"Apple Pods Pro 3\" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: \"HEADPHONES\" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: \"Apple Pods Pro 3\" Subtitle smaller text: \"Over-Ear Wireless\" MID LEFT: → Icon: small sound wave symbol → Bold text: \"Premium Sound\" → Sub-text: \"Active Noise Cancellation + Transparency Mode\" MID RIGHT: → Extra-large bold numeral: \"40\" → Smaller text below: \"hours of battery life\" LOWER LEFT: → Extra-large bold numeral: \"0\" with \"to\" beside it → then bold \"100%\" → Sub-text: \"Fast charge — 10 min = 3hrs playback\" BOTTOM RIGHT: → Extra-large bold numeral: \"1\" → Sub-text: \"Year Warranty Included\" BOTTOM CENTER (fine print style): → Small elegant text: \"Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging\" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"High-impact e-commerce infographic for \\\"Apple Pods Pro 3\\\" premium wireless over-ear headphones. FOREGROUND - PRODUCT HERO SHOT Extreme close-up of a hand holding a sleek, matte-white premium over-ear headphone toward the camera at a slight angle. The headphone features: - Glossy white ear cushions with soft memory foam padding - Brushed aluminum silver headband with subtle Apple Pods Pro 3 embossed branding - Black mesh speaker grille visible on the ear cup face - A tiny glowing green LED status indicator on the right ear cup edge - Subtle touch-control icons etched on the outer cup surface Macro-lens shallow depth of field — hand and headphone slightly blurred at edges to create cinematic depth. Product remains razor-sharp in center frame. CENTRAL SUBJECT — MODEL In the mid-ground: a smiling young woman with freckles and wavy pastel-pink hair. She wears: - A vibrant lime-green knit beanie - A psychedelic black and white-striped long-sleeve shirt - The white over-ear headphones resting stylishly around her neck (not on ears) — one hand casually touching the ear cup Expression: relaxed, confident, joyful. She is glancing slightly off-camera with a natural smile. BACKGROUND & ATMOSPHERE Clean soft-focus studio backdrop — light gray gradient fading to warm white at center. Atmospheric overlays: - Diagonal rainbow prism lens flares cutting across upper-left to lower-right - Soft pastel light leaks in pink and yellow at corners - 4–5 blurred white over-ear headphones floating artistically in the background at various depths and rotation angles - Subtle bokeh circles from background studio lights Lighting: Soft professional three-point studio lighting. Key light from upper-left, fill light right side. Rim light behind model for separation. Glossy highlights on headphone surfaces catching light naturally. TYPOGRAPHY & LAYOUT — Sans-Serif, Clean white TOP CENTER (behind model, large background text): → Massive bold oversized text: \\\"HEADPHONES\\\" Semi-transparent white, spanning full width behind subject TOP RIGHT CORNER: → Bold clean text: \\\"Apple Pods Pro 3\\\" Subtitle smaller text: \\\"Over-Ear Wireless\\\" MID LEFT: → Icon: small sound wave symbol → Bold text: \\\"Premium Sound\\\" → Sub-text: \\\"Active Noise Cancellation + Transparency Mode\\\" MID RIGHT: → Extra-large bold numeral: \\\"40\\\" → Smaller text below: \\\"hours of battery life\\\" LOWER LEFT: → Extra-large bold numeral: \\\"0\\\" with \\\"to\\\" beside it → then bold \\\"100%\\\" → Sub-text: \\\"Fast charge — 10 min = 3hrs playback\\\" BOTTOM RIGHT: → Extra-large bold numeral: \\\"1\\\" → Sub-text: \\\"Year Warranty Included\\\" BOTTOM CENTER (fine print style): → Small elegant text: \\\"Bluetooth 5.4 | Hi-Res Audio Certified | Foldable Design | USB-C Charging\\\" TECHNICAL SPECS Resolution: 8K ultra-sharp Style: Commercial product photography meets editorial fashion advertising Color Palette: White, lime green, pastel pink, rainbow prism accents Focus: Tack-sharp on headphone product — shallow DOF on everything else Lens: 85mm macro, slight low angle Render Quality: Hyperrealistic, clean ad aesthetic, vibrant yet professional color grading\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/gpt_image_2/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)
}
gpt-image-2/api/v1/gpt_image_2/text_to_image获取 API Key
Low-angle fashion campaign photograph of a confident model holding a large [product name] very close to the camera, exaggerated perspective with the hand and product dominating the foreground, full-body pose visible in the background, wide stance, dynamic posture, clean pure white studio background, high-key lighting, sharp focus on product, slight depth of field on the model, bold colorful outfit with strong contrast tones, modern beauty advertising aesthetic, ultra-clean composition, commercial studio photography, glossy packaging detail visible, crisp shadows
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2",
"prompt": "Low-angle fashion campaign photograph of a confident model holding a large [product name] very close to the camera, exaggerated perspective with the hand and product dominating the foreground, full-body pose visible in the background, wide stance, dynamic posture, clean pure white studio background, high-key lighting, sharp focus on product, slight depth of field on the model, bold colorful outfit with strong contrast tones, modern beauty advertising aesthetic, ultra-clean composition, commercial studio photography, glossy packaging detail visible, crisp shadows"
}
JSON
Create an infographic image of [LANDMARK], combining a real photograph of the landmark with blueprint-style technical annotations and diagrams overlaid on the image. Include the title “[LANDMARK]” in a hand-drawn box in the corner. Add white chalk-style sketches showing key structural data, important measurements, material quantities, internal diagrams, load-flow arrows, cross-sections, floor plans, and notable architectural or engineering features. Style: blueprint aesthetic with white line drawings on the photograph, technical/architectural annotation style, educational infographic feel, with the real environment visible behind the annotations.
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2",
"prompt": "Create an infographic image of [LANDMARK], combining a real photograph of the landmark with blueprint-style technical annotations and diagrams overlaid on the image. Include the title “[LANDMARK]” in a hand-drawn box in the corner. Add white chalk-style sketches showing key structural data, important measurements, material quantities, internal diagrams, load-flow arrows, cross-sections, floor plans, and notable architectural or engineering features. Style: blueprint aesthetic with white line drawings on the photograph, technical/architectural annotation style, educational infographic feel, with the real environment visible behind the annotations."
}
JSON