复制
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "global_settings": { "resolution": "8K ultra-high-definition", "aspect_ratio": "3:4 vertical", "style": "hyper-realistic AI-edited commercial product photography", "sharpness": "extreme clarity, micro-detail visibility", "lighting_quality": "cinematic studio lighting with controlled highlights and shadows", "motion_freeze": "high-speed capture, frozen splashes and particles", "noise": "none", "artifacts": "none" }, "module_1_image_1_style": { "subject": { "type": "functional yogurt smoothie bottle", "material": "frosted plastic", "color": "soft pastel lavender", "surface_details": "dense condensation droplets covering the entire bottle", "label_text_visible": [ "probiotic blend", "mock up", "high protein", "LOW FAT", "SEPARATED SHADOWS" ] }, "pose_and_orientation": { "position": "slightly tilted forward", "angle": "three-quarter view", "motion_feel": "energetic, mid-impact splash moment" }, "liquid_and_motion": { "liquid_color": "light purple yogurt smoothie", "texture": "thick, creamy, glossy", "motion": "smooth splash wrapping around the bottle with upward arcs" }, "floating_elements": { "berries": "blackberries and blueberries floating at varying depths", "lavender_petals": "soft purple petals suspended mid-air", "droplets": "yogurt droplets and micro splashes frozen in motion" }, "background": { "color_gradient": "deep violet fading into soft peach highlights", "bokeh": "subtle glowing circular light orbs" }, "surface_and_reflection": { "base": "matte surface with creamy liquid pooling", "shadow_style": "clean, separated soft shadow beneath bottle" } }, "module_2_image_2_style": { "subject": { "type": "sparkling electrolyte drink can", "material": "brushed aluminum", "color": "icy silver with neon cyan accents", "surface_details": "intense cold condensation with crystal-clear droplets", "branding_text_visible": [ "HYDRATE+", "Electrolyte Drink", "ZERO SUGAR", "NEW FORMULA", "WITH MINERALS" ] }, "pose_and_orientation": { "position": "upright and centered", "angle": "straight-on front view", "presence": "strong hero product stance" }, "liquid_and_motion": { "liquid_color": "clear carbonated liquid with bubbles", "motion": "explosive splash bursting outward from the base", "droplet_behavior": "sharp, glass-like droplets flying outward" }, "floating_elements": { "ice_cubes": "transparent ice cubes spinning in mid-air", "lime_slices": "fresh lime slices with visible pulp", "bubbles": "carbonation bubbles rising around the can" }, "background": { "color_palette": "cool blues, cyan highlights, metallic silver tones", "atmosphere": "fresh, high-energy, ultra-refreshing" }, "surface_and_reflection": { "base": "wet reflective surface with splash crown", "reflection_quality": "crisp reflections with controlled specular highlights" } } } }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "global_settings": { "resolution": "8K ultra-high-definition", "aspect_ratio": "3:4 vertical", "style": "hyper-realistic AI-edited commercial product photography", "sharpness": "extreme clarity, micro-detail visibility", "lighting_quality": "cinematic studio lighting with controlled highlights and shadows", "motion_freeze": "high-speed capture, frozen splashes and particles", "noise": "none", "artifacts": "none" }, "module_1_image_1_style": { "subject": { "type": "functional yogurt smoothie bottle", "material": "frosted plastic", "color": "soft pastel lavender", "surface_details": "dense condensation droplets covering the entire bottle", "label_text_visible": [ "probiotic blend", "mock up", "high protein", "LOW FAT", "SEPARATED SHADOWS" ] }, "pose_and_orientation": { "position": "slightly tilted forward", "angle": "three-quarter view", "motion_feel": "energetic, mid-impact splash moment" }, "liquid_and_motion": { "liquid_color": "light purple yogurt smoothie", "texture": "thick, creamy, glossy", "motion": "smooth splash wrapping around the bottle with upward arcs" }, "floating_elements": { "berries": "blackberries and blueberries floating at varying depths", "lavender_petals": "soft purple petals suspended mid-air", "droplets": "yogurt droplets and micro splashes frozen in motion" }, "background": { "color_gradient": "deep violet fading into soft peach highlights", "bokeh": "subtle glowing circular light orbs" }, "surface_and_reflection": { "base": "matte surface with creamy liquid pooling", "shadow_style": "clean, separated soft shadow beneath bottle" } }, "module_2_image_2_style": { "subject": { "type": "sparkling electrolyte drink can", "material": "brushed aluminum", "color": "icy silver with neon cyan accents", "surface_details": "intense cold condensation with crystal-clear droplets", "branding_text_visible": [ "HYDRATE+", "Electrolyte Drink", "ZERO SUGAR", "NEW FORMULA", "WITH MINERALS" ] }, "pose_and_orientation": { "position": "upright and centered", "angle": "straight-on front view", "presence": "strong hero product stance" }, "liquid_and_motion": { "liquid_color": "clear carbonated liquid with bubbles", "motion": "explosive splash bursting outward from the base", "droplet_behavior": "sharp, glass-like droplets flying outward" }, "floating_elements": { "ice_cubes": "transparent ice cubes spinning in mid-air", "lime_slices": "fresh lime slices with visible pulp", "bubbles": "carbonation bubbles rising around the can" }, "background": { "color_palette": "cool blues, cyan highlights, metallic silver tones", "atmosphere": "fresh, high-energy, ultra-refreshing" }, "surface_and_reflection": { "base": "wet reflective surface with splash crown", "reflection_quality": "crisp reflections with controlled specular highlights" } } } }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "global_settings": { "resolution": "8K ultra-high-definition", "aspect_ratio": "3:4 vertical", "style": "hyper-realistic AI-edited commercial product photography", "sharpness": "extreme clarity, micro-detail visibility", "lighting_quality": "cinematic studio lighting with controlled highlights and shadows", "motion_freeze": "high-speed capture, frozen splashes and particles", "noise": "none", "artifacts": "none" }, "module_1_image_1_style": { "subject": { "type": "functional yogurt smoothie bottle", "material": "frosted plastic", "color": "soft pastel lavender", "surface_details": "dense condensation droplets covering the entire bottle", "label_text_visible": [ "probiotic blend", "mock up", "high protein", "LOW FAT", "SEPARATED SHADOWS" ] }, "pose_and_orientation": { "position": "slightly tilted forward", "angle": "three-quarter view", "motion_feel": "energetic, mid-impact splash moment" }, "liquid_and_motion": { "liquid_color": "light purple yogurt smoothie", "texture": "thick, creamy, glossy", "motion": "smooth splash wrapping around the bottle with upward arcs" }, "floating_elements": { "berries": "blackberries and blueberries floating at varying depths", "lavender_petals": "soft purple petals suspended mid-air", "droplets": "yogurt droplets and micro splashes frozen in motion" }, "background": { "color_gradient": "deep violet fading into soft peach highlights", "bokeh": "subtle glowing circular light orbs" }, "surface_and_reflection": { "base": "matte surface with creamy liquid pooling", "shadow_style": "clean, separated soft shadow beneath bottle" } }, "module_2_image_2_style": { "subject": { "type": "sparkling electrolyte drink can", "material": "brushed aluminum", "color": "icy silver with neon cyan accents", "surface_details": "intense cold condensation with crystal-clear droplets", "branding_text_visible": [ "HYDRATE+", "Electrolyte Drink", "ZERO SUGAR", "NEW FORMULA", "WITH MINERALS" ] }, "pose_and_orientation": { "position": "upright and centered", "angle": "straight-on front view", "presence": "strong hero product stance" }, "liquid_and_motion": { "liquid_color": "clear carbonated liquid with bubbles", "motion": "explosive splash bursting outward from the base", "droplet_behavior": "sharp, glass-like droplets flying outward" }, "floating_elements": { "ice_cubes": "transparent ice cubes spinning in mid-air", "lime_slices": "fresh lime slices with visible pulp", "bubbles": "carbonation bubbles rising around the can" }, "background": { "color_palette": "cool blues, cyan highlights, metallic silver tones", "atmosphere": "fresh, high-energy, ultra-refreshing" }, "surface_and_reflection": { "base": "wet reflective surface with splash crown", "reflection_quality": "crisp reflections with controlled specular highlights" } } } }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "master_prompt": { "global_settings": { "resolution": "8K ultra-high-definition", "aspect_ratio": "3:4 vertical", "style": "hyper-realistic AI-edited commercial product photography", "sharpness": "extreme clarity, micro-detail visibility", "lighting_quality": "cinematic studio lighting with controlled highlights and shadows", "motion_freeze": "high-speed capture, frozen splashes and particles", "noise": "none", "artifacts": "none" }, "module_1_image_1_style": { "subject": { "type": "functional yogurt smoothie bottle", "material": "frosted plastic", "color": "soft pastel lavender", "surface_details": "dense condensation droplets covering the entire bottle", "label_text_visible": [ "probiotic blend", "mock up", "high protein", "LOW FAT", "SEPARATED SHADOWS" ] }, "pose_and_orientation": { "position": "slightly tilted forward", "angle": "three-quarter view", "motion_feel": "energetic, mid-impact splash moment" }, "liquid_and_motion": { "liquid_color": "light purple yogurt smoothie", "texture": "thick, creamy, glossy", "motion": "smooth splash wrapping around the bottle with upward arcs" }, "floating_elements": { "berries": "blackberries and blueberries floating at varying depths", "lavender_petals": "soft purple petals suspended mid-air", "droplets": "yogurt droplets and micro splashes frozen in motion" }, "background": { "color_gradient": "deep violet fading into soft peach highlights", "bokeh": "subtle glowing circular light orbs" }, "surface_and_reflection": { "base": "matte surface with creamy liquid pooling", "shadow_style": "clean, separated soft shadow beneath bottle" } }, "module_2_image_2_style": { "subject": { "type": "sparkling electrolyte drink can", "material": "brushed aluminum", "color": "icy silver with neon cyan accents", "surface_details": "intense cold condensation with crystal-clear droplets", "branding_text_visible": [ "HYDRATE+", "Electrolyte Drink", "ZERO SUGAR", "NEW FORMULA", "WITH MINERALS" ] }, "pose_and_orientation": { "position": "upright and centered", "angle": "straight-on front view", "presence": "strong hero product stance" }, "liquid_and_motion": { "liquid_color": "clear carbonated liquid with bubbles", "motion": "explosive splash bursting outward from the base", "droplet_behavior": "sharp, glass-like droplets flying outward" }, "floating_elements": { "ice_cubes": "transparent ice cubes spinning in mid-air", "lime_slices": "fresh lime slices with visible pulp", "bubbles": "carbonation bubbles rising around the can" }, "background": { "color_palette": "cool blues, cyan highlights, metallic silver tones", "atmosphere": "fresh, high-energy, ultra-refreshing" }, "surface_and_reflection": { "base": "wet reflective surface with splash crown", "reflection_quality": "crisp reflections with controlled specular highlights" } } } }"
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\": { \"global_settings\": { \"resolution\": \"8K ultra-high-definition\", \"aspect_ratio\": \"3:4 vertical\", \"style\": \"hyper-realistic AI-edited commercial product photography\", \"sharpness\": \"extreme clarity, micro-detail visibility\", \"lighting_quality\": \"cinematic studio lighting with controlled highlights and shadows\", \"motion_freeze\": \"high-speed capture, frozen splashes and particles\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"module_1_image_1_style\": { \"subject\": { \"type\": \"functional yogurt smoothie bottle\", \"material\": \"frosted plastic\", \"color\": \"soft pastel lavender\", \"surface_details\": \"dense condensation droplets covering the entire bottle\", \"label_text_visible\": [ \"probiotic blend\", \"mock up\", \"high protein\", \"LOW FAT\", \"SEPARATED SHADOWS\" ] }, \"pose_and_orientation\": { \"position\": \"slightly tilted forward\", \"angle\": \"three-quarter view\", \"motion_feel\": \"energetic, mid-impact splash moment\" }, \"liquid_and_motion\": { \"liquid_color\": \"light purple yogurt smoothie\", \"texture\": \"thick, creamy, glossy\", \"motion\": \"smooth splash wrapping around the bottle with upward arcs\" }, \"floating_elements\": { \"berries\": \"blackberries and blueberries floating at varying depths\", \"lavender_petals\": \"soft purple petals suspended mid-air\", \"droplets\": \"yogurt droplets and micro splashes frozen in motion\" }, \"background\": { \"color_gradient\": \"deep violet fading into soft peach highlights\", \"bokeh\": \"subtle glowing circular light orbs\" }, \"surface_and_reflection\": { \"base\": \"matte surface with creamy liquid pooling\", \"shadow_style\": \"clean, separated soft shadow beneath bottle\" } }, \"module_2_image_2_style\": { \"subject\": { \"type\": \"sparkling electrolyte drink can\", \"material\": \"brushed aluminum\", \"color\": \"icy silver with neon cyan accents\", \"surface_details\": \"intense cold condensation with crystal-clear droplets\", \"branding_text_visible\": [ \"HYDRATE+\", \"Electrolyte Drink\", \"ZERO SUGAR\", \"NEW FORMULA\", \"WITH MINERALS\" ] }, \"pose_and_orientation\": { \"position\": \"upright and centered\", \"angle\": \"straight-on front view\", \"presence\": \"strong hero product stance\" }, \"liquid_and_motion\": { \"liquid_color\": \"clear carbonated liquid with bubbles\", \"motion\": \"explosive splash bursting outward from the base\", \"droplet_behavior\": \"sharp, glass-like droplets flying outward\" }, \"floating_elements\": { \"ice_cubes\": \"transparent ice cubes spinning in mid-air\", \"lime_slices\": \"fresh lime slices with visible pulp\", \"bubbles\": \"carbonation bubbles rising around the can\" }, \"background\": { \"color_palette\": \"cool blues, cyan highlights, metallic silver tones\", \"atmosphere\": \"fresh, high-energy, ultra-refreshing\" }, \"surface_and_reflection\": { \"base\": \"wet reflective surface with splash crown\", \"reflection_quality\": \"crisp reflections with controlled specular highlights\" } } } }"
}
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\": { \"global_settings\": { \"resolution\": \"8K ultra-high-definition\", \"aspect_ratio\": \"3:4 vertical\", \"style\": \"hyper-realistic AI-edited commercial product photography\", \"sharpness\": \"extreme clarity, micro-detail visibility\", \"lighting_quality\": \"cinematic studio lighting with controlled highlights and shadows\", \"motion_freeze\": \"high-speed capture, frozen splashes and particles\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"module_1_image_1_style\": { \"subject\": { \"type\": \"functional yogurt smoothie bottle\", \"material\": \"frosted plastic\", \"color\": \"soft pastel lavender\", \"surface_details\": \"dense condensation droplets covering the entire bottle\", \"label_text_visible\": [ \"probiotic blend\", \"mock up\", \"high protein\", \"LOW FAT\", \"SEPARATED SHADOWS\" ] }, \"pose_and_orientation\": { \"position\": \"slightly tilted forward\", \"angle\": \"three-quarter view\", \"motion_feel\": \"energetic, mid-impact splash moment\" }, \"liquid_and_motion\": { \"liquid_color\": \"light purple yogurt smoothie\", \"texture\": \"thick, creamy, glossy\", \"motion\": \"smooth splash wrapping around the bottle with upward arcs\" }, \"floating_elements\": { \"berries\": \"blackberries and blueberries floating at varying depths\", \"lavender_petals\": \"soft purple petals suspended mid-air\", \"droplets\": \"yogurt droplets and micro splashes frozen in motion\" }, \"background\": { \"color_gradient\": \"deep violet fading into soft peach highlights\", \"bokeh\": \"subtle glowing circular light orbs\" }, \"surface_and_reflection\": { \"base\": \"matte surface with creamy liquid pooling\", \"shadow_style\": \"clean, separated soft shadow beneath bottle\" } }, \"module_2_image_2_style\": { \"subject\": { \"type\": \"sparkling electrolyte drink can\", \"material\": \"brushed aluminum\", \"color\": \"icy silver with neon cyan accents\", \"surface_details\": \"intense cold condensation with crystal-clear droplets\", \"branding_text_visible\": [ \"HYDRATE+\", \"Electrolyte Drink\", \"ZERO SUGAR\", \"NEW FORMULA\", \"WITH MINERALS\" ] }, \"pose_and_orientation\": { \"position\": \"upright and centered\", \"angle\": \"straight-on front view\", \"presence\": \"strong hero product stance\" }, \"liquid_and_motion\": { \"liquid_color\": \"clear carbonated liquid with bubbles\", \"motion\": \"explosive splash bursting outward from the base\", \"droplet_behavior\": \"sharp, glass-like droplets flying outward\" }, \"floating_elements\": { \"ice_cubes\": \"transparent ice cubes spinning in mid-air\", \"lime_slices\": \"fresh lime slices with visible pulp\", \"bubbles\": \"carbonation bubbles rising around the can\" }, \"background\": { \"color_palette\": \"cool blues, cyan highlights, metallic silver tones\", \"atmosphere\": \"fresh, high-energy, ultra-refreshing\" }, \"surface_and_reflection\": { \"base\": \"wet reflective surface with splash crown\", \"reflection_quality\": \"crisp reflections with controlled specular highlights\" } } } }"
});
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\": { \"global_settings\": { \"resolution\": \"8K ultra-high-definition\", \"aspect_ratio\": \"3:4 vertical\", \"style\": \"hyper-realistic AI-edited commercial product photography\", \"sharpness\": \"extreme clarity, micro-detail visibility\", \"lighting_quality\": \"cinematic studio lighting with controlled highlights and shadows\", \"motion_freeze\": \"high-speed capture, frozen splashes and particles\", \"noise\": \"none\", \"artifacts\": \"none\" }, \"module_1_image_1_style\": { \"subject\": { \"type\": \"functional yogurt smoothie bottle\", \"material\": \"frosted plastic\", \"color\": \"soft pastel lavender\", \"surface_details\": \"dense condensation droplets covering the entire bottle\", \"label_text_visible\": [ \"probiotic blend\", \"mock up\", \"high protein\", \"LOW FAT\", \"SEPARATED SHADOWS\" ] }, \"pose_and_orientation\": { \"position\": \"slightly tilted forward\", \"angle\": \"three-quarter view\", \"motion_feel\": \"energetic, mid-impact splash moment\" }, \"liquid_and_motion\": { \"liquid_color\": \"light purple yogurt smoothie\", \"texture\": \"thick, creamy, glossy\", \"motion\": \"smooth splash wrapping around the bottle with upward arcs\" }, \"floating_elements\": { \"berries\": \"blackberries and blueberries floating at varying depths\", \"lavender_petals\": \"soft purple petals suspended mid-air\", \"droplets\": \"yogurt droplets and micro splashes frozen in motion\" }, \"background\": { \"color_gradient\": \"deep violet fading into soft peach highlights\", \"bokeh\": \"subtle glowing circular light orbs\" }, \"surface_and_reflection\": { \"base\": \"matte surface with creamy liquid pooling\", \"shadow_style\": \"clean, separated soft shadow beneath bottle\" } }, \"module_2_image_2_style\": { \"subject\": { \"type\": \"sparkling electrolyte drink can\", \"material\": \"brushed aluminum\", \"color\": \"icy silver with neon cyan accents\", \"surface_details\": \"intense cold condensation with crystal-clear droplets\", \"branding_text_visible\": [ \"HYDRATE+\", \"Electrolyte Drink\", \"ZERO SUGAR\", \"NEW FORMULA\", \"WITH MINERALS\" ] }, \"pose_and_orientation\": { \"position\": \"upright and centered\", \"angle\": \"straight-on front view\", \"presence\": \"strong hero product stance\" }, \"liquid_and_motion\": { \"liquid_color\": \"clear carbonated liquid with bubbles\", \"motion\": \"explosive splash bursting outward from the base\", \"droplet_behavior\": \"sharp, glass-like droplets flying outward\" }, \"floating_elements\": { \"ice_cubes\": \"transparent ice cubes spinning in mid-air\", \"lime_slices\": \"fresh lime slices with visible pulp\", \"bubbles\": \"carbonation bubbles rising around the can\" }, \"background\": { \"color_palette\": \"cool blues, cyan highlights, metallic silver tones\", \"atmosphere\": \"fresh, high-energy, ultra-refreshing\" }, \"surface_and_reflection\": { \"base\": \"wet reflective surface with splash crown\", \"reflection_quality\": \"crisp reflections with controlled specular highlights\" } } } }"
)
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\\\": { \\\"global_settings\\\": { \\\"resolution\\\": \\\"8K ultra-high-definition\\\", \\\"aspect_ratio\\\": \\\"3:4 vertical\\\", \\\"style\\\": \\\"hyper-realistic AI-edited commercial product photography\\\", \\\"sharpness\\\": \\\"extreme clarity, micro-detail visibility\\\", \\\"lighting_quality\\\": \\\"cinematic studio lighting with controlled highlights and shadows\\\", \\\"motion_freeze\\\": \\\"high-speed capture, frozen splashes and particles\\\", \\\"noise\\\": \\\"none\\\", \\\"artifacts\\\": \\\"none\\\" }, \\\"module_1_image_1_style\\\": { \\\"subject\\\": { \\\"type\\\": \\\"functional yogurt smoothie bottle\\\", \\\"material\\\": \\\"frosted plastic\\\", \\\"color\\\": \\\"soft pastel lavender\\\", \\\"surface_details\\\": \\\"dense condensation droplets covering the entire bottle\\\", \\\"label_text_visible\\\": [ \\\"probiotic blend\\\", \\\"mock up\\\", \\\"high protein\\\", \\\"LOW FAT\\\", \\\"SEPARATED SHADOWS\\\" ] }, \\\"pose_and_orientation\\\": { \\\"position\\\": \\\"slightly tilted forward\\\", \\\"angle\\\": \\\"three-quarter view\\\", \\\"motion_feel\\\": \\\"energetic, mid-impact splash moment\\\" }, \\\"liquid_and_motion\\\": { \\\"liquid_color\\\": \\\"light purple yogurt smoothie\\\", \\\"texture\\\": \\\"thick, creamy, glossy\\\", \\\"motion\\\": \\\"smooth splash wrapping around the bottle with upward arcs\\\" }, \\\"floating_elements\\\": { \\\"berries\\\": \\\"blackberries and blueberries floating at varying depths\\\", \\\"lavender_petals\\\": \\\"soft purple petals suspended mid-air\\\", \\\"droplets\\\": \\\"yogurt droplets and micro splashes frozen in motion\\\" }, \\\"background\\\": { \\\"color_gradient\\\": \\\"deep violet fading into soft peach highlights\\\", \\\"bokeh\\\": \\\"subtle glowing circular light orbs\\\" }, \\\"surface_and_reflection\\\": { \\\"base\\\": \\\"matte surface with creamy liquid pooling\\\", \\\"shadow_style\\\": \\\"clean, separated soft shadow beneath bottle\\\" } }, \\\"module_2_image_2_style\\\": { \\\"subject\\\": { \\\"type\\\": \\\"sparkling electrolyte drink can\\\", \\\"material\\\": \\\"brushed aluminum\\\", \\\"color\\\": \\\"icy silver with neon cyan accents\\\", \\\"surface_details\\\": \\\"intense cold condensation with crystal-clear droplets\\\", \\\"branding_text_visible\\\": [ \\\"HYDRATE+\\\", \\\"Electrolyte Drink\\\", \\\"ZERO SUGAR\\\", \\\"NEW FORMULA\\\", \\\"WITH MINERALS\\\" ] }, \\\"pose_and_orientation\\\": { \\\"position\\\": \\\"upright and centered\\\", \\\"angle\\\": \\\"straight-on front view\\\", \\\"presence\\\": \\\"strong hero product stance\\\" }, \\\"liquid_and_motion\\\": { \\\"liquid_color\\\": \\\"clear carbonated liquid with bubbles\\\", \\\"motion\\\": \\\"explosive splash bursting outward from the base\\\", \\\"droplet_behavior\\\": \\\"sharp, glass-like droplets flying outward\\\" }, \\\"floating_elements\\\": { \\\"ice_cubes\\\": \\\"transparent ice cubes spinning in mid-air\\\", \\\"lime_slices\\\": \\\"fresh lime slices with visible pulp\\\", \\\"bubbles\\\": \\\"carbonation bubbles rising around the can\\\" }, \\\"background\\\": { \\\"color_palette\\\": \\\"cool blues, cyan highlights, metallic silver tones\\\", \\\"atmosphere\\\": \\\"fresh, high-energy, ultra-refreshing\\\" }, \\\"surface_and_reflection\\\": { \\\"base\\\": \\\"wet reflective surface with splash crown\\\", \\\"reflection_quality\\\": \\\"crisp reflections with controlled specular highlights\\\" } } } }\"}")
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)
}