复制
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "project": { "title": "Hyper-Visual Fried Chicken Action Series", "output_quality": "8K Ultra-HD", "aspect_ratio": "2:3", "style_intent": "High-end commercial food photography", "consistency_rule": "Each module shares structure but maintains unique visual dynamics" }, "global_camera_and_rendering": { "camera_perspective": "Close-up to extreme macro", "focus_behavior": "Crisp subject focus with controlled depth falloff", "shutter_effect": "High-speed freeze-frame", "texture_priority": "Ultra-detailed crispy breading and crumbs", "color_profile": "Warm golden browns, deep reds, high contrast", "lighting_quality": "Studio-grade directional lighting with rim highlights", "rendering_clarity": "No blur, no softness, no painterly effects" }, "negative_prompt": [ "motion blur", "plastic textures", "smooth or waxy food", "flat lighting", "low detail crumbs", "muddy colors", "overexposed highlights", "cartoon style", "unrealistic food physics", "oil fog", "text artifacts" ], "modules": { "module_1_image_1_style": { "scene_type": "Liquid impact action shot", "subject": "Single fried chicken drumstick", "positioning": "Centered, upright", "action": "Drumstick impacting or emerging from liquid splash", "liquid_properties": { "color": "Deep red-brown", "viscosity": "Thick, glossy", "behavior": "High splash crown with upward droplets" }, "particle_details": { "crumbs": "Small to medium golden crumbs suspended mid-air", "distribution": "Surrounding the subject evenly" }, "lighting": { "key_light": "Strong frontal light emphasizing texture", "rim_light": "Subtle edge highlights on liquid and crust" }, "background": "Dark, nearly black, softly blurred", "surface_reflections": "Glossy reflections visible in liquid surface", "mood": "Intense, dramatic, high-impact" }, "module_2_image_2_style": { "scene_type": "Mid-air food reveal", "subject": "Single fried chicken drumstick", "action": "Drumstick suspended above an open food box", "crumb_motion": "Crumbs falling downward from drumstick", "container": { "type": "Cardboard food box", "color": "White exterior with red interior accents", "state": "Open lid, visible interior" }, "lighting": { "style": "Soft studio light", "effect": "Even illumination with gentle highlights" }, "background": { "tone": "Bright, light neutral", "depth": "Shallow depth of field, softly blurred" }, "texture_visibility": "Highly defined crunchy coating", "mood": "Clean, fresh, appetizing, modern" }, "module_3_image_3_style": { "scene_type": "Explosive reveal action shot", "subject": "Single fried chicken drumstick", "action": "Drumstick bursting upward from food box", "explosion_elements": { "crumbs": "Large and small fragments radiating outward", "direction": "Radial burst from center" }, "lighting": { "backlight": "Strong radial backlight creating light rays", "contrast": "High contrast between subject and background" }, "container": { "type": "Cardboard food box", "color": "Red and white", "text_visibility": "Visible word 'CHICKEN' on front" }, "background": "Dark with bright light rays emanating behind subject", "surface": "Dark tabletop with scattered crumbs", "mood": "Energetic, bold, cinematic" }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "project": { "title": "Hyper-Visual Fried Chicken Action Series", "output_quality": "8K Ultra-HD", "aspect_ratio": "2:3", "style_intent": "High-end commercial food photography", "consistency_rule": "Each module shares structure but maintains unique visual dynamics" }, "global_camera_and_rendering": { "camera_perspective": "Close-up to extreme macro", "focus_behavior": "Crisp subject focus with controlled depth falloff", "shutter_effect": "High-speed freeze-frame", "texture_priority": "Ultra-detailed crispy breading and crumbs", "color_profile": "Warm golden browns, deep reds, high contrast", "lighting_quality": "Studio-grade directional lighting with rim highlights", "rendering_clarity": "No blur, no softness, no painterly effects" }, "negative_prompt": [ "motion blur", "plastic textures", "smooth or waxy food", "flat lighting", "low detail crumbs", "muddy colors", "overexposed highlights", "cartoon style", "unrealistic food physics", "oil fog", "text artifacts" ], "modules": { "module_1_image_1_style": { "scene_type": "Liquid impact action shot", "subject": "Single fried chicken drumstick", "positioning": "Centered, upright", "action": "Drumstick impacting or emerging from liquid splash", "liquid_properties": { "color": "Deep red-brown", "viscosity": "Thick, glossy", "behavior": "High splash crown with upward droplets" }, "particle_details": { "crumbs": "Small to medium golden crumbs suspended mid-air", "distribution": "Surrounding the subject evenly" }, "lighting": { "key_light": "Strong frontal light emphasizing texture", "rim_light": "Subtle edge highlights on liquid and crust" }, "background": "Dark, nearly black, softly blurred", "surface_reflections": "Glossy reflections visible in liquid surface", "mood": "Intense, dramatic, high-impact" }, "module_2_image_2_style": { "scene_type": "Mid-air food reveal", "subject": "Single fried chicken drumstick", "action": "Drumstick suspended above an open food box", "crumb_motion": "Crumbs falling downward from drumstick", "container": { "type": "Cardboard food box", "color": "White exterior with red interior accents", "state": "Open lid, visible interior" }, "lighting": { "style": "Soft studio light", "effect": "Even illumination with gentle highlights" }, "background": { "tone": "Bright, light neutral", "depth": "Shallow depth of field, softly blurred" }, "texture_visibility": "Highly defined crunchy coating", "mood": "Clean, fresh, appetizing, modern" }, "module_3_image_3_style": { "scene_type": "Explosive reveal action shot", "subject": "Single fried chicken drumstick", "action": "Drumstick bursting upward from food box", "explosion_elements": { "crumbs": "Large and small fragments radiating outward", "direction": "Radial burst from center" }, "lighting": { "backlight": "Strong radial backlight creating light rays", "contrast": "High contrast between subject and background" }, "container": { "type": "Cardboard food box", "color": "Red and white", "text_visibility": "Visible word 'CHICKEN' on front" }, "background": "Dark with bright light rays emanating behind subject", "surface": "Dark tabletop with scattered crumbs", "mood": "Energetic, bold, cinematic" }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "project": { "title": "Hyper-Visual Fried Chicken Action Series", "output_quality": "8K Ultra-HD", "aspect_ratio": "2:3", "style_intent": "High-end commercial food photography", "consistency_rule": "Each module shares structure but maintains unique visual dynamics" }, "global_camera_and_rendering": { "camera_perspective": "Close-up to extreme macro", "focus_behavior": "Crisp subject focus with controlled depth falloff", "shutter_effect": "High-speed freeze-frame", "texture_priority": "Ultra-detailed crispy breading and crumbs", "color_profile": "Warm golden browns, deep reds, high contrast", "lighting_quality": "Studio-grade directional lighting with rim highlights", "rendering_clarity": "No blur, no softness, no painterly effects" }, "negative_prompt": [ "motion blur", "plastic textures", "smooth or waxy food", "flat lighting", "low detail crumbs", "muddy colors", "overexposed highlights", "cartoon style", "unrealistic food physics", "oil fog", "text artifacts" ], "modules": { "module_1_image_1_style": { "scene_type": "Liquid impact action shot", "subject": "Single fried chicken drumstick", "positioning": "Centered, upright", "action": "Drumstick impacting or emerging from liquid splash", "liquid_properties": { "color": "Deep red-brown", "viscosity": "Thick, glossy", "behavior": "High splash crown with upward droplets" }, "particle_details": { "crumbs": "Small to medium golden crumbs suspended mid-air", "distribution": "Surrounding the subject evenly" }, "lighting": { "key_light": "Strong frontal light emphasizing texture", "rim_light": "Subtle edge highlights on liquid and crust" }, "background": "Dark, nearly black, softly blurred", "surface_reflections": "Glossy reflections visible in liquid surface", "mood": "Intense, dramatic, high-impact" }, "module_2_image_2_style": { "scene_type": "Mid-air food reveal", "subject": "Single fried chicken drumstick", "action": "Drumstick suspended above an open food box", "crumb_motion": "Crumbs falling downward from drumstick", "container": { "type": "Cardboard food box", "color": "White exterior with red interior accents", "state": "Open lid, visible interior" }, "lighting": { "style": "Soft studio light", "effect": "Even illumination with gentle highlights" }, "background": { "tone": "Bright, light neutral", "depth": "Shallow depth of field, softly blurred" }, "texture_visibility": "Highly defined crunchy coating", "mood": "Clean, fresh, appetizing, modern" }, "module_3_image_3_style": { "scene_type": "Explosive reveal action shot", "subject": "Single fried chicken drumstick", "action": "Drumstick bursting upward from food box", "explosion_elements": { "crumbs": "Large and small fragments radiating outward", "direction": "Radial burst from center" }, "lighting": { "backlight": "Strong radial backlight creating light rays", "contrast": "High contrast between subject and background" }, "container": { "type": "Cardboard food box", "color": "Red and white", "text_visibility": "Visible word 'CHICKEN' on front" }, "background": "Dark with bright light rays emanating behind subject", "surface": "Dark tabletop with scattered crumbs", "mood": "Energetic, bold, cinematic" }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "project": { "title": "Hyper-Visual Fried Chicken Action Series", "output_quality": "8K Ultra-HD", "aspect_ratio": "2:3", "style_intent": "High-end commercial food photography", "consistency_rule": "Each module shares structure but maintains unique visual dynamics" }, "global_camera_and_rendering": { "camera_perspective": "Close-up to extreme macro", "focus_behavior": "Crisp subject focus with controlled depth falloff", "shutter_effect": "High-speed freeze-frame", "texture_priority": "Ultra-detailed crispy breading and crumbs", "color_profile": "Warm golden browns, deep reds, high contrast", "lighting_quality": "Studio-grade directional lighting with rim highlights", "rendering_clarity": "No blur, no softness, no painterly effects" }, "negative_prompt": [ "motion blur", "plastic textures", "smooth or waxy food", "flat lighting", "low detail crumbs", "muddy colors", "overexposed highlights", "cartoon style", "unrealistic food physics", "oil fog", "text artifacts" ], "modules": { "module_1_image_1_style": { "scene_type": "Liquid impact action shot", "subject": "Single fried chicken drumstick", "positioning": "Centered, upright", "action": "Drumstick impacting or emerging from liquid splash", "liquid_properties": { "color": "Deep red-brown", "viscosity": "Thick, glossy", "behavior": "High splash crown with upward droplets" }, "particle_details": { "crumbs": "Small to medium golden crumbs suspended mid-air", "distribution": "Surrounding the subject evenly" }, "lighting": { "key_light": "Strong frontal light emphasizing texture", "rim_light": "Subtle edge highlights on liquid and crust" }, "background": "Dark, nearly black, softly blurred", "surface_reflections": "Glossy reflections visible in liquid surface", "mood": "Intense, dramatic, high-impact" }, "module_2_image_2_style": { "scene_type": "Mid-air food reveal", "subject": "Single fried chicken drumstick", "action": "Drumstick suspended above an open food box", "crumb_motion": "Crumbs falling downward from drumstick", "container": { "type": "Cardboard food box", "color": "White exterior with red interior accents", "state": "Open lid, visible interior" }, "lighting": { "style": "Soft studio light", "effect": "Even illumination with gentle highlights" }, "background": { "tone": "Bright, light neutral", "depth": "Shallow depth of field, softly blurred" }, "texture_visibility": "Highly defined crunchy coating", "mood": "Clean, fresh, appetizing, modern" }, "module_3_image_3_style": { "scene_type": "Explosive reveal action shot", "subject": "Single fried chicken drumstick", "action": "Drumstick bursting upward from food box", "explosion_elements": { "crumbs": "Large and small fragments radiating outward", "direction": "Radial burst from center" }, "lighting": { "backlight": "Strong radial backlight creating light rays", "contrast": "High contrast between subject and background" }, "container": { "type": "Cardboard food box", "color": "Red and white", "text_visibility": "Visible word 'CHICKEN' on front" }, "background": "Dark with bright light rays emanating behind subject", "surface": "Dark tabletop with scattered crumbs", "mood": "Energetic, bold, cinematic" }"
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": "{ \"project\": { \"title\": \"Hyper-Visual Fried Chicken Action Series\", \"output_quality\": \"8K Ultra-HD\", \"aspect_ratio\": \"2:3\", \"style_intent\": \"High-end commercial food photography\", \"consistency_rule\": \"Each module shares structure but maintains unique visual dynamics\" }, \"global_camera_and_rendering\": { \"camera_perspective\": \"Close-up to extreme macro\", \"focus_behavior\": \"Crisp subject focus with controlled depth falloff\", \"shutter_effect\": \"High-speed freeze-frame\", \"texture_priority\": \"Ultra-detailed crispy breading and crumbs\", \"color_profile\": \"Warm golden browns, deep reds, high contrast\", \"lighting_quality\": \"Studio-grade directional lighting with rim highlights\", \"rendering_clarity\": \"No blur, no softness, no painterly effects\" }, \"negative_prompt\": [ \"motion blur\", \"plastic textures\", \"smooth or waxy food\", \"flat lighting\", \"low detail crumbs\", \"muddy colors\", \"overexposed highlights\", \"cartoon style\", \"unrealistic food physics\", \"oil fog\", \"text artifacts\" ], \"modules\": { \"module_1_image_1_style\": { \"scene_type\": \"Liquid impact action shot\", \"subject\": \"Single fried chicken drumstick\", \"positioning\": \"Centered, upright\", \"action\": \"Drumstick impacting or emerging from liquid splash\", \"liquid_properties\": { \"color\": \"Deep red-brown\", \"viscosity\": \"Thick, glossy\", \"behavior\": \"High splash crown with upward droplets\" }, \"particle_details\": { \"crumbs\": \"Small to medium golden crumbs suspended mid-air\", \"distribution\": \"Surrounding the subject evenly\" }, \"lighting\": { \"key_light\": \"Strong frontal light emphasizing texture\", \"rim_light\": \"Subtle edge highlights on liquid and crust\" }, \"background\": \"Dark, nearly black, softly blurred\", \"surface_reflections\": \"Glossy reflections visible in liquid surface\", \"mood\": \"Intense, dramatic, high-impact\" }, \"module_2_image_2_style\": { \"scene_type\": \"Mid-air food reveal\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick suspended above an open food box\", \"crumb_motion\": \"Crumbs falling downward from drumstick\", \"container\": { \"type\": \"Cardboard food box\", \"color\": \"White exterior with red interior accents\", \"state\": \"Open lid, visible interior\" }, \"lighting\": { \"style\": \"Soft studio light\", \"effect\": \"Even illumination with gentle highlights\" }, \"background\": { \"tone\": \"Bright, light neutral\", \"depth\": \"Shallow depth of field, softly blurred\" }, \"texture_visibility\": \"Highly defined crunchy coating\", \"mood\": \"Clean, fresh, appetizing, modern\" }, \"module_3_image_3_style\": { \"scene_type\": \"Explosive reveal action shot\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick bursting upward from food box\", \"explosion_elements\": { \"crumbs\": \"Large and small fragments radiating outward\", \"direction\": \"Radial burst from center\" }, \"lighting\": { \"backlight\": \"Strong radial backlight creating light rays\", \"contrast\": \"High contrast between subject and background\" }, \"container\": { \"type\": \"Cardboard food box\", \"color\": \"Red and white\", \"text_visibility\": \"Visible word 'CHICKEN' on front\" }, \"background\": \"Dark with bright light rays emanating behind subject\", \"surface\": \"Dark tabletop with scattered crumbs\", \"mood\": \"Energetic, bold, cinematic\" }"
}
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": "{ \"project\": { \"title\": \"Hyper-Visual Fried Chicken Action Series\", \"output_quality\": \"8K Ultra-HD\", \"aspect_ratio\": \"2:3\", \"style_intent\": \"High-end commercial food photography\", \"consistency_rule\": \"Each module shares structure but maintains unique visual dynamics\" }, \"global_camera_and_rendering\": { \"camera_perspective\": \"Close-up to extreme macro\", \"focus_behavior\": \"Crisp subject focus with controlled depth falloff\", \"shutter_effect\": \"High-speed freeze-frame\", \"texture_priority\": \"Ultra-detailed crispy breading and crumbs\", \"color_profile\": \"Warm golden browns, deep reds, high contrast\", \"lighting_quality\": \"Studio-grade directional lighting with rim highlights\", \"rendering_clarity\": \"No blur, no softness, no painterly effects\" }, \"negative_prompt\": [ \"motion blur\", \"plastic textures\", \"smooth or waxy food\", \"flat lighting\", \"low detail crumbs\", \"muddy colors\", \"overexposed highlights\", \"cartoon style\", \"unrealistic food physics\", \"oil fog\", \"text artifacts\" ], \"modules\": { \"module_1_image_1_style\": { \"scene_type\": \"Liquid impact action shot\", \"subject\": \"Single fried chicken drumstick\", \"positioning\": \"Centered, upright\", \"action\": \"Drumstick impacting or emerging from liquid splash\", \"liquid_properties\": { \"color\": \"Deep red-brown\", \"viscosity\": \"Thick, glossy\", \"behavior\": \"High splash crown with upward droplets\" }, \"particle_details\": { \"crumbs\": \"Small to medium golden crumbs suspended mid-air\", \"distribution\": \"Surrounding the subject evenly\" }, \"lighting\": { \"key_light\": \"Strong frontal light emphasizing texture\", \"rim_light\": \"Subtle edge highlights on liquid and crust\" }, \"background\": \"Dark, nearly black, softly blurred\", \"surface_reflections\": \"Glossy reflections visible in liquid surface\", \"mood\": \"Intense, dramatic, high-impact\" }, \"module_2_image_2_style\": { \"scene_type\": \"Mid-air food reveal\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick suspended above an open food box\", \"crumb_motion\": \"Crumbs falling downward from drumstick\", \"container\": { \"type\": \"Cardboard food box\", \"color\": \"White exterior with red interior accents\", \"state\": \"Open lid, visible interior\" }, \"lighting\": { \"style\": \"Soft studio light\", \"effect\": \"Even illumination with gentle highlights\" }, \"background\": { \"tone\": \"Bright, light neutral\", \"depth\": \"Shallow depth of field, softly blurred\" }, \"texture_visibility\": \"Highly defined crunchy coating\", \"mood\": \"Clean, fresh, appetizing, modern\" }, \"module_3_image_3_style\": { \"scene_type\": \"Explosive reveal action shot\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick bursting upward from food box\", \"explosion_elements\": { \"crumbs\": \"Large and small fragments radiating outward\", \"direction\": \"Radial burst from center\" }, \"lighting\": { \"backlight\": \"Strong radial backlight creating light rays\", \"contrast\": \"High contrast between subject and background\" }, \"container\": { \"type\": \"Cardboard food box\", \"color\": \"Red and white\", \"text_visibility\": \"Visible word 'CHICKEN' on front\" }, \"background\": \"Dark with bright light rays emanating behind subject\", \"surface\": \"Dark tabletop with scattered crumbs\", \"mood\": \"Energetic, bold, cinematic\" }"
});
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: "{ \"project\": { \"title\": \"Hyper-Visual Fried Chicken Action Series\", \"output_quality\": \"8K Ultra-HD\", \"aspect_ratio\": \"2:3\", \"style_intent\": \"High-end commercial food photography\", \"consistency_rule\": \"Each module shares structure but maintains unique visual dynamics\" }, \"global_camera_and_rendering\": { \"camera_perspective\": \"Close-up to extreme macro\", \"focus_behavior\": \"Crisp subject focus with controlled depth falloff\", \"shutter_effect\": \"High-speed freeze-frame\", \"texture_priority\": \"Ultra-detailed crispy breading and crumbs\", \"color_profile\": \"Warm golden browns, deep reds, high contrast\", \"lighting_quality\": \"Studio-grade directional lighting with rim highlights\", \"rendering_clarity\": \"No blur, no softness, no painterly effects\" }, \"negative_prompt\": [ \"motion blur\", \"plastic textures\", \"smooth or waxy food\", \"flat lighting\", \"low detail crumbs\", \"muddy colors\", \"overexposed highlights\", \"cartoon style\", \"unrealistic food physics\", \"oil fog\", \"text artifacts\" ], \"modules\": { \"module_1_image_1_style\": { \"scene_type\": \"Liquid impact action shot\", \"subject\": \"Single fried chicken drumstick\", \"positioning\": \"Centered, upright\", \"action\": \"Drumstick impacting or emerging from liquid splash\", \"liquid_properties\": { \"color\": \"Deep red-brown\", \"viscosity\": \"Thick, glossy\", \"behavior\": \"High splash crown with upward droplets\" }, \"particle_details\": { \"crumbs\": \"Small to medium golden crumbs suspended mid-air\", \"distribution\": \"Surrounding the subject evenly\" }, \"lighting\": { \"key_light\": \"Strong frontal light emphasizing texture\", \"rim_light\": \"Subtle edge highlights on liquid and crust\" }, \"background\": \"Dark, nearly black, softly blurred\", \"surface_reflections\": \"Glossy reflections visible in liquid surface\", \"mood\": \"Intense, dramatic, high-impact\" }, \"module_2_image_2_style\": { \"scene_type\": \"Mid-air food reveal\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick suspended above an open food box\", \"crumb_motion\": \"Crumbs falling downward from drumstick\", \"container\": { \"type\": \"Cardboard food box\", \"color\": \"White exterior with red interior accents\", \"state\": \"Open lid, visible interior\" }, \"lighting\": { \"style\": \"Soft studio light\", \"effect\": \"Even illumination with gentle highlights\" }, \"background\": { \"tone\": \"Bright, light neutral\", \"depth\": \"Shallow depth of field, softly blurred\" }, \"texture_visibility\": \"Highly defined crunchy coating\", \"mood\": \"Clean, fresh, appetizing, modern\" }, \"module_3_image_3_style\": { \"scene_type\": \"Explosive reveal action shot\", \"subject\": \"Single fried chicken drumstick\", \"action\": \"Drumstick bursting upward from food box\", \"explosion_elements\": { \"crumbs\": \"Large and small fragments radiating outward\", \"direction\": \"Radial burst from center\" }, \"lighting\": { \"backlight\": \"Strong radial backlight creating light rays\", \"contrast\": \"High contrast between subject and background\" }, \"container\": { \"type\": \"Cardboard food box\", \"color\": \"Red and white\", \"text_visibility\": \"Visible word 'CHICKEN' on front\" }, \"background\": \"Dark with bright light rays emanating behind subject\", \"surface\": \"Dark tabletop with scattered crumbs\", \"mood\": \"Energetic, bold, cinematic\" }"
)
puts result.id
复制
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"{ \\\"project\\\": { \\\"title\\\": \\\"Hyper-Visual Fried Chicken Action Series\\\", \\\"output_quality\\\": \\\"8K Ultra-HD\\\", \\\"aspect_ratio\\\": \\\"2:3\\\", \\\"style_intent\\\": \\\"High-end commercial food photography\\\", \\\"consistency_rule\\\": \\\"Each module shares structure but maintains unique visual dynamics\\\" }, \\\"global_camera_and_rendering\\\": { \\\"camera_perspective\\\": \\\"Close-up to extreme macro\\\", \\\"focus_behavior\\\": \\\"Crisp subject focus with controlled depth falloff\\\", \\\"shutter_effect\\\": \\\"High-speed freeze-frame\\\", \\\"texture_priority\\\": \\\"Ultra-detailed crispy breading and crumbs\\\", \\\"color_profile\\\": \\\"Warm golden browns, deep reds, high contrast\\\", \\\"lighting_quality\\\": \\\"Studio-grade directional lighting with rim highlights\\\", \\\"rendering_clarity\\\": \\\"No blur, no softness, no painterly effects\\\" }, \\\"negative_prompt\\\": [ \\\"motion blur\\\", \\\"plastic textures\\\", \\\"smooth or waxy food\\\", \\\"flat lighting\\\", \\\"low detail crumbs\\\", \\\"muddy colors\\\", \\\"overexposed highlights\\\", \\\"cartoon style\\\", \\\"unrealistic food physics\\\", \\\"oil fog\\\", \\\"text artifacts\\\" ], \\\"modules\\\": { \\\"module_1_image_1_style\\\": { \\\"scene_type\\\": \\\"Liquid impact action shot\\\", \\\"subject\\\": \\\"Single fried chicken drumstick\\\", \\\"positioning\\\": \\\"Centered, upright\\\", \\\"action\\\": \\\"Drumstick impacting or emerging from liquid splash\\\", \\\"liquid_properties\\\": { \\\"color\\\": \\\"Deep red-brown\\\", \\\"viscosity\\\": \\\"Thick, glossy\\\", \\\"behavior\\\": \\\"High splash crown with upward droplets\\\" }, \\\"particle_details\\\": { \\\"crumbs\\\": \\\"Small to medium golden crumbs suspended mid-air\\\", \\\"distribution\\\": \\\"Surrounding the subject evenly\\\" }, \\\"lighting\\\": { \\\"key_light\\\": \\\"Strong frontal light emphasizing texture\\\", \\\"rim_light\\\": \\\"Subtle edge highlights on liquid and crust\\\" }, \\\"background\\\": \\\"Dark, nearly black, softly blurred\\\", \\\"surface_reflections\\\": \\\"Glossy reflections visible in liquid surface\\\", \\\"mood\\\": \\\"Intense, dramatic, high-impact\\\" }, \\\"module_2_image_2_style\\\": { \\\"scene_type\\\": \\\"Mid-air food reveal\\\", \\\"subject\\\": \\\"Single fried chicken drumstick\\\", \\\"action\\\": \\\"Drumstick suspended above an open food box\\\", \\\"crumb_motion\\\": \\\"Crumbs falling downward from drumstick\\\", \\\"container\\\": { \\\"type\\\": \\\"Cardboard food box\\\", \\\"color\\\": \\\"White exterior with red interior accents\\\", \\\"state\\\": \\\"Open lid, visible interior\\\" }, \\\"lighting\\\": { \\\"style\\\": \\\"Soft studio light\\\", \\\"effect\\\": \\\"Even illumination with gentle highlights\\\" }, \\\"background\\\": { \\\"tone\\\": \\\"Bright, light neutral\\\", \\\"depth\\\": \\\"Shallow depth of field, softly blurred\\\" }, \\\"texture_visibility\\\": \\\"Highly defined crunchy coating\\\", \\\"mood\\\": \\\"Clean, fresh, appetizing, modern\\\" }, \\\"module_3_image_3_style\\\": { \\\"scene_type\\\": \\\"Explosive reveal action shot\\\", \\\"subject\\\": \\\"Single fried chicken drumstick\\\", \\\"action\\\": \\\"Drumstick bursting upward from food box\\\", \\\"explosion_elements\\\": { \\\"crumbs\\\": \\\"Large and small fragments radiating outward\\\", \\\"direction\\\": \\\"Radial burst from center\\\" }, \\\"lighting\\\": { \\\"backlight\\\": \\\"Strong radial backlight creating light rays\\\", \\\"contrast\\\": \\\"High contrast between subject and background\\\" }, \\\"container\\\": { \\\"type\\\": \\\"Cardboard food box\\\", \\\"color\\\": \\\"Red and white\\\", \\\"text_visibility\\\": \\\"Visible word 'CHICKEN' on front\\\" }, \\\"background\\\": \\\"Dark with bright light rays emanating behind subject\\\", \\\"surface\\\": \\\"Dark tabletop with scattered crumbs\\\", \\\"mood\\\": \\\"Energetic, bold, cinematic\\\" }\"}")
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)
}