复制
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "AURUM NOCTIS", "fragrance_line": "Velvet Obsidian", "container_shape": "sleek monolithic oval bottle with sculpted contours", "material": "obsidian-black glass with subtle smoked transparency", "finish": "high-gloss reflective body with satin matte side panels", "cap_design": "heavy magnetic cap in brushed antique gold with engraved crest", "label_style": "minimal gold foil typography floating on glass surface", "liquid_color": "dark amber with molten gold undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "low hero angle for power and prestige", "subject_position": "floating mid-air with elegant slow rotation", "motion": "fluid golden fragrance trails and aromatic vapor ribbons suspended in motion" }, "environment": { "background": "deep charcoal-to-black gradient fading into shadow", "atmosphere": "soft volumetric haze enhancing depth and mystery", "floating_elements": [ "molten gold dust particles glowing softly", "dark cocoa shards catching highlights", "black orchid petals drifting slowly", "smoked vanilla pods suspended in air", "tiny amber resin fragments sparkling" ], "surface_effects": "micro condensation droplets and polished reflections enhancing realism" }, "lighting": { "style": "dramatically sculpted low-key studio lighting", "key_light": "soft directional light defining contours and glass curvature", "rim_lights": "warm golden rim lights outlining silhouette", "accent_lights": "subtle amber highlights emphasizing cap and liquid glow", "shadow_depth": "deep shadows for cinematic luxury mood", "contrast": "rich contrast with controlled highlights and luminous reflections" }, "color_palette": { "primary_colors": ["obsidian black", "charcoal shadow", "deep amber"], "accent_colors": ["antique gold", "warm bronze glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product", "focus_point": "brand crest and glass curvature", "bokeh": "soft golden bokeh from reflective particles", "detail_capture": "extreme micro-detail clarity" }, "render_quality": { "resolution": "8K ultra high definition", "render_style": "hyper-realistic luxury commercial render", "glass_physics": "accurate refraction and internal reflections", "liquid_simulation": "physically accurate fluid glow and viscosity", "textures": "ultra-detailed glass, metal, vapor, and dust textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, opulent, and powerful", "emotion": "nighttime luxury, sensual elegance, timeless prestige" }, "final_output": { "usage": "luxury fragrance campaign and premium magazine advertising", "branding_focus": "hero product dominance with elite brand presence", "visual_style": "cinematic haute parfumerie commercial aesthetic" } } }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "AURUM NOCTIS", "fragrance_line": "Velvet Obsidian", "container_shape": "sleek monolithic oval bottle with sculpted contours", "material": "obsidian-black glass with subtle smoked transparency", "finish": "high-gloss reflective body with satin matte side panels", "cap_design": "heavy magnetic cap in brushed antique gold with engraved crest", "label_style": "minimal gold foil typography floating on glass surface", "liquid_color": "dark amber with molten gold undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "low hero angle for power and prestige", "subject_position": "floating mid-air with elegant slow rotation", "motion": "fluid golden fragrance trails and aromatic vapor ribbons suspended in motion" }, "environment": { "background": "deep charcoal-to-black gradient fading into shadow", "atmosphere": "soft volumetric haze enhancing depth and mystery", "floating_elements": [ "molten gold dust particles glowing softly", "dark cocoa shards catching highlights", "black orchid petals drifting slowly", "smoked vanilla pods suspended in air", "tiny amber resin fragments sparkling" ], "surface_effects": "micro condensation droplets and polished reflections enhancing realism" }, "lighting": { "style": "dramatically sculpted low-key studio lighting", "key_light": "soft directional light defining contours and glass curvature", "rim_lights": "warm golden rim lights outlining silhouette", "accent_lights": "subtle amber highlights emphasizing cap and liquid glow", "shadow_depth": "deep shadows for cinematic luxury mood", "contrast": "rich contrast with controlled highlights and luminous reflections" }, "color_palette": { "primary_colors": ["obsidian black", "charcoal shadow", "deep amber"], "accent_colors": ["antique gold", "warm bronze glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product", "focus_point": "brand crest and glass curvature", "bokeh": "soft golden bokeh from reflective particles", "detail_capture": "extreme micro-detail clarity" }, "render_quality": { "resolution": "8K ultra high definition", "render_style": "hyper-realistic luxury commercial render", "glass_physics": "accurate refraction and internal reflections", "liquid_simulation": "physically accurate fluid glow and viscosity", "textures": "ultra-detailed glass, metal, vapor, and dust textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, opulent, and powerful", "emotion": "nighttime luxury, sensual elegance, timeless prestige" }, "final_output": { "usage": "luxury fragrance campaign and premium magazine advertising", "branding_focus": "hero product dominance with elite brand presence", "visual_style": "cinematic haute parfumerie commercial aesthetic" } } }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "AURUM NOCTIS", "fragrance_line": "Velvet Obsidian", "container_shape": "sleek monolithic oval bottle with sculpted contours", "material": "obsidian-black glass with subtle smoked transparency", "finish": "high-gloss reflective body with satin matte side panels", "cap_design": "heavy magnetic cap in brushed antique gold with engraved crest", "label_style": "minimal gold foil typography floating on glass surface", "liquid_color": "dark amber with molten gold undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "low hero angle for power and prestige", "subject_position": "floating mid-air with elegant slow rotation", "motion": "fluid golden fragrance trails and aromatic vapor ribbons suspended in motion" }, "environment": { "background": "deep charcoal-to-black gradient fading into shadow", "atmosphere": "soft volumetric haze enhancing depth and mystery", "floating_elements": [ "molten gold dust particles glowing softly", "dark cocoa shards catching highlights", "black orchid petals drifting slowly", "smoked vanilla pods suspended in air", "tiny amber resin fragments sparkling" ], "surface_effects": "micro condensation droplets and polished reflections enhancing realism" }, "lighting": { "style": "dramatically sculpted low-key studio lighting", "key_light": "soft directional light defining contours and glass curvature", "rim_lights": "warm golden rim lights outlining silhouette", "accent_lights": "subtle amber highlights emphasizing cap and liquid glow", "shadow_depth": "deep shadows for cinematic luxury mood", "contrast": "rich contrast with controlled highlights and luminous reflections" }, "color_palette": { "primary_colors": ["obsidian black", "charcoal shadow", "deep amber"], "accent_colors": ["antique gold", "warm bronze glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product", "focus_point": "brand crest and glass curvature", "bokeh": "soft golden bokeh from reflective particles", "detail_capture": "extreme micro-detail clarity" }, "render_quality": { "resolution": "8K ultra high definition", "render_style": "hyper-realistic luxury commercial render", "glass_physics": "accurate refraction and internal reflections", "liquid_simulation": "physically accurate fluid glow and viscosity", "textures": "ultra-detailed glass, metal, vapor, and dust textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, opulent, and powerful", "emotion": "nighttime luxury, sensual elegance, timeless prestige" }, "final_output": { "usage": "luxury fragrance campaign and premium magazine advertising", "branding_focus": "hero product dominance with elite brand presence", "visual_style": "cinematic haute parfumerie commercial aesthetic" } } }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "AURUM NOCTIS", "fragrance_line": "Velvet Obsidian", "container_shape": "sleek monolithic oval bottle with sculpted contours", "material": "obsidian-black glass with subtle smoked transparency", "finish": "high-gloss reflective body with satin matte side panels", "cap_design": "heavy magnetic cap in brushed antique gold with engraved crest", "label_style": "minimal gold foil typography floating on glass surface", "liquid_color": "dark amber with molten gold undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "low hero angle for power and prestige", "subject_position": "floating mid-air with elegant slow rotation", "motion": "fluid golden fragrance trails and aromatic vapor ribbons suspended in motion" }, "environment": { "background": "deep charcoal-to-black gradient fading into shadow", "atmosphere": "soft volumetric haze enhancing depth and mystery", "floating_elements": [ "molten gold dust particles glowing softly", "dark cocoa shards catching highlights", "black orchid petals drifting slowly", "smoked vanilla pods suspended in air", "tiny amber resin fragments sparkling" ], "surface_effects": "micro condensation droplets and polished reflections enhancing realism" }, "lighting": { "style": "dramatically sculpted low-key studio lighting", "key_light": "soft directional light defining contours and glass curvature", "rim_lights": "warm golden rim lights outlining silhouette", "accent_lights": "subtle amber highlights emphasizing cap and liquid glow", "shadow_depth": "deep shadows for cinematic luxury mood", "contrast": "rich contrast with controlled highlights and luminous reflections" }, "color_palette": { "primary_colors": ["obsidian black", "charcoal shadow", "deep amber"], "accent_colors": ["antique gold", "warm bronze glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product", "focus_point": "brand crest and glass curvature", "bokeh": "soft golden bokeh from reflective particles", "detail_capture": "extreme micro-detail clarity" }, "render_quality": { "resolution": "8K ultra high definition", "render_style": "hyper-realistic luxury commercial render", "glass_physics": "accurate refraction and internal reflections", "liquid_simulation": "physically accurate fluid glow and viscosity", "textures": "ultra-detailed glass, metal, vapor, and dust textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, opulent, and powerful", "emotion": "nighttime luxury, sensual elegance, timeless prestige" }, "final_output": { "usage": "luxury fragrance campaign and premium magazine advertising", "branding_focus": "hero product dominance with elite brand presence", "visual_style": "cinematic haute parfumerie commercial aesthetic" } } }"
curl
Node.js
Ruby
Go
复制
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": "{ \"master_prompt\": { \"product\": { \"type\": \"luxury perfume bottle\", \"brand_name\": \"AURUM NOCTIS\", \"fragrance_line\": \"Velvet Obsidian\", \"container_shape\": \"sleek monolithic oval bottle with sculpted contours\", \"material\": \"obsidian-black glass with subtle smoked transparency\", \"finish\": \"high-gloss reflective body with satin matte side panels\", \"cap_design\": \"heavy magnetic cap in brushed antique gold with engraved crest\", \"label_style\": \"minimal gold foil typography floating on glass surface\", \"liquid_color\": \"dark amber with molten gold undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"low hero angle for power and prestige\", \"subject_position\": \"floating mid-air with elegant slow rotation\", \"motion\": \"fluid golden fragrance trails and aromatic vapor ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep charcoal-to-black gradient fading into shadow\", \"atmosphere\": \"soft volumetric haze enhancing depth and mystery\", \"floating_elements\": [ \"molten gold dust particles glowing softly\", \"dark cocoa shards catching highlights\", \"black orchid petals drifting slowly\", \"smoked vanilla pods suspended in air\", \"tiny amber resin fragments sparkling\" ], \"surface_effects\": \"micro condensation droplets and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatically sculpted low-key studio lighting\", \"key_light\": \"soft directional light defining contours and glass curvature\", \"rim_lights\": \"warm golden rim lights outlining silhouette\", \"accent_lights\": \"subtle amber highlights emphasizing cap and liquid glow\", \"shadow_depth\": \"deep shadows for cinematic luxury mood\", \"contrast\": \"rich contrast with controlled highlights and luminous reflections\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"charcoal shadow\", \"deep amber\"], \"accent_colors\": [\"antique gold\", \"warm bronze glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product\", \"focus_point\": \"brand crest and glass curvature\", \"bokeh\": \"soft golden bokeh from reflective particles\", \"detail_capture\": \"extreme micro-detail clarity\" }, \"render_quality\": { \"resolution\": \"8K ultra high definition\", \"render_style\": \"hyper-realistic luxury commercial render\", \"glass_physics\": \"accurate refraction and internal reflections\", \"liquid_simulation\": \"physically accurate fluid glow and viscosity\", \"textures\": \"ultra-detailed glass, metal, vapor, and dust textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, opulent, and powerful\", \"emotion\": \"nighttime luxury, sensual elegance, timeless prestige\" }, \"final_output\": { \"usage\": \"luxury fragrance campaign and premium magazine advertising\", \"branding_focus\": \"hero product dominance with elite brand presence\", \"visual_style\": \"cinematic haute parfumerie commercial aesthetic\" } } }"
}
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": "{ \"master_prompt\": { \"product\": { \"type\": \"luxury perfume bottle\", \"brand_name\": \"AURUM NOCTIS\", \"fragrance_line\": \"Velvet Obsidian\", \"container_shape\": \"sleek monolithic oval bottle with sculpted contours\", \"material\": \"obsidian-black glass with subtle smoked transparency\", \"finish\": \"high-gloss reflective body with satin matte side panels\", \"cap_design\": \"heavy magnetic cap in brushed antique gold with engraved crest\", \"label_style\": \"minimal gold foil typography floating on glass surface\", \"liquid_color\": \"dark amber with molten gold undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"low hero angle for power and prestige\", \"subject_position\": \"floating mid-air with elegant slow rotation\", \"motion\": \"fluid golden fragrance trails and aromatic vapor ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep charcoal-to-black gradient fading into shadow\", \"atmosphere\": \"soft volumetric haze enhancing depth and mystery\", \"floating_elements\": [ \"molten gold dust particles glowing softly\", \"dark cocoa shards catching highlights\", \"black orchid petals drifting slowly\", \"smoked vanilla pods suspended in air\", \"tiny amber resin fragments sparkling\" ], \"surface_effects\": \"micro condensation droplets and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatically sculpted low-key studio lighting\", \"key_light\": \"soft directional light defining contours and glass curvature\", \"rim_lights\": \"warm golden rim lights outlining silhouette\", \"accent_lights\": \"subtle amber highlights emphasizing cap and liquid glow\", \"shadow_depth\": \"deep shadows for cinematic luxury mood\", \"contrast\": \"rich contrast with controlled highlights and luminous reflections\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"charcoal shadow\", \"deep amber\"], \"accent_colors\": [\"antique gold\", \"warm bronze glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product\", \"focus_point\": \"brand crest and glass curvature\", \"bokeh\": \"soft golden bokeh from reflective particles\", \"detail_capture\": \"extreme micro-detail clarity\" }, \"render_quality\": { \"resolution\": \"8K ultra high definition\", \"render_style\": \"hyper-realistic luxury commercial render\", \"glass_physics\": \"accurate refraction and internal reflections\", \"liquid_simulation\": \"physically accurate fluid glow and viscosity\", \"textures\": \"ultra-detailed glass, metal, vapor, and dust textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, opulent, and powerful\", \"emotion\": \"nighttime luxury, sensual elegance, timeless prestige\" }, \"final_output\": { \"usage\": \"luxury fragrance campaign and premium magazine advertising\", \"branding_focus\": \"hero product dominance with elite brand presence\", \"visual_style\": \"cinematic haute parfumerie commercial aesthetic\" } } }"
});
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: "{ \"master_prompt\": { \"product\": { \"type\": \"luxury perfume bottle\", \"brand_name\": \"AURUM NOCTIS\", \"fragrance_line\": \"Velvet Obsidian\", \"container_shape\": \"sleek monolithic oval bottle with sculpted contours\", \"material\": \"obsidian-black glass with subtle smoked transparency\", \"finish\": \"high-gloss reflective body with satin matte side panels\", \"cap_design\": \"heavy magnetic cap in brushed antique gold with engraved crest\", \"label_style\": \"minimal gold foil typography floating on glass surface\", \"liquid_color\": \"dark amber with molten gold undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"low hero angle for power and prestige\", \"subject_position\": \"floating mid-air with elegant slow rotation\", \"motion\": \"fluid golden fragrance trails and aromatic vapor ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep charcoal-to-black gradient fading into shadow\", \"atmosphere\": \"soft volumetric haze enhancing depth and mystery\", \"floating_elements\": [ \"molten gold dust particles glowing softly\", \"dark cocoa shards catching highlights\", \"black orchid petals drifting slowly\", \"smoked vanilla pods suspended in air\", \"tiny amber resin fragments sparkling\" ], \"surface_effects\": \"micro condensation droplets and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatically sculpted low-key studio lighting\", \"key_light\": \"soft directional light defining contours and glass curvature\", \"rim_lights\": \"warm golden rim lights outlining silhouette\", \"accent_lights\": \"subtle amber highlights emphasizing cap and liquid glow\", \"shadow_depth\": \"deep shadows for cinematic luxury mood\", \"contrast\": \"rich contrast with controlled highlights and luminous reflections\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"charcoal shadow\", \"deep amber\"], \"accent_colors\": [\"antique gold\", \"warm bronze glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product\", \"focus_point\": \"brand crest and glass curvature\", \"bokeh\": \"soft golden bokeh from reflective particles\", \"detail_capture\": \"extreme micro-detail clarity\" }, \"render_quality\": { \"resolution\": \"8K ultra high definition\", \"render_style\": \"hyper-realistic luxury commercial render\", \"glass_physics\": \"accurate refraction and internal reflections\", \"liquid_simulation\": \"physically accurate fluid glow and viscosity\", \"textures\": \"ultra-detailed glass, metal, vapor, and dust textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, opulent, and powerful\", \"emotion\": \"nighttime luxury, sensual elegance, timeless prestige\" }, \"final_output\": { \"usage\": \"luxury fragrance campaign and premium magazine advertising\", \"branding_focus\": \"hero product dominance with elite brand presence\", \"visual_style\": \"cinematic haute parfumerie commercial aesthetic\" } } }"
)
puts result.id
复制
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"{ \\\"master_prompt\\\": { \\\"product\\\": { \\\"type\\\": \\\"luxury perfume bottle\\\", \\\"brand_name\\\": \\\"AURUM NOCTIS\\\", \\\"fragrance_line\\\": \\\"Velvet Obsidian\\\", \\\"container_shape\\\": \\\"sleek monolithic oval bottle with sculpted contours\\\", \\\"material\\\": \\\"obsidian-black glass with subtle smoked transparency\\\", \\\"finish\\\": \\\"high-gloss reflective body with satin matte side panels\\\", \\\"cap_design\\\": \\\"heavy magnetic cap in brushed antique gold with engraved crest\\\", \\\"label_style\\\": \\\"minimal gold foil typography floating on glass surface\\\", \\\"liquid_color\\\": \\\"dark amber with molten gold undertones\\\" }, \\\"composition\\\": { \\\"scene_type\\\": \\\"ultra-cinematic luxury fragrance advertising photography\\\", \\\"orientation\\\": \\\"vertical\\\", \\\"aspect_ratio\\\": \\\"4:5\\\", \\\"camera_angle\\\": \\\"low hero angle for power and prestige\\\", \\\"subject_position\\\": \\\"floating mid-air with elegant slow rotation\\\", \\\"motion\\\": \\\"fluid golden fragrance trails and aromatic vapor ribbons suspended in motion\\\" }, \\\"environment\\\": { \\\"background\\\": \\\"deep charcoal-to-black gradient fading into shadow\\\", \\\"atmosphere\\\": \\\"soft volumetric haze enhancing depth and mystery\\\", \\\"floating_elements\\\": [ \\\"molten gold dust particles glowing softly\\\", \\\"dark cocoa shards catching highlights\\\", \\\"black orchid petals drifting slowly\\\", \\\"smoked vanilla pods suspended in air\\\", \\\"tiny amber resin fragments sparkling\\\" ], \\\"surface_effects\\\": \\\"micro condensation droplets and polished reflections enhancing realism\\\" }, \\\"lighting\\\": { \\\"style\\\": \\\"dramatically sculpted low-key studio lighting\\\", \\\"key_light\\\": \\\"soft directional light defining contours and glass curvature\\\", \\\"rim_lights\\\": \\\"warm golden rim lights outlining silhouette\\\", \\\"accent_lights\\\": \\\"subtle amber highlights emphasizing cap and liquid glow\\\", \\\"shadow_depth\\\": \\\"deep shadows for cinematic luxury mood\\\", \\\"contrast\\\": \\\"rich contrast with controlled highlights and luminous reflections\\\" }, \\\"color_palette\\\": { \\\"primary_colors\\\": [\\\"obsidian black\\\", \\\"charcoal shadow\\\", \\\"deep amber\\\"], \\\"accent_colors\\\": [\\\"antique gold\\\", \\\"warm bronze glow\\\"] }, \\\"camera_settings\\\": { \\\"lens\\\": \\\"macro cinema prime lens\\\", \\\"depth_of_field\\\": \\\"shallow depth isolating product\\\", \\\"focus_point\\\": \\\"brand crest and glass curvature\\\", \\\"bokeh\\\": \\\"soft golden bokeh from reflective particles\\\", \\\"detail_capture\\\": \\\"extreme micro-detail clarity\\\" }, \\\"render_quality\\\": { \\\"resolution\\\": \\\"8K ultra high definition\\\", \\\"render_style\\\": \\\"hyper-realistic luxury commercial render\\\", \\\"glass_physics\\\": \\\"accurate refraction and internal reflections\\\", \\\"liquid_simulation\\\": \\\"physically accurate fluid glow and viscosity\\\", \\\"textures\\\": \\\"ultra-detailed glass, metal, vapor, and dust textures\\\", \\\"sharpness\\\": \\\"tack sharp product focus with cinematic background softness\\\", \\\"noise\\\": \\\"none\\\", \\\"artifacts\\\": \\\"none\\\" }, \\\"mood\\\": { \\\"tone\\\": \\\"mysterious, opulent, and powerful\\\", \\\"emotion\\\": \\\"nighttime luxury, sensual elegance, timeless prestige\\\" }, \\\"final_output\\\": { \\\"usage\\\": \\\"luxury fragrance campaign and premium magazine advertising\\\", \\\"branding_focus\\\": \\\"hero product dominance with elite brand presence\\\", \\\"visual_style\\\": \\\"cinematic haute parfumerie commercial aesthetic\\\" } } }\"}")
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)
}