复制
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "image_type": "studio portrait", "composition": { "framing": "tight head-and-shoulders close-up", "camera_angle": "eye-level", "orientation": "vertical", "symmetry": "near-perfect central symmetry", "focus": "sharp focus on eyes and facial features", "depth_of_field": "shallow, background fully blurred to black" }, "subject": { "description": "middle-aged male-presenting subject", "pose": "frontal, facing camera directly", "expression": "calm, confident, intense gaze", "eye_direction": "looking straight into lens", "facial_features": { "facial_hair": "short salt-and-pepper stubble and trimmed goatee", "skin_texture": "visible pores and fine lines, realistic skin detail", "eyes": "light-colored eyes emphasized by catchlights" }, "hair": { "style": "medium-length, brushed back", "texture": "natural, slightly tousled", "color": "dark brown with subtle gray highlights" } }, "wardrobe": { "top": "white crew-neck t-shirt", "outerwear": "dark jacket or coat with soft texture", "accessories": "thin chain necklace partially visible" }, "lighting": { "style": "cinematic, high-contrast neon lighting", "key_light": { "position": "front-left", "color": "cool cyan/blue", "effect": "dominant illumination across face and torso" }, "rim_light": { "position": "rear-right", "color": "saturated red/magenta", "effect": "strong edge highlight on hair and face contour" }, "fill_light": "minimal to none", "contrast_level": "high", "mood": "dramatic, futuristic, intense" }, "color_palette": { "dominant_colors": ["cyan blue", "deep red", "black"], "color_temperature": "mixed cool and warm neon tones", "saturation": "high saturation on lighting, neutral clothing tones", "color_grading": "stylized cyberpunk-inspired grading" }, "background": { "environment": "studio", "details": "pure black background with no visible texture or objects", "separation": "strong subject-background separation via rim lighting" }, "technical_details": { "camera_style": "professional studio photography", "lens_effect": "slight compression typical of portrait lens", "estimated_focal_length": "85mm equivalent", "image_sharpness": "high", "noise": "minimal", "dynamic_range": "controlled highlights with deep shadows" }, "artistic_style": { "genre": "cinematic portrait", "influences": ["cyberpunk", "neo-noir", "editorial fashion"], "visual_aesthetic": "bold, modern, high-impact", "post_processing": { "skin_retouching": "subtle, realistic", "color_enhancement": "strong split-toning blue/red", "clarity": "enhanced micro-contrast" } }, "overall_impression": { "tone": "powerful and enigmatic", "intended_use": "editorial, album cover, cinematic poster, AI style reference", "style_recreation_keywords": [ "cinematic neon portrait", "blue and red split lighting", "black background", "intense direct gaze", "cyberpunk color grading", "high-contrast studio lighting" ] } }"
复制
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "image_type": "studio portrait", "composition": { "framing": "tight head-and-shoulders close-up", "camera_angle": "eye-level", "orientation": "vertical", "symmetry": "near-perfect central symmetry", "focus": "sharp focus on eyes and facial features", "depth_of_field": "shallow, background fully blurred to black" }, "subject": { "description": "middle-aged male-presenting subject", "pose": "frontal, facing camera directly", "expression": "calm, confident, intense gaze", "eye_direction": "looking straight into lens", "facial_features": { "facial_hair": "short salt-and-pepper stubble and trimmed goatee", "skin_texture": "visible pores and fine lines, realistic skin detail", "eyes": "light-colored eyes emphasized by catchlights" }, "hair": { "style": "medium-length, brushed back", "texture": "natural, slightly tousled", "color": "dark brown with subtle gray highlights" } }, "wardrobe": { "top": "white crew-neck t-shirt", "outerwear": "dark jacket or coat with soft texture", "accessories": "thin chain necklace partially visible" }, "lighting": { "style": "cinematic, high-contrast neon lighting", "key_light": { "position": "front-left", "color": "cool cyan/blue", "effect": "dominant illumination across face and torso" }, "rim_light": { "position": "rear-right", "color": "saturated red/magenta", "effect": "strong edge highlight on hair and face contour" }, "fill_light": "minimal to none", "contrast_level": "high", "mood": "dramatic, futuristic, intense" }, "color_palette": { "dominant_colors": ["cyan blue", "deep red", "black"], "color_temperature": "mixed cool and warm neon tones", "saturation": "high saturation on lighting, neutral clothing tones", "color_grading": "stylized cyberpunk-inspired grading" }, "background": { "environment": "studio", "details": "pure black background with no visible texture or objects", "separation": "strong subject-background separation via rim lighting" }, "technical_details": { "camera_style": "professional studio photography", "lens_effect": "slight compression typical of portrait lens", "estimated_focal_length": "85mm equivalent", "image_sharpness": "high", "noise": "minimal", "dynamic_range": "controlled highlights with deep shadows" }, "artistic_style": { "genre": "cinematic portrait", "influences": ["cyberpunk", "neo-noir", "editorial fashion"], "visual_aesthetic": "bold, modern, high-impact", "post_processing": { "skin_retouching": "subtle, realistic", "color_enhancement": "strong split-toning blue/red", "clarity": "enhanced micro-contrast" } }, "overall_impression": { "tone": "powerful and enigmatic", "intended_use": "editorial, album cover, cinematic poster, AI style reference", "style_recreation_keywords": [ "cinematic neon portrait", "blue and red split lighting", "black background", "intense direct gaze", "cyberpunk color grading", "high-contrast studio lighting" ] } }"
复制
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "image_type": "studio portrait", "composition": { "framing": "tight head-and-shoulders close-up", "camera_angle": "eye-level", "orientation": "vertical", "symmetry": "near-perfect central symmetry", "focus": "sharp focus on eyes and facial features", "depth_of_field": "shallow, background fully blurred to black" }, "subject": { "description": "middle-aged male-presenting subject", "pose": "frontal, facing camera directly", "expression": "calm, confident, intense gaze", "eye_direction": "looking straight into lens", "facial_features": { "facial_hair": "short salt-and-pepper stubble and trimmed goatee", "skin_texture": "visible pores and fine lines, realistic skin detail", "eyes": "light-colored eyes emphasized by catchlights" }, "hair": { "style": "medium-length, brushed back", "texture": "natural, slightly tousled", "color": "dark brown with subtle gray highlights" } }, "wardrobe": { "top": "white crew-neck t-shirt", "outerwear": "dark jacket or coat with soft texture", "accessories": "thin chain necklace partially visible" }, "lighting": { "style": "cinematic, high-contrast neon lighting", "key_light": { "position": "front-left", "color": "cool cyan/blue", "effect": "dominant illumination across face and torso" }, "rim_light": { "position": "rear-right", "color": "saturated red/magenta", "effect": "strong edge highlight on hair and face contour" }, "fill_light": "minimal to none", "contrast_level": "high", "mood": "dramatic, futuristic, intense" }, "color_palette": { "dominant_colors": ["cyan blue", "deep red", "black"], "color_temperature": "mixed cool and warm neon tones", "saturation": "high saturation on lighting, neutral clothing tones", "color_grading": "stylized cyberpunk-inspired grading" }, "background": { "environment": "studio", "details": "pure black background with no visible texture or objects", "separation": "strong subject-background separation via rim lighting" }, "technical_details": { "camera_style": "professional studio photography", "lens_effect": "slight compression typical of portrait lens", "estimated_focal_length": "85mm equivalent", "image_sharpness": "high", "noise": "minimal", "dynamic_range": "controlled highlights with deep shadows" }, "artistic_style": { "genre": "cinematic portrait", "influences": ["cyberpunk", "neo-noir", "editorial fashion"], "visual_aesthetic": "bold, modern, high-impact", "post_processing": { "skin_retouching": "subtle, realistic", "color_enhancement": "strong split-toning blue/red", "clarity": "enhanced micro-contrast" } }, "overall_impression": { "tone": "powerful and enigmatic", "intended_use": "editorial, album cover, cinematic poster, AI style reference", "style_recreation_keywords": [ "cinematic neon portrait", "blue and red split lighting", "black background", "intense direct gaze", "cyberpunk color grading", "high-contrast studio lighting" ] } }"
复制
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "image_type": "studio portrait", "composition": { "framing": "tight head-and-shoulders close-up", "camera_angle": "eye-level", "orientation": "vertical", "symmetry": "near-perfect central symmetry", "focus": "sharp focus on eyes and facial features", "depth_of_field": "shallow, background fully blurred to black" }, "subject": { "description": "middle-aged male-presenting subject", "pose": "frontal, facing camera directly", "expression": "calm, confident, intense gaze", "eye_direction": "looking straight into lens", "facial_features": { "facial_hair": "short salt-and-pepper stubble and trimmed goatee", "skin_texture": "visible pores and fine lines, realistic skin detail", "eyes": "light-colored eyes emphasized by catchlights" }, "hair": { "style": "medium-length, brushed back", "texture": "natural, slightly tousled", "color": "dark brown with subtle gray highlights" } }, "wardrobe": { "top": "white crew-neck t-shirt", "outerwear": "dark jacket or coat with soft texture", "accessories": "thin chain necklace partially visible" }, "lighting": { "style": "cinematic, high-contrast neon lighting", "key_light": { "position": "front-left", "color": "cool cyan/blue", "effect": "dominant illumination across face and torso" }, "rim_light": { "position": "rear-right", "color": "saturated red/magenta", "effect": "strong edge highlight on hair and face contour" }, "fill_light": "minimal to none", "contrast_level": "high", "mood": "dramatic, futuristic, intense" }, "color_palette": { "dominant_colors": ["cyan blue", "deep red", "black"], "color_temperature": "mixed cool and warm neon tones", "saturation": "high saturation on lighting, neutral clothing tones", "color_grading": "stylized cyberpunk-inspired grading" }, "background": { "environment": "studio", "details": "pure black background with no visible texture or objects", "separation": "strong subject-background separation via rim lighting" }, "technical_details": { "camera_style": "professional studio photography", "lens_effect": "slight compression typical of portrait lens", "estimated_focal_length": "85mm equivalent", "image_sharpness": "high", "noise": "minimal", "dynamic_range": "controlled highlights with deep shadows" }, "artistic_style": { "genre": "cinematic portrait", "influences": ["cyberpunk", "neo-noir", "editorial fashion"], "visual_aesthetic": "bold, modern, high-impact", "post_processing": { "skin_retouching": "subtle, realistic", "color_enhancement": "strong split-toning blue/red", "clarity": "enhanced micro-contrast" } }, "overall_impression": { "tone": "powerful and enigmatic", "intended_use": "editorial, album cover, cinematic poster, AI style reference", "style_recreation_keywords": [ "cinematic neon portrait", "blue and red split lighting", "black background", "intense direct gaze", "cyberpunk color grading", "high-contrast studio lighting" ] } }"
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": "{ \"image_type\": \"studio portrait\", \"composition\": { \"framing\": \"tight head-and-shoulders close-up\", \"camera_angle\": \"eye-level\", \"orientation\": \"vertical\", \"symmetry\": \"near-perfect central symmetry\", \"focus\": \"sharp focus on eyes and facial features\", \"depth_of_field\": \"shallow, background fully blurred to black\" }, \"subject\": { \"description\": \"middle-aged male-presenting subject\", \"pose\": \"frontal, facing camera directly\", \"expression\": \"calm, confident, intense gaze\", \"eye_direction\": \"looking straight into lens\", \"facial_features\": { \"facial_hair\": \"short salt-and-pepper stubble and trimmed goatee\", \"skin_texture\": \"visible pores and fine lines, realistic skin detail\", \"eyes\": \"light-colored eyes emphasized by catchlights\" }, \"hair\": { \"style\": \"medium-length, brushed back\", \"texture\": \"natural, slightly tousled\", \"color\": \"dark brown with subtle gray highlights\" } }, \"wardrobe\": { \"top\": \"white crew-neck t-shirt\", \"outerwear\": \"dark jacket or coat with soft texture\", \"accessories\": \"thin chain necklace partially visible\" }, \"lighting\": { \"style\": \"cinematic, high-contrast neon lighting\", \"key_light\": { \"position\": \"front-left\", \"color\": \"cool cyan/blue\", \"effect\": \"dominant illumination across face and torso\" }, \"rim_light\": { \"position\": \"rear-right\", \"color\": \"saturated red/magenta\", \"effect\": \"strong edge highlight on hair and face contour\" }, \"fill_light\": \"minimal to none\", \"contrast_level\": \"high\", \"mood\": \"dramatic, futuristic, intense\" }, \"color_palette\": { \"dominant_colors\": [\"cyan blue\", \"deep red\", \"black\"], \"color_temperature\": \"mixed cool and warm neon tones\", \"saturation\": \"high saturation on lighting, neutral clothing tones\", \"color_grading\": \"stylized cyberpunk-inspired grading\" }, \"background\": { \"environment\": \"studio\", \"details\": \"pure black background with no visible texture or objects\", \"separation\": \"strong subject-background separation via rim lighting\" }, \"technical_details\": { \"camera_style\": \"professional studio photography\", \"lens_effect\": \"slight compression typical of portrait lens\", \"estimated_focal_length\": \"85mm equivalent\", \"image_sharpness\": \"high\", \"noise\": \"minimal\", \"dynamic_range\": \"controlled highlights with deep shadows\" }, \"artistic_style\": { \"genre\": \"cinematic portrait\", \"influences\": [\"cyberpunk\", \"neo-noir\", \"editorial fashion\"], \"visual_aesthetic\": \"bold, modern, high-impact\", \"post_processing\": { \"skin_retouching\": \"subtle, realistic\", \"color_enhancement\": \"strong split-toning blue/red\", \"clarity\": \"enhanced micro-contrast\" } }, \"overall_impression\": { \"tone\": \"powerful and enigmatic\", \"intended_use\": \"editorial, album cover, cinematic poster, AI style reference\", \"style_recreation_keywords\": [ \"cinematic neon portrait\", \"blue and red split lighting\", \"black background\", \"intense direct gaze\", \"cyberpunk color grading\", \"high-contrast studio lighting\" ] } }"
}
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": "{ \"image_type\": \"studio portrait\", \"composition\": { \"framing\": \"tight head-and-shoulders close-up\", \"camera_angle\": \"eye-level\", \"orientation\": \"vertical\", \"symmetry\": \"near-perfect central symmetry\", \"focus\": \"sharp focus on eyes and facial features\", \"depth_of_field\": \"shallow, background fully blurred to black\" }, \"subject\": { \"description\": \"middle-aged male-presenting subject\", \"pose\": \"frontal, facing camera directly\", \"expression\": \"calm, confident, intense gaze\", \"eye_direction\": \"looking straight into lens\", \"facial_features\": { \"facial_hair\": \"short salt-and-pepper stubble and trimmed goatee\", \"skin_texture\": \"visible pores and fine lines, realistic skin detail\", \"eyes\": \"light-colored eyes emphasized by catchlights\" }, \"hair\": { \"style\": \"medium-length, brushed back\", \"texture\": \"natural, slightly tousled\", \"color\": \"dark brown with subtle gray highlights\" } }, \"wardrobe\": { \"top\": \"white crew-neck t-shirt\", \"outerwear\": \"dark jacket or coat with soft texture\", \"accessories\": \"thin chain necklace partially visible\" }, \"lighting\": { \"style\": \"cinematic, high-contrast neon lighting\", \"key_light\": { \"position\": \"front-left\", \"color\": \"cool cyan/blue\", \"effect\": \"dominant illumination across face and torso\" }, \"rim_light\": { \"position\": \"rear-right\", \"color\": \"saturated red/magenta\", \"effect\": \"strong edge highlight on hair and face contour\" }, \"fill_light\": \"minimal to none\", \"contrast_level\": \"high\", \"mood\": \"dramatic, futuristic, intense\" }, \"color_palette\": { \"dominant_colors\": [\"cyan blue\", \"deep red\", \"black\"], \"color_temperature\": \"mixed cool and warm neon tones\", \"saturation\": \"high saturation on lighting, neutral clothing tones\", \"color_grading\": \"stylized cyberpunk-inspired grading\" }, \"background\": { \"environment\": \"studio\", \"details\": \"pure black background with no visible texture or objects\", \"separation\": \"strong subject-background separation via rim lighting\" }, \"technical_details\": { \"camera_style\": \"professional studio photography\", \"lens_effect\": \"slight compression typical of portrait lens\", \"estimated_focal_length\": \"85mm equivalent\", \"image_sharpness\": \"high\", \"noise\": \"minimal\", \"dynamic_range\": \"controlled highlights with deep shadows\" }, \"artistic_style\": { \"genre\": \"cinematic portrait\", \"influences\": [\"cyberpunk\", \"neo-noir\", \"editorial fashion\"], \"visual_aesthetic\": \"bold, modern, high-impact\", \"post_processing\": { \"skin_retouching\": \"subtle, realistic\", \"color_enhancement\": \"strong split-toning blue/red\", \"clarity\": \"enhanced micro-contrast\" } }, \"overall_impression\": { \"tone\": \"powerful and enigmatic\", \"intended_use\": \"editorial, album cover, cinematic poster, AI style reference\", \"style_recreation_keywords\": [ \"cinematic neon portrait\", \"blue and red split lighting\", \"black background\", \"intense direct gaze\", \"cyberpunk color grading\", \"high-contrast studio lighting\" ] } }"
});
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: "{ \"image_type\": \"studio portrait\", \"composition\": { \"framing\": \"tight head-and-shoulders close-up\", \"camera_angle\": \"eye-level\", \"orientation\": \"vertical\", \"symmetry\": \"near-perfect central symmetry\", \"focus\": \"sharp focus on eyes and facial features\", \"depth_of_field\": \"shallow, background fully blurred to black\" }, \"subject\": { \"description\": \"middle-aged male-presenting subject\", \"pose\": \"frontal, facing camera directly\", \"expression\": \"calm, confident, intense gaze\", \"eye_direction\": \"looking straight into lens\", \"facial_features\": { \"facial_hair\": \"short salt-and-pepper stubble and trimmed goatee\", \"skin_texture\": \"visible pores and fine lines, realistic skin detail\", \"eyes\": \"light-colored eyes emphasized by catchlights\" }, \"hair\": { \"style\": \"medium-length, brushed back\", \"texture\": \"natural, slightly tousled\", \"color\": \"dark brown with subtle gray highlights\" } }, \"wardrobe\": { \"top\": \"white crew-neck t-shirt\", \"outerwear\": \"dark jacket or coat with soft texture\", \"accessories\": \"thin chain necklace partially visible\" }, \"lighting\": { \"style\": \"cinematic, high-contrast neon lighting\", \"key_light\": { \"position\": \"front-left\", \"color\": \"cool cyan/blue\", \"effect\": \"dominant illumination across face and torso\" }, \"rim_light\": { \"position\": \"rear-right\", \"color\": \"saturated red/magenta\", \"effect\": \"strong edge highlight on hair and face contour\" }, \"fill_light\": \"minimal to none\", \"contrast_level\": \"high\", \"mood\": \"dramatic, futuristic, intense\" }, \"color_palette\": { \"dominant_colors\": [\"cyan blue\", \"deep red\", \"black\"], \"color_temperature\": \"mixed cool and warm neon tones\", \"saturation\": \"high saturation on lighting, neutral clothing tones\", \"color_grading\": \"stylized cyberpunk-inspired grading\" }, \"background\": { \"environment\": \"studio\", \"details\": \"pure black background with no visible texture or objects\", \"separation\": \"strong subject-background separation via rim lighting\" }, \"technical_details\": { \"camera_style\": \"professional studio photography\", \"lens_effect\": \"slight compression typical of portrait lens\", \"estimated_focal_length\": \"85mm equivalent\", \"image_sharpness\": \"high\", \"noise\": \"minimal\", \"dynamic_range\": \"controlled highlights with deep shadows\" }, \"artistic_style\": { \"genre\": \"cinematic portrait\", \"influences\": [\"cyberpunk\", \"neo-noir\", \"editorial fashion\"], \"visual_aesthetic\": \"bold, modern, high-impact\", \"post_processing\": { \"skin_retouching\": \"subtle, realistic\", \"color_enhancement\": \"strong split-toning blue/red\", \"clarity\": \"enhanced micro-contrast\" } }, \"overall_impression\": { \"tone\": \"powerful and enigmatic\", \"intended_use\": \"editorial, album cover, cinematic poster, AI style reference\", \"style_recreation_keywords\": [ \"cinematic neon portrait\", \"blue and red split lighting\", \"black background\", \"intense direct gaze\", \"cyberpunk color grading\", \"high-contrast studio lighting\" ] } }"
)
puts result.id
复制
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"{ \\\"image_type\\\": \\\"studio portrait\\\", \\\"composition\\\": { \\\"framing\\\": \\\"tight head-and-shoulders close-up\\\", \\\"camera_angle\\\": \\\"eye-level\\\", \\\"orientation\\\": \\\"vertical\\\", \\\"symmetry\\\": \\\"near-perfect central symmetry\\\", \\\"focus\\\": \\\"sharp focus on eyes and facial features\\\", \\\"depth_of_field\\\": \\\"shallow, background fully blurred to black\\\" }, \\\"subject\\\": { \\\"description\\\": \\\"middle-aged male-presenting subject\\\", \\\"pose\\\": \\\"frontal, facing camera directly\\\", \\\"expression\\\": \\\"calm, confident, intense gaze\\\", \\\"eye_direction\\\": \\\"looking straight into lens\\\", \\\"facial_features\\\": { \\\"facial_hair\\\": \\\"short salt-and-pepper stubble and trimmed goatee\\\", \\\"skin_texture\\\": \\\"visible pores and fine lines, realistic skin detail\\\", \\\"eyes\\\": \\\"light-colored eyes emphasized by catchlights\\\" }, \\\"hair\\\": { \\\"style\\\": \\\"medium-length, brushed back\\\", \\\"texture\\\": \\\"natural, slightly tousled\\\", \\\"color\\\": \\\"dark brown with subtle gray highlights\\\" } }, \\\"wardrobe\\\": { \\\"top\\\": \\\"white crew-neck t-shirt\\\", \\\"outerwear\\\": \\\"dark jacket or coat with soft texture\\\", \\\"accessories\\\": \\\"thin chain necklace partially visible\\\" }, \\\"lighting\\\": { \\\"style\\\": \\\"cinematic, high-contrast neon lighting\\\", \\\"key_light\\\": { \\\"position\\\": \\\"front-left\\\", \\\"color\\\": \\\"cool cyan/blue\\\", \\\"effect\\\": \\\"dominant illumination across face and torso\\\" }, \\\"rim_light\\\": { \\\"position\\\": \\\"rear-right\\\", \\\"color\\\": \\\"saturated red/magenta\\\", \\\"effect\\\": \\\"strong edge highlight on hair and face contour\\\" }, \\\"fill_light\\\": \\\"minimal to none\\\", \\\"contrast_level\\\": \\\"high\\\", \\\"mood\\\": \\\"dramatic, futuristic, intense\\\" }, \\\"color_palette\\\": { \\\"dominant_colors\\\": [\\\"cyan blue\\\", \\\"deep red\\\", \\\"black\\\"], \\\"color_temperature\\\": \\\"mixed cool and warm neon tones\\\", \\\"saturation\\\": \\\"high saturation on lighting, neutral clothing tones\\\", \\\"color_grading\\\": \\\"stylized cyberpunk-inspired grading\\\" }, \\\"background\\\": { \\\"environment\\\": \\\"studio\\\", \\\"details\\\": \\\"pure black background with no visible texture or objects\\\", \\\"separation\\\": \\\"strong subject-background separation via rim lighting\\\" }, \\\"technical_details\\\": { \\\"camera_style\\\": \\\"professional studio photography\\\", \\\"lens_effect\\\": \\\"slight compression typical of portrait lens\\\", \\\"estimated_focal_length\\\": \\\"85mm equivalent\\\", \\\"image_sharpness\\\": \\\"high\\\", \\\"noise\\\": \\\"minimal\\\", \\\"dynamic_range\\\": \\\"controlled highlights with deep shadows\\\" }, \\\"artistic_style\\\": { \\\"genre\\\": \\\"cinematic portrait\\\", \\\"influences\\\": [\\\"cyberpunk\\\", \\\"neo-noir\\\", \\\"editorial fashion\\\"], \\\"visual_aesthetic\\\": \\\"bold, modern, high-impact\\\", \\\"post_processing\\\": { \\\"skin_retouching\\\": \\\"subtle, realistic\\\", \\\"color_enhancement\\\": \\\"strong split-toning blue/red\\\", \\\"clarity\\\": \\\"enhanced micro-contrast\\\" } }, \\\"overall_impression\\\": { \\\"tone\\\": \\\"powerful and enigmatic\\\", \\\"intended_use\\\": \\\"editorial, album cover, cinematic poster, AI style reference\\\", \\\"style_recreation_keywords\\\": [ \\\"cinematic neon portrait\\\", \\\"blue and red split lighting\\\", \\\"black background\\\", \\\"intense direct gaze\\\", \\\"cyberpunk color grading\\\", \\\"high-contrast studio lighting\\\" ] } }\"}")
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)
}