复制
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": "NOIR ÉLIXIR", "fragrance_line": "Midnight Reserve", "container_shape": "faceted geometric crystal bottle with sharp elegant edges", "material": "high-clarity glass with deep smoked black gradient tint", "finish": "polished reflective surfaces with subtle matte facets", "cap_design": "magnetic cap in brushed gold metal with engraved emblem", "label_style": "minimal serif typography etched directly into glass with gold inlay", "liquid_color": "dark amber with subtle golden undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "dramatic diagonal hero angle", "subject_position": "floating mid-air with slight forward tilt", "motion": "atomized perfume mist trails and fluid fragrance ribbons suspended in motion" }, "environment": { "background": "deep black velvet gradient fading into shadow", "atmosphere": "volumetric mist with delicate fragrance vapor swirling around the bottle", "floating_elements": [ "atomized perfume droplets suspended mid-air", "shattered crystal glass fragments catching highlights", "dark orchid petals drifting slowly", "glossy black citrus peel curls", "fine gold dust particles sparkling in light" ], "surface_effects": "micro condensation beads and polished reflections enhancing realism" }, "lighting": { "style": "dramatic low-key studio lighting", "key_light": "soft directional light sculpting the glass facets", "rim_lights": "strong rim lights outlining silhouette and edges", "accent_lights": "gold-toned specular highlights on cap and engraved details", "shadow_depth": "deep cinematic shadows for luxury mood", "contrast": "high contrast with controlled reflections and luminous highlights" }, "color_palette": { "primary_colors": ["obsidian black", "smoked charcoal", "deep amber"], "accent_colors": ["metallic gold", "warm champagne glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product from background", "focus_point": "engraved logo and glass surface textures", "bokeh": "smooth cinematic 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 dynamics", "textures": "ultra-detailed crystal, metal, mist, and micro-droplet textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, sensual, and ultra-premium", "emotion": "luxury, seduction, elegance, timeless sophistication" }, "final_output": { "usage": "high-end perfume campaign and luxury magazine advertising", "branding_focus": "hero product dominance with strong brand prestige", "visual_style": "cinematic fragrance commercial aesthetic" } } }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "NOIR ÉLIXIR", "fragrance_line": "Midnight Reserve", "container_shape": "faceted geometric crystal bottle with sharp elegant edges", "material": "high-clarity glass with deep smoked black gradient tint", "finish": "polished reflective surfaces with subtle matte facets", "cap_design": "magnetic cap in brushed gold metal with engraved emblem", "label_style": "minimal serif typography etched directly into glass with gold inlay", "liquid_color": "dark amber with subtle golden undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "dramatic diagonal hero angle", "subject_position": "floating mid-air with slight forward tilt", "motion": "atomized perfume mist trails and fluid fragrance ribbons suspended in motion" }, "environment": { "background": "deep black velvet gradient fading into shadow", "atmosphere": "volumetric mist with delicate fragrance vapor swirling around the bottle", "floating_elements": [ "atomized perfume droplets suspended mid-air", "shattered crystal glass fragments catching highlights", "dark orchid petals drifting slowly", "glossy black citrus peel curls", "fine gold dust particles sparkling in light" ], "surface_effects": "micro condensation beads and polished reflections enhancing realism" }, "lighting": { "style": "dramatic low-key studio lighting", "key_light": "soft directional light sculpting the glass facets", "rim_lights": "strong rim lights outlining silhouette and edges", "accent_lights": "gold-toned specular highlights on cap and engraved details", "shadow_depth": "deep cinematic shadows for luxury mood", "contrast": "high contrast with controlled reflections and luminous highlights" }, "color_palette": { "primary_colors": ["obsidian black", "smoked charcoal", "deep amber"], "accent_colors": ["metallic gold", "warm champagne glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product from background", "focus_point": "engraved logo and glass surface textures", "bokeh": "smooth cinematic 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 dynamics", "textures": "ultra-detailed crystal, metal, mist, and micro-droplet textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, sensual, and ultra-premium", "emotion": "luxury, seduction, elegance, timeless sophistication" }, "final_output": { "usage": "high-end perfume campaign and luxury magazine advertising", "branding_focus": "hero product dominance with strong brand prestige", "visual_style": "cinematic fragrance commercial aesthetic" } } }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "NOIR ÉLIXIR", "fragrance_line": "Midnight Reserve", "container_shape": "faceted geometric crystal bottle with sharp elegant edges", "material": "high-clarity glass with deep smoked black gradient tint", "finish": "polished reflective surfaces with subtle matte facets", "cap_design": "magnetic cap in brushed gold metal with engraved emblem", "label_style": "minimal serif typography etched directly into glass with gold inlay", "liquid_color": "dark amber with subtle golden undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "dramatic diagonal hero angle", "subject_position": "floating mid-air with slight forward tilt", "motion": "atomized perfume mist trails and fluid fragrance ribbons suspended in motion" }, "environment": { "background": "deep black velvet gradient fading into shadow", "atmosphere": "volumetric mist with delicate fragrance vapor swirling around the bottle", "floating_elements": [ "atomized perfume droplets suspended mid-air", "shattered crystal glass fragments catching highlights", "dark orchid petals drifting slowly", "glossy black citrus peel curls", "fine gold dust particles sparkling in light" ], "surface_effects": "micro condensation beads and polished reflections enhancing realism" }, "lighting": { "style": "dramatic low-key studio lighting", "key_light": "soft directional light sculpting the glass facets", "rim_lights": "strong rim lights outlining silhouette and edges", "accent_lights": "gold-toned specular highlights on cap and engraved details", "shadow_depth": "deep cinematic shadows for luxury mood", "contrast": "high contrast with controlled reflections and luminous highlights" }, "color_palette": { "primary_colors": ["obsidian black", "smoked charcoal", "deep amber"], "accent_colors": ["metallic gold", "warm champagne glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product from background", "focus_point": "engraved logo and glass surface textures", "bokeh": "smooth cinematic 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 dynamics", "textures": "ultra-detailed crystal, metal, mist, and micro-droplet textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, sensual, and ultra-premium", "emotion": "luxury, seduction, elegance, timeless sophistication" }, "final_output": { "usage": "high-end perfume campaign and luxury magazine advertising", "branding_focus": "hero product dominance with strong brand prestige", "visual_style": "cinematic fragrance commercial aesthetic" } } }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "product": { "type": "luxury perfume bottle", "brand_name": "NOIR ÉLIXIR", "fragrance_line": "Midnight Reserve", "container_shape": "faceted geometric crystal bottle with sharp elegant edges", "material": "high-clarity glass with deep smoked black gradient tint", "finish": "polished reflective surfaces with subtle matte facets", "cap_design": "magnetic cap in brushed gold metal with engraved emblem", "label_style": "minimal serif typography etched directly into glass with gold inlay", "liquid_color": "dark amber with subtle golden undertones" }, "composition": { "scene_type": "ultra-cinematic luxury fragrance advertising photography", "orientation": "vertical", "aspect_ratio": "4:5", "camera_angle": "dramatic diagonal hero angle", "subject_position": "floating mid-air with slight forward tilt", "motion": "atomized perfume mist trails and fluid fragrance ribbons suspended in motion" }, "environment": { "background": "deep black velvet gradient fading into shadow", "atmosphere": "volumetric mist with delicate fragrance vapor swirling around the bottle", "floating_elements": [ "atomized perfume droplets suspended mid-air", "shattered crystal glass fragments catching highlights", "dark orchid petals drifting slowly", "glossy black citrus peel curls", "fine gold dust particles sparkling in light" ], "surface_effects": "micro condensation beads and polished reflections enhancing realism" }, "lighting": { "style": "dramatic low-key studio lighting", "key_light": "soft directional light sculpting the glass facets", "rim_lights": "strong rim lights outlining silhouette and edges", "accent_lights": "gold-toned specular highlights on cap and engraved details", "shadow_depth": "deep cinematic shadows for luxury mood", "contrast": "high contrast with controlled reflections and luminous highlights" }, "color_palette": { "primary_colors": ["obsidian black", "smoked charcoal", "deep amber"], "accent_colors": ["metallic gold", "warm champagne glow"] }, "camera_settings": { "lens": "macro cinema prime lens", "depth_of_field": "shallow depth isolating product from background", "focus_point": "engraved logo and glass surface textures", "bokeh": "smooth cinematic 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 dynamics", "textures": "ultra-detailed crystal, metal, mist, and micro-droplet textures", "sharpness": "tack sharp product focus with cinematic background softness", "noise": "none", "artifacts": "none" }, "mood": { "tone": "mysterious, sensual, and ultra-premium", "emotion": "luxury, seduction, elegance, timeless sophistication" }, "final_output": { "usage": "high-end perfume campaign and luxury magazine advertising", "branding_focus": "hero product dominance with strong brand prestige", "visual_style": "cinematic fragrance 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\": \"NOIR ÉLIXIR\", \"fragrance_line\": \"Midnight Reserve\", \"container_shape\": \"faceted geometric crystal bottle with sharp elegant edges\", \"material\": \"high-clarity glass with deep smoked black gradient tint\", \"finish\": \"polished reflective surfaces with subtle matte facets\", \"cap_design\": \"magnetic cap in brushed gold metal with engraved emblem\", \"label_style\": \"minimal serif typography etched directly into glass with gold inlay\", \"liquid_color\": \"dark amber with subtle golden undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"dramatic diagonal hero angle\", \"subject_position\": \"floating mid-air with slight forward tilt\", \"motion\": \"atomized perfume mist trails and fluid fragrance ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep black velvet gradient fading into shadow\", \"atmosphere\": \"volumetric mist with delicate fragrance vapor swirling around the bottle\", \"floating_elements\": [ \"atomized perfume droplets suspended mid-air\", \"shattered crystal glass fragments catching highlights\", \"dark orchid petals drifting slowly\", \"glossy black citrus peel curls\", \"fine gold dust particles sparkling in light\" ], \"surface_effects\": \"micro condensation beads and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatic low-key studio lighting\", \"key_light\": \"soft directional light sculpting the glass facets\", \"rim_lights\": \"strong rim lights outlining silhouette and edges\", \"accent_lights\": \"gold-toned specular highlights on cap and engraved details\", \"shadow_depth\": \"deep cinematic shadows for luxury mood\", \"contrast\": \"high contrast with controlled reflections and luminous highlights\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"smoked charcoal\", \"deep amber\"], \"accent_colors\": [\"metallic gold\", \"warm champagne glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product from background\", \"focus_point\": \"engraved logo and glass surface textures\", \"bokeh\": \"smooth cinematic 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 dynamics\", \"textures\": \"ultra-detailed crystal, metal, mist, and micro-droplet textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, sensual, and ultra-premium\", \"emotion\": \"luxury, seduction, elegance, timeless sophistication\" }, \"final_output\": { \"usage\": \"high-end perfume campaign and luxury magazine advertising\", \"branding_focus\": \"hero product dominance with strong brand prestige\", \"visual_style\": \"cinematic fragrance 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\": \"NOIR ÉLIXIR\", \"fragrance_line\": \"Midnight Reserve\", \"container_shape\": \"faceted geometric crystal bottle with sharp elegant edges\", \"material\": \"high-clarity glass with deep smoked black gradient tint\", \"finish\": \"polished reflective surfaces with subtle matte facets\", \"cap_design\": \"magnetic cap in brushed gold metal with engraved emblem\", \"label_style\": \"minimal serif typography etched directly into glass with gold inlay\", \"liquid_color\": \"dark amber with subtle golden undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"dramatic diagonal hero angle\", \"subject_position\": \"floating mid-air with slight forward tilt\", \"motion\": \"atomized perfume mist trails and fluid fragrance ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep black velvet gradient fading into shadow\", \"atmosphere\": \"volumetric mist with delicate fragrance vapor swirling around the bottle\", \"floating_elements\": [ \"atomized perfume droplets suspended mid-air\", \"shattered crystal glass fragments catching highlights\", \"dark orchid petals drifting slowly\", \"glossy black citrus peel curls\", \"fine gold dust particles sparkling in light\" ], \"surface_effects\": \"micro condensation beads and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatic low-key studio lighting\", \"key_light\": \"soft directional light sculpting the glass facets\", \"rim_lights\": \"strong rim lights outlining silhouette and edges\", \"accent_lights\": \"gold-toned specular highlights on cap and engraved details\", \"shadow_depth\": \"deep cinematic shadows for luxury mood\", \"contrast\": \"high contrast with controlled reflections and luminous highlights\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"smoked charcoal\", \"deep amber\"], \"accent_colors\": [\"metallic gold\", \"warm champagne glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product from background\", \"focus_point\": \"engraved logo and glass surface textures\", \"bokeh\": \"smooth cinematic 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 dynamics\", \"textures\": \"ultra-detailed crystal, metal, mist, and micro-droplet textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, sensual, and ultra-premium\", \"emotion\": \"luxury, seduction, elegance, timeless sophistication\" }, \"final_output\": { \"usage\": \"high-end perfume campaign and luxury magazine advertising\", \"branding_focus\": \"hero product dominance with strong brand prestige\", \"visual_style\": \"cinematic fragrance 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\": \"NOIR ÉLIXIR\", \"fragrance_line\": \"Midnight Reserve\", \"container_shape\": \"faceted geometric crystal bottle with sharp elegant edges\", \"material\": \"high-clarity glass with deep smoked black gradient tint\", \"finish\": \"polished reflective surfaces with subtle matte facets\", \"cap_design\": \"magnetic cap in brushed gold metal with engraved emblem\", \"label_style\": \"minimal serif typography etched directly into glass with gold inlay\", \"liquid_color\": \"dark amber with subtle golden undertones\" }, \"composition\": { \"scene_type\": \"ultra-cinematic luxury fragrance advertising photography\", \"orientation\": \"vertical\", \"aspect_ratio\": \"4:5\", \"camera_angle\": \"dramatic diagonal hero angle\", \"subject_position\": \"floating mid-air with slight forward tilt\", \"motion\": \"atomized perfume mist trails and fluid fragrance ribbons suspended in motion\" }, \"environment\": { \"background\": \"deep black velvet gradient fading into shadow\", \"atmosphere\": \"volumetric mist with delicate fragrance vapor swirling around the bottle\", \"floating_elements\": [ \"atomized perfume droplets suspended mid-air\", \"shattered crystal glass fragments catching highlights\", \"dark orchid petals drifting slowly\", \"glossy black citrus peel curls\", \"fine gold dust particles sparkling in light\" ], \"surface_effects\": \"micro condensation beads and polished reflections enhancing realism\" }, \"lighting\": { \"style\": \"dramatic low-key studio lighting\", \"key_light\": \"soft directional light sculpting the glass facets\", \"rim_lights\": \"strong rim lights outlining silhouette and edges\", \"accent_lights\": \"gold-toned specular highlights on cap and engraved details\", \"shadow_depth\": \"deep cinematic shadows for luxury mood\", \"contrast\": \"high contrast with controlled reflections and luminous highlights\" }, \"color_palette\": { \"primary_colors\": [\"obsidian black\", \"smoked charcoal\", \"deep amber\"], \"accent_colors\": [\"metallic gold\", \"warm champagne glow\"] }, \"camera_settings\": { \"lens\": \"macro cinema prime lens\", \"depth_of_field\": \"shallow depth isolating product from background\", \"focus_point\": \"engraved logo and glass surface textures\", \"bokeh\": \"smooth cinematic 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 dynamics\", \"textures\": \"ultra-detailed crystal, metal, mist, and micro-droplet textures\", \"sharpness\": \"tack sharp product focus with cinematic background softness\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"mood\": { \"tone\": \"mysterious, sensual, and ultra-premium\", \"emotion\": \"luxury, seduction, elegance, timeless sophistication\" }, \"final_output\": { \"usage\": \"high-end perfume campaign and luxury magazine advertising\", \"branding_focus\": \"hero product dominance with strong brand prestige\", \"visual_style\": \"cinematic fragrance 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\\\": \\\"NOIR ÉLIXIR\\\", \\\"fragrance_line\\\": \\\"Midnight Reserve\\\", \\\"container_shape\\\": \\\"faceted geometric crystal bottle with sharp elegant edges\\\", \\\"material\\\": \\\"high-clarity glass with deep smoked black gradient tint\\\", \\\"finish\\\": \\\"polished reflective surfaces with subtle matte facets\\\", \\\"cap_design\\\": \\\"magnetic cap in brushed gold metal with engraved emblem\\\", \\\"label_style\\\": \\\"minimal serif typography etched directly into glass with gold inlay\\\", \\\"liquid_color\\\": \\\"dark amber with subtle golden undertones\\\" }, \\\"composition\\\": { \\\"scene_type\\\": \\\"ultra-cinematic luxury fragrance advertising photography\\\", \\\"orientation\\\": \\\"vertical\\\", \\\"aspect_ratio\\\": \\\"4:5\\\", \\\"camera_angle\\\": \\\"dramatic diagonal hero angle\\\", \\\"subject_position\\\": \\\"floating mid-air with slight forward tilt\\\", \\\"motion\\\": \\\"atomized perfume mist trails and fluid fragrance ribbons suspended in motion\\\" }, \\\"environment\\\": { \\\"background\\\": \\\"deep black velvet gradient fading into shadow\\\", \\\"atmosphere\\\": \\\"volumetric mist with delicate fragrance vapor swirling around the bottle\\\", \\\"floating_elements\\\": [ \\\"atomized perfume droplets suspended mid-air\\\", \\\"shattered crystal glass fragments catching highlights\\\", \\\"dark orchid petals drifting slowly\\\", \\\"glossy black citrus peel curls\\\", \\\"fine gold dust particles sparkling in light\\\" ], \\\"surface_effects\\\": \\\"micro condensation beads and polished reflections enhancing realism\\\" }, \\\"lighting\\\": { \\\"style\\\": \\\"dramatic low-key studio lighting\\\", \\\"key_light\\\": \\\"soft directional light sculpting the glass facets\\\", \\\"rim_lights\\\": \\\"strong rim lights outlining silhouette and edges\\\", \\\"accent_lights\\\": \\\"gold-toned specular highlights on cap and engraved details\\\", \\\"shadow_depth\\\": \\\"deep cinematic shadows for luxury mood\\\", \\\"contrast\\\": \\\"high contrast with controlled reflections and luminous highlights\\\" }, \\\"color_palette\\\": { \\\"primary_colors\\\": [\\\"obsidian black\\\", \\\"smoked charcoal\\\", \\\"deep amber\\\"], \\\"accent_colors\\\": [\\\"metallic gold\\\", \\\"warm champagne glow\\\"] }, \\\"camera_settings\\\": { \\\"lens\\\": \\\"macro cinema prime lens\\\", \\\"depth_of_field\\\": \\\"shallow depth isolating product from background\\\", \\\"focus_point\\\": \\\"engraved logo and glass surface textures\\\", \\\"bokeh\\\": \\\"smooth cinematic 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 dynamics\\\", \\\"textures\\\": \\\"ultra-detailed crystal, metal, mist, and micro-droplet textures\\\", \\\"sharpness\\\": \\\"tack sharp product focus with cinematic background softness\\\", \\\"noise\\\": \\\"none\\\", \\\"artifacts\\\": \\\"none\\\" }, \\\"mood\\\": { \\\"tone\\\": \\\"mysterious, sensual, and ultra-premium\\\", \\\"emotion\\\": \\\"luxury, seduction, elegance, timeless sophistication\\\" }, \\\"final_output\\\": { \\\"usage\\\": \\\"high-end perfume campaign and luxury magazine advertising\\\", \\\"branding_focus\\\": \\\"hero product dominance with strong brand prestige\\\", \\\"visual_style\\\": \\\"cinematic fragrance 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)
}