PROMPT 详情

{ "style_id": "photo-flat-doodle-campaign-poster", "styl...

{ "style_id": "photo-flat-doodle-campaign-poster", "style_name": "Photo × Flat-Doodle Campaign Poster", "version": "1.0", "aspect_ratio": "2:3", "reference": "Shanghai edition — derived from TfL 'Your London Adventure Starts Here'", "variables": { "scene": { "city": "上海 Shanghai", "landmark_photo": { "subject": "Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River", "angle": "low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible", "lighting": "early evening blue hour, city lights just starting to glow, sky still holding daylight", "treatment": "unretouched realistic photograph, natural steel + concrete + river reflection, no filter" }, "background_sky": "deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline" }, "hero_character": { "enabled": true, "scale": "giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas", "pose": "holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step", "skin_tone": "flat neon-green (non-realistic)", "face": "minimal — single curved smile, no nose, small cobalt-blue round eyes like dots", "hair": "long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs", "outfit": { "top": "oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length", "bottom": "off-white baggy cargo pants with a neon-green side stripe and oversized pockets", "shoes": "chunky pink-and-yellow platform sneakers" }, "accessory": "bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above", "linework": "thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave" }, "doodle_props": [ { "id": "giant_xiaolongbao_cloud", "shape": "three oversized cartoon soup dumplings floating together with exaggerated steam swirls", "colors": ["off-white dumpling skin", "hot-pink pleats", "sun-yellow steam"], "position": "lower-left foreground, tilted, partially covering the tower base" }, { "id": "metro_heart_sticker", "shape": "Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars", "colors": ["hot-pink circle", "off-white Chinese character 地", "neon-green sparkles"], "position": "pasted onto the lower sphere of the Pearl Tower" }, { "id": "huangpu_wave", "shape": "stylized cartoon river wave curl, like a chunky comma", "colors": ["cobalt-blue wave", "off-white foam tips"], "position": "mid-left, floating in front of the tower mid-section" }, { "id": "red_lantern", "shape": "round traditional cartoon red lantern with a tiny tassel", "colors": ["hot-pink lantern", "sun-yellow tassel", "neon-green string"], "position": "center-upper, overlapping between the two pink spheres of the tower" }, { "id": "magnolia_petal_burst", "shape": "a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)", "colors": ["off-white petals", "hot-pink tips"], "position": "far-left mid-height, drifting diagonally as a color accent" }, { "id": "panda_bubble_tea_buddy", "shape": "tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper", "colors": ["off-white cup", "ink-black pearls", "neon-green straw"], "position": "bottom-right near the character's shoe, as a sidekick scale cue" } ], "copy": { "headline": { "text": "你的上海奇遇 从这里开始", "language": "zh-CN", "max_lines": 3, "english_variant": "Your Shanghai Adventure Starts Here" }, "subhead": { "text": "乘地铁。逛街巷。尝一口。", "language": "zh-CN" }, "logos": { "bottom_left": "上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT", "bottom_right": "上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)" } } } }
gpt-image-2 /api/v1/gpt_image_2/text_to_image
运行信息
模型
gpt-image-2
提供方
OpenAI
服务
Gpt Image 2
Endpoint
Text To Image
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"{ "style_id": "photo-flat-doodle-campaign-poster", "style_name": "Photo × Flat-Doodle Campaign Poster", "version": "1.0", "aspect_ratio": "2:3", "reference": "Shanghai edition — derived from TfL 'Your London Adventure Starts Here'", "variables": { "scene": { "city": "上海 Shanghai", "landmark_photo": { "subject": "Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River", "angle": "low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible", "lighting": "early evening blue hour, city lights just starting to glow, sky still holding daylight", "treatment": "unretouched realistic photograph, natural steel + concrete + river reflection, no filter" }, "background_sky": "deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline" }, "hero_character": { "enabled": true, "scale": "giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas", "pose": "holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step", "skin_tone": "flat neon-green (non-realistic)", "face": "minimal — single curved smile, no nose, small cobalt-blue round eyes like dots", "hair": "long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs", "outfit": { "top": "oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length", "bottom": "off-white baggy cargo pants with a neon-green side stripe and oversized pockets", "shoes": "chunky pink-and-yellow platform sneakers" }, "accessory": "bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above", "linework": "thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave" }, "doodle_props": [ { "id": "giant_xiaolongbao_cloud", "shape": "three oversized cartoon soup dumplings floating together with exaggerated steam swirls", "colors": ["off-white dumpling skin", "hot-pink pleats", "sun-yellow steam"], "position": "lower-left foreground, tilted, partially covering the tower base" }, { "id": "metro_heart_sticker", "shape": "Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars", "colors": ["hot-pink circle", "off-white Chinese character 地", "neon-green sparkles"], "position": "pasted onto the lower sphere of the Pearl Tower" }, { "id": "huangpu_wave", "shape": "stylized cartoon river wave curl, like a chunky comma", "colors": ["cobalt-blue wave", "off-white foam tips"], "position": "mid-left, floating in front of the tower mid-section" }, { "id": "red_lantern", "shape": "round traditional cartoon red lantern with a tiny tassel", "colors": ["hot-pink lantern", "sun-yellow tassel", "neon-green string"], "position": "center-upper, overlapping between the two pink spheres of the tower" }, { "id": "magnolia_petal_burst", "shape": "a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)", "colors": ["off-white petals", "hot-pink tips"], "position": "far-left mid-height, drifting diagonally as a color accent" }, { "id": "panda_bubble_tea_buddy", "shape": "tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper", "colors": ["off-white cup", "ink-black pearls", "neon-green straw"], "position": "bottom-right near the character's shoe, as a sidekick scale cue" } ], "copy": { "headline": { "text": "你的上海奇遇 从这里开始", "language": "zh-CN", "max_lines": 3, "english_variant": "Your Shanghai Adventure Starts Here" }, "subhead": { "text": "乘地铁。逛街巷。尝一口。", "language": "zh-CN" }, "logos": { "bottom_left": "上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT", "bottom_right": "上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)" } } } }"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"{ "style_id": "photo-flat-doodle-campaign-poster", "style_name": "Photo × Flat-Doodle Campaign Poster", "version": "1.0", "aspect_ratio": "2:3", "reference": "Shanghai edition — derived from TfL 'Your London Adventure Starts Here'", "variables": { "scene": { "city": "上海 Shanghai", "landmark_photo": { "subject": "Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River", "angle": "low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible", "lighting": "early evening blue hour, city lights just starting to glow, sky still holding daylight", "treatment": "unretouched realistic photograph, natural steel + concrete + river reflection, no filter" }, "background_sky": "deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline" }, "hero_character": { "enabled": true, "scale": "giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas", "pose": "holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step", "skin_tone": "flat neon-green (non-realistic)", "face": "minimal — single curved smile, no nose, small cobalt-blue round eyes like dots", "hair": "long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs", "outfit": { "top": "oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length", "bottom": "off-white baggy cargo pants with a neon-green side stripe and oversized pockets", "shoes": "chunky pink-and-yellow platform sneakers" }, "accessory": "bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above", "linework": "thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave" }, "doodle_props": [ { "id": "giant_xiaolongbao_cloud", "shape": "three oversized cartoon soup dumplings floating together with exaggerated steam swirls", "colors": ["off-white dumpling skin", "hot-pink pleats", "sun-yellow steam"], "position": "lower-left foreground, tilted, partially covering the tower base" }, { "id": "metro_heart_sticker", "shape": "Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars", "colors": ["hot-pink circle", "off-white Chinese character 地", "neon-green sparkles"], "position": "pasted onto the lower sphere of the Pearl Tower" }, { "id": "huangpu_wave", "shape": "stylized cartoon river wave curl, like a chunky comma", "colors": ["cobalt-blue wave", "off-white foam tips"], "position": "mid-left, floating in front of the tower mid-section" }, { "id": "red_lantern", "shape": "round traditional cartoon red lantern with a tiny tassel", "colors": ["hot-pink lantern", "sun-yellow tassel", "neon-green string"], "position": "center-upper, overlapping between the two pink spheres of the tower" }, { "id": "magnolia_petal_burst", "shape": "a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)", "colors": ["off-white petals", "hot-pink tips"], "position": "far-left mid-height, drifting diagonally as a color accent" }, { "id": "panda_bubble_tea_buddy", "shape": "tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper", "colors": ["off-white cup", "ink-black pearls", "neon-green straw"], "position": "bottom-right near the character's shoe, as a sidekick scale cue" } ], "copy": { "headline": { "text": "你的上海奇遇 从这里开始", "language": "zh-CN", "max_lines": 3, "english_variant": "Your Shanghai Adventure Starts Here" }, "subhead": { "text": "乘地铁。逛街巷。尝一口。", "language": "zh-CN" }, "logos": { "bottom_left": "上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT", "bottom_right": "上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)" } } } }"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"{ "style_id": "photo-flat-doodle-campaign-poster", "style_name": "Photo × Flat-Doodle Campaign Poster", "version": "1.0", "aspect_ratio": "2:3", "reference": "Shanghai edition — derived from TfL 'Your London Adventure Starts Here'", "variables": { "scene": { "city": "上海 Shanghai", "landmark_photo": { "subject": "Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River", "angle": "low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible", "lighting": "early evening blue hour, city lights just starting to glow, sky still holding daylight", "treatment": "unretouched realistic photograph, natural steel + concrete + river reflection, no filter" }, "background_sky": "deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline" }, "hero_character": { "enabled": true, "scale": "giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas", "pose": "holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step", "skin_tone": "flat neon-green (non-realistic)", "face": "minimal — single curved smile, no nose, small cobalt-blue round eyes like dots", "hair": "long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs", "outfit": { "top": "oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length", "bottom": "off-white baggy cargo pants with a neon-green side stripe and oversized pockets", "shoes": "chunky pink-and-yellow platform sneakers" }, "accessory": "bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above", "linework": "thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave" }, "doodle_props": [ { "id": "giant_xiaolongbao_cloud", "shape": "three oversized cartoon soup dumplings floating together with exaggerated steam swirls", "colors": ["off-white dumpling skin", "hot-pink pleats", "sun-yellow steam"], "position": "lower-left foreground, tilted, partially covering the tower base" }, { "id": "metro_heart_sticker", "shape": "Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars", "colors": ["hot-pink circle", "off-white Chinese character 地", "neon-green sparkles"], "position": "pasted onto the lower sphere of the Pearl Tower" }, { "id": "huangpu_wave", "shape": "stylized cartoon river wave curl, like a chunky comma", "colors": ["cobalt-blue wave", "off-white foam tips"], "position": "mid-left, floating in front of the tower mid-section" }, { "id": "red_lantern", "shape": "round traditional cartoon red lantern with a tiny tassel", "colors": ["hot-pink lantern", "sun-yellow tassel", "neon-green string"], "position": "center-upper, overlapping between the two pink spheres of the tower" }, { "id": "magnolia_petal_burst", "shape": "a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)", "colors": ["off-white petals", "hot-pink tips"], "position": "far-left mid-height, drifting diagonally as a color accent" }, { "id": "panda_bubble_tea_buddy", "shape": "tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper", "colors": ["off-white cup", "ink-black pearls", "neon-green straw"], "position": "bottom-right near the character's shoe, as a sidekick scale cue" } ], "copy": { "headline": { "text": "你的上海奇遇 从这里开始", "language": "zh-CN", "max_lines": 3, "english_variant": "Your Shanghai Adventure Starts Here" }, "subhead": { "text": "乘地铁。逛街巷。尝一口。", "language": "zh-CN" }, "logos": { "bottom_left": "上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT", "bottom_right": "上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)" } } } }"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"{ "style_id": "photo-flat-doodle-campaign-poster", "style_name": "Photo × Flat-Doodle Campaign Poster", "version": "1.0", "aspect_ratio": "2:3", "reference": "Shanghai edition — derived from TfL 'Your London Adventure Starts Here'", "variables": { "scene": { "city": "上海 Shanghai", "landmark_photo": { "subject": "Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River", "angle": "low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible", "lighting": "early evening blue hour, city lights just starting to glow, sky still holding daylight", "treatment": "unretouched realistic photograph, natural steel + concrete + river reflection, no filter" }, "background_sky": "deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline" }, "hero_character": { "enabled": true, "scale": "giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas", "pose": "holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step", "skin_tone": "flat neon-green (non-realistic)", "face": "minimal — single curved smile, no nose, small cobalt-blue round eyes like dots", "hair": "long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs", "outfit": { "top": "oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length", "bottom": "off-white baggy cargo pants with a neon-green side stripe and oversized pockets", "shoes": "chunky pink-and-yellow platform sneakers" }, "accessory": "bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above", "linework": "thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave" }, "doodle_props": [ { "id": "giant_xiaolongbao_cloud", "shape": "three oversized cartoon soup dumplings floating together with exaggerated steam swirls", "colors": ["off-white dumpling skin", "hot-pink pleats", "sun-yellow steam"], "position": "lower-left foreground, tilted, partially covering the tower base" }, { "id": "metro_heart_sticker", "shape": "Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars", "colors": ["hot-pink circle", "off-white Chinese character 地", "neon-green sparkles"], "position": "pasted onto the lower sphere of the Pearl Tower" }, { "id": "huangpu_wave", "shape": "stylized cartoon river wave curl, like a chunky comma", "colors": ["cobalt-blue wave", "off-white foam tips"], "position": "mid-left, floating in front of the tower mid-section" }, { "id": "red_lantern", "shape": "round traditional cartoon red lantern with a tiny tassel", "colors": ["hot-pink lantern", "sun-yellow tassel", "neon-green string"], "position": "center-upper, overlapping between the two pink spheres of the tower" }, { "id": "magnolia_petal_burst", "shape": "a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)", "colors": ["off-white petals", "hot-pink tips"], "position": "far-left mid-height, drifting diagonally as a color accent" }, { "id": "panda_bubble_tea_buddy", "shape": "tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper", "colors": ["off-white cup", "ink-black pearls", "neon-green straw"], "position": "bottom-right near the character's shoe, as a sidekick scale cue" } ], "copy": { "headline": { "text": "你的上海奇遇 从这里开始", "language": "zh-CN", "max_lines": 3, "english_variant": "Your Shanghai Adventure Starts Here" }, "subhead": { "text": "乘地铁。逛街巷。尝一口。", "language": "zh-CN" }, "logos": { "bottom_left": "上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT", "bottom_right": "上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)" } } } }"
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": "{ \"style_id\": \"photo-flat-doodle-campaign-poster\", \"style_name\": \"Photo × Flat-Doodle Campaign Poster\", \"version\": \"1.0\", \"aspect_ratio\": \"2:3\", \"reference\": \"Shanghai edition — derived from TfL 'Your London Adventure Starts Here'\", \"variables\": { \"scene\": { \"city\": \"上海 Shanghai\", \"landmark_photo\": { \"subject\": \"Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River\", \"angle\": \"low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible\", \"lighting\": \"early evening blue hour, city lights just starting to glow, sky still holding daylight\", \"treatment\": \"unretouched realistic photograph, natural steel + concrete + river reflection, no filter\" }, \"background_sky\": \"deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline\" }, \"hero_character\": { \"enabled\": true, \"scale\": \"giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas\", \"pose\": \"holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step\", \"skin_tone\": \"flat neon-green (non-realistic)\", \"face\": \"minimal — single curved smile, no nose, small cobalt-blue round eyes like dots\", \"hair\": \"long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs\", \"outfit\": { \"top\": \"oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length\", \"bottom\": \"off-white baggy cargo pants with a neon-green side stripe and oversized pockets\", \"shoes\": \"chunky pink-and-yellow platform sneakers\" }, \"accessory\": \"bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above\", \"linework\": \"thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave\" }, \"doodle_props\": [ { \"id\": \"giant_xiaolongbao_cloud\", \"shape\": \"three oversized cartoon soup dumplings floating together with exaggerated steam swirls\", \"colors\": [\"off-white dumpling skin\", \"hot-pink pleats\", \"sun-yellow steam\"], \"position\": \"lower-left foreground, tilted, partially covering the tower base\" }, { \"id\": \"metro_heart_sticker\", \"shape\": \"Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars\", \"colors\": [\"hot-pink circle\", \"off-white Chinese character 地\", \"neon-green sparkles\"], \"position\": \"pasted onto the lower sphere of the Pearl Tower\" }, { \"id\": \"huangpu_wave\", \"shape\": \"stylized cartoon river wave curl, like a chunky comma\", \"colors\": [\"cobalt-blue wave\", \"off-white foam tips\"], \"position\": \"mid-left, floating in front of the tower mid-section\" }, { \"id\": \"red_lantern\", \"shape\": \"round traditional cartoon red lantern with a tiny tassel\", \"colors\": [\"hot-pink lantern\", \"sun-yellow tassel\", \"neon-green string\"], \"position\": \"center-upper, overlapping between the two pink spheres of the tower\" }, { \"id\": \"magnolia_petal_burst\", \"shape\": \"a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)\", \"colors\": [\"off-white petals\", \"hot-pink tips\"], \"position\": \"far-left mid-height, drifting diagonally as a color accent\" }, { \"id\": \"panda_bubble_tea_buddy\", \"shape\": \"tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper\", \"colors\": [\"off-white cup\", \"ink-black pearls\", \"neon-green straw\"], \"position\": \"bottom-right near the character's shoe, as a sidekick scale cue\" } ], \"copy\": { \"headline\": { \"text\": \"你的上海奇遇 从这里开始\", \"language\": \"zh-CN\", \"max_lines\": 3, \"english_variant\": \"Your Shanghai Adventure Starts Here\" }, \"subhead\": { \"text\": \"乘地铁。逛街巷。尝一口。\", \"language\": \"zh-CN\" }, \"logos\": { \"bottom_left\": \"上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT\", \"bottom_right\": \"上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)\" } } } }"
}
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": "{ \"style_id\": \"photo-flat-doodle-campaign-poster\", \"style_name\": \"Photo × Flat-Doodle Campaign Poster\", \"version\": \"1.0\", \"aspect_ratio\": \"2:3\", \"reference\": \"Shanghai edition — derived from TfL 'Your London Adventure Starts Here'\", \"variables\": { \"scene\": { \"city\": \"上海 Shanghai\", \"landmark_photo\": { \"subject\": \"Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River\", \"angle\": \"low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible\", \"lighting\": \"early evening blue hour, city lights just starting to glow, sky still holding daylight\", \"treatment\": \"unretouched realistic photograph, natural steel + concrete + river reflection, no filter\" }, \"background_sky\": \"deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline\" }, \"hero_character\": { \"enabled\": true, \"scale\": \"giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas\", \"pose\": \"holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step\", \"skin_tone\": \"flat neon-green (non-realistic)\", \"face\": \"minimal — single curved smile, no nose, small cobalt-blue round eyes like dots\", \"hair\": \"long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs\", \"outfit\": { \"top\": \"oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length\", \"bottom\": \"off-white baggy cargo pants with a neon-green side stripe and oversized pockets\", \"shoes\": \"chunky pink-and-yellow platform sneakers\" }, \"accessory\": \"bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above\", \"linework\": \"thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave\" }, \"doodle_props\": [ { \"id\": \"giant_xiaolongbao_cloud\", \"shape\": \"three oversized cartoon soup dumplings floating together with exaggerated steam swirls\", \"colors\": [\"off-white dumpling skin\", \"hot-pink pleats\", \"sun-yellow steam\"], \"position\": \"lower-left foreground, tilted, partially covering the tower base\" }, { \"id\": \"metro_heart_sticker\", \"shape\": \"Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars\", \"colors\": [\"hot-pink circle\", \"off-white Chinese character 地\", \"neon-green sparkles\"], \"position\": \"pasted onto the lower sphere of the Pearl Tower\" }, { \"id\": \"huangpu_wave\", \"shape\": \"stylized cartoon river wave curl, like a chunky comma\", \"colors\": [\"cobalt-blue wave\", \"off-white foam tips\"], \"position\": \"mid-left, floating in front of the tower mid-section\" }, { \"id\": \"red_lantern\", \"shape\": \"round traditional cartoon red lantern with a tiny tassel\", \"colors\": [\"hot-pink lantern\", \"sun-yellow tassel\", \"neon-green string\"], \"position\": \"center-upper, overlapping between the two pink spheres of the tower\" }, { \"id\": \"magnolia_petal_burst\", \"shape\": \"a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)\", \"colors\": [\"off-white petals\", \"hot-pink tips\"], \"position\": \"far-left mid-height, drifting diagonally as a color accent\" }, { \"id\": \"panda_bubble_tea_buddy\", \"shape\": \"tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper\", \"colors\": [\"off-white cup\", \"ink-black pearls\", \"neon-green straw\"], \"position\": \"bottom-right near the character's shoe, as a sidekick scale cue\" } ], \"copy\": { \"headline\": { \"text\": \"你的上海奇遇 从这里开始\", \"language\": \"zh-CN\", \"max_lines\": 3, \"english_variant\": \"Your Shanghai Adventure Starts Here\" }, \"subhead\": { \"text\": \"乘地铁。逛街巷。尝一口。\", \"language\": \"zh-CN\" }, \"logos\": { \"bottom_left\": \"上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT\", \"bottom_right\": \"上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)\" } } } }"
});
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: "{ \"style_id\": \"photo-flat-doodle-campaign-poster\", \"style_name\": \"Photo × Flat-Doodle Campaign Poster\", \"version\": \"1.0\", \"aspect_ratio\": \"2:3\", \"reference\": \"Shanghai edition — derived from TfL 'Your London Adventure Starts Here'\", \"variables\": { \"scene\": { \"city\": \"上海 Shanghai\", \"landmark_photo\": { \"subject\": \"Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River\", \"angle\": \"low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible\", \"lighting\": \"early evening blue hour, city lights just starting to glow, sky still holding daylight\", \"treatment\": \"unretouched realistic photograph, natural steel + concrete + river reflection, no filter\" }, \"background_sky\": \"deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline\" }, \"hero_character\": { \"enabled\": true, \"scale\": \"giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas\", \"pose\": \"holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step\", \"skin_tone\": \"flat neon-green (non-realistic)\", \"face\": \"minimal — single curved smile, no nose, small cobalt-blue round eyes like dots\", \"hair\": \"long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs\", \"outfit\": { \"top\": \"oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length\", \"bottom\": \"off-white baggy cargo pants with a neon-green side stripe and oversized pockets\", \"shoes\": \"chunky pink-and-yellow platform sneakers\" }, \"accessory\": \"bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above\", \"linework\": \"thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave\" }, \"doodle_props\": [ { \"id\": \"giant_xiaolongbao_cloud\", \"shape\": \"three oversized cartoon soup dumplings floating together with exaggerated steam swirls\", \"colors\": [\"off-white dumpling skin\", \"hot-pink pleats\", \"sun-yellow steam\"], \"position\": \"lower-left foreground, tilted, partially covering the tower base\" }, { \"id\": \"metro_heart_sticker\", \"shape\": \"Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars\", \"colors\": [\"hot-pink circle\", \"off-white Chinese character 地\", \"neon-green sparkles\"], \"position\": \"pasted onto the lower sphere of the Pearl Tower\" }, { \"id\": \"huangpu_wave\", \"shape\": \"stylized cartoon river wave curl, like a chunky comma\", \"colors\": [\"cobalt-blue wave\", \"off-white foam tips\"], \"position\": \"mid-left, floating in front of the tower mid-section\" }, { \"id\": \"red_lantern\", \"shape\": \"round traditional cartoon red lantern with a tiny tassel\", \"colors\": [\"hot-pink lantern\", \"sun-yellow tassel\", \"neon-green string\"], \"position\": \"center-upper, overlapping between the two pink spheres of the tower\" }, { \"id\": \"magnolia_petal_burst\", \"shape\": \"a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)\", \"colors\": [\"off-white petals\", \"hot-pink tips\"], \"position\": \"far-left mid-height, drifting diagonally as a color accent\" }, { \"id\": \"panda_bubble_tea_buddy\", \"shape\": \"tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper\", \"colors\": [\"off-white cup\", \"ink-black pearls\", \"neon-green straw\"], \"position\": \"bottom-right near the character's shoe, as a sidekick scale cue\" } ], \"copy\": { \"headline\": { \"text\": \"你的上海奇遇 从这里开始\", \"language\": \"zh-CN\", \"max_lines\": 3, \"english_variant\": \"Your Shanghai Adventure Starts Here\" }, \"subhead\": { \"text\": \"乘地铁。逛街巷。尝一口。\", \"language\": \"zh-CN\" }, \"logos\": { \"bottom_left\": \"上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT\", \"bottom_right\": \"上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)\" } } } }"
)
puts result.id
package main

import (
  "context"
  "fmt"
  "log"
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"{ \\\"style_id\\\": \\\"photo-flat-doodle-campaign-poster\\\", \\\"style_name\\\": \\\"Photo × Flat-Doodle Campaign Poster\\\", \\\"version\\\": \\\"1.0\\\", \\\"aspect_ratio\\\": \\\"2:3\\\", \\\"reference\\\": \\\"Shanghai edition — derived from TfL 'Your London Adventure Starts Here'\\\", \\\"variables\\\": { \\\"scene\\\": { \\\"city\\\": \\\"上海 Shanghai\\\", \\\"landmark_photo\\\": { \\\"subject\\\": \\\"Oriental Pearl Tower with Lujiazui skyline in the background, viewed from across the Huangpu River\\\", \\\"angle\\\": \\\"low-angle hero shot, Pearl Tower centered and vertical, the two pink spheres clearly visible\\\", \\\"lighting\\\": \\\"early evening blue hour, city lights just starting to glow, sky still holding daylight\\\", \\\"treatment\\\": \\\"unretouched realistic photograph, natural steel + concrete + river reflection, no filter\\\" }, \\\"background_sky\\\": \\\"deep teal-to-indigo gradient sky with a subtle warm glow at the horizon, upper 40% of canvas kept open for headline\\\" }, \\\"hero_character\\\": { \\\"enabled\\\": true, \\\"scale\\\": \\\"giant — roughly 1.2× tower height, standing on the right, body extends beyond canvas\\\", \\\"pose\\\": \\\"holding a cartoon xiaolongbao steamer basket up to eye level with one hand, the other hand doing a casual wave, one foot slightly lifted mid-step\\\", \\\"skin_tone\\\": \\\"flat neon-green (non-realistic)\\\", \\\"face\\\": \\\"minimal — single curved smile, no nose, small cobalt-blue round eyes like dots\\\", \\\"hair\\\": \\\"long straight black-with-hot-pink-streaks hair, high ponytail swinging to one side, short blunt bangs\\\", \\\"outfit\\\": { \\\"top\\\": \\\"oversized cobalt-blue modern qipao-inspired jacket with a stand collar, hot-pink frog-button closures, cropped length\\\", \\\"bottom\\\": \\\"off-white baggy cargo pants with a neon-green side stripe and oversized pockets\\\", \\\"shoes\\\": \\\"chunky pink-and-yellow platform sneakers\\\" }, \\\"accessory\\\": \\\"bamboo-style cartoon steamer basket with three xiaolongbao peeking out, tiny yellow steam swirls drawn above\\\", \\\"linework\\\": \\\"thin consistent black outline on qipao collar, frog buttons, ponytail strands, and steamer weave\\\" }, \\\"doodle_props\\\": [ { \\\"id\\\": \\\"giant_xiaolongbao_cloud\\\", \\\"shape\\\": \\\"three oversized cartoon soup dumplings floating together with exaggerated steam swirls\\\", \\\"colors\\\": [\\\"off-white dumpling skin\\\", \\\"hot-pink pleats\\\", \\\"sun-yellow steam\\\"], \\\"position\\\": \\\"lower-left foreground, tilted, partially covering the tower base\\\" }, { \\\"id\\\": \\\"metro_heart_sticker\\\", \\\"shape\\\": \\\"Shanghai Metro red circle mark restyled as a flat sticker with sparkle stars\\\", \\\"colors\\\": [\\\"hot-pink circle\\\", \\\"off-white Chinese character 地\\\", \\\"neon-green sparkles\\\"], \\\"position\\\": \\\"pasted onto the lower sphere of the Pearl Tower\\\" }, { \\\"id\\\": \\\"huangpu_wave\\\", \\\"shape\\\": \\\"stylized cartoon river wave curl, like a chunky comma\\\", \\\"colors\\\": [\\\"cobalt-blue wave\\\", \\\"off-white foam tips\\\"], \\\"position\\\": \\\"mid-left, floating in front of the tower mid-section\\\" }, { \\\"id\\\": \\\"red_lantern\\\", \\\"shape\\\": \\\"round traditional cartoon red lantern with a tiny tassel\\\", \\\"colors\\\": [\\\"hot-pink lantern\\\", \\\"sun-yellow tassel\\\", \\\"neon-green string\\\"], \\\"position\\\": \\\"center-upper, overlapping between the two pink spheres of the tower\\\" }, { \\\"id\\\": \\\"magnolia_petal_burst\\\", \\\"shape\\\": \\\"a small cluster of 3 oversized cartoon magnolia petals (Shanghai's city flower)\\\", \\\"colors\\\": [\\\"off-white petals\\\", \\\"hot-pink tips\\\"], \\\"position\\\": \\\"far-left mid-height, drifting diagonally as a color accent\\\" }, { \\\"id\\\": \\\"panda_bubble_tea_buddy\\\", \\\"shape\\\": \\\"tiny cartoon bubble tea cup with a smiling face and a panda-ear straw topper\\\", \\\"colors\\\": [\\\"off-white cup\\\", \\\"ink-black pearls\\\", \\\"neon-green straw\\\"], \\\"position\\\": \\\"bottom-right near the character's shoe, as a sidekick scale cue\\\" } ], \\\"copy\\\": { \\\"headline\\\": { \\\"text\\\": \\\"你的上海奇遇 从这里开始\\\", \\\"language\\\": \\\"zh-CN\\\", \\\"max_lines\\\": 3, \\\"english_variant\\\": \\\"Your Shanghai Adventure Starts Here\\\" }, \\\"subhead\\\": { \\\"text\\\": \\\"乘地铁。逛街巷。尝一口。\\\", \\\"language\\\": \\\"zh-CN\\\" }, \\\"logos\\\": { \\\"bottom_left\\\": \\\"上海市人民政府 SHANGHAI MUNICIPAL GOVERNMENT\\\", \\\"bottom_right\\\": \\\"上海地铁 SHANGHAI METRO — 每一站都是故事 (with metro roundel)\\\" } } } }\"}")
  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)
}
gpt-image-2 /api/v1/gpt_image_2/text_to_image 获取 API Key
相关 PROMPTS

更多相似 prompts

IM
图像
Product & Brand gpt-image-2

{ "master_prompt": { "global_settings": { "resol...

{ "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": "plastic protein drink bottle", "color": "deep matte blue", "surface_details": "condensation droplets across entire bottle", "label_text_visible": [ "milk & yogurt", "mock up", "protein", "SEPARATED SHADOWS" ] }, "pose_and_orientation": { "position": "slightly tilted to the right", "angle": "three-quarter view", "motion_feel": "dynamic, leaning into splash" }, "liquid_and_motion": { "liquid_color": "white and light beige milk mixture", "texture": "smooth, creamy, fluid", "motion": "swirling splash rising around bottle base and sides" }, "floating_elements": { "blueberries": "whole and halved blueberries at different depths", "mint_leaves": "small green leaves with visible veins", "droplets": "milk droplets and spheres suspended mid-air" }, "background": { "color_gradient": "dark blue to warm amber", "bokeh": "soft circular light particles scattered throughout" }, "surface_and_reflection": { "base": "matte ground with light liquid pooling", "shadow_style": "soft separated shadow under bottle" } }, "module_2_image_2_style": { "subject": { "type": "metal coffee can", "color": "warm gold", "surface_details": "heavy condensation with visible droplets", "branding_text_visible": [ "NESCAFÉ", "Latte", "NEW LOOK", "ICED COFFEE WITH MILK", "SUGAR AND SWEETENER OPTIONAL" ] }, "pose_and_orientation": { "position": "upright, centered", "angle": "front-facing", "presence": "hero product stance" }, "liquid_and_motion": { "liquid_color": "coffee and milk blend", "motion": "splash erupting from base", "droplet_behavior": "fine droplets scattered outward" }, "floating_elements": { "coffee_beans": "whole roasted beans floating around can", "steam": "thick swirling steam rising upward", "embers": "tiny glowing particles in background" }, "background": { "color_palette": "deep brown, amber, gold", "atmosphere": "warm, smoky, intense" }, "surface_and_reflection": { "base": "wet surface with liquid splash crown", "reflection_quality": "subtle reflective highlights" } }

查看 API 代码
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\": \"plastic protein drink bottle\", \"color\": \"deep matte blue\", \"surface_details\": \"condensation droplets across entire bottle\", \"label_text_visible\": [ \"milk & yogurt\", \"mock up\", \"protein\", \"SEPARATED SHADOWS\" ] }, \"pose_and_orientation\": { \"position\": \"slightly tilted to the right\", \"angle\": \"three-quarter view\", \"motion_feel\": \"dynamic, leaning into splash\" }, \"liquid_and_motion\": { \"liquid_color\": \"white and light beige milk mixture\", \"texture\": \"smooth, creamy, fluid\", \"motion\": \"swirling splash rising around bottle base and sides\" }, \"floating_elements\": { \"blueberries\": \"whole and halved blueberries at different depths\", \"mint_leaves\": \"small green leaves with visible veins\", \"droplets\": \"milk droplets and spheres suspended mid-air\" }, \"background\": { \"color_gradient\": \"dark blue to warm amber\", \"bokeh\": \"soft circular light particles scattered throughout\" }, \"surface_and_reflection\": { \"base\": \"matte ground with light liquid pooling\", \"shadow_style\": \"soft separated shadow under bottle\" } }, \"module_2_image_2_style\": { \"subject\": { \"type\": \"metal coffee can\", \"color\": \"warm gold\", \"surface_details\": \"heavy condensation with visible droplets\", \"branding_text_visible\": [ \"NESCAFÉ\", \"Latte\", \"NEW LOOK\", \"ICED COFFEE WITH MILK\", \"SUGAR AND SWEETENER OPTIONAL\" ] }, \"pose_and_orientation\": { \"position\": \"upright, centered\", \"angle\": \"front-facing\", \"presence\": \"hero product stance\" }, \"liquid_and_motion\": { \"liquid_color\": \"coffee and milk blend\", \"motion\": \"splash erupting from base\", \"droplet_behavior\": \"fine droplets scattered outward\" }, \"floating_elements\": { \"coffee_beans\": \"whole roasted beans floating around can\", \"steam\": \"thick swirling steam rising upward\", \"embers\": \"tiny glowing particles in background\" }, \"background\": { \"color_palette\": \"deep brown, amber, gold\", \"atmosphere\": \"warm, smoky, intense\" }, \"surface_and_reflection\": { \"base\": \"wet surface with liquid splash crown\", \"reflection_quality\": \"subtle reflective highlights\" } }"
}
JSON
IM
图像
Product & Brand gpt-image-2

Low-angle fashion campaign photograph of a confident model h...

Low-angle fashion campaign photograph of a confident model holding a large [product name] very close to the camera, exaggerated perspective with the hand and product dominating the foreground, full-body pose visible in the background, wide stance, dynamic posture, clean pure white studio background, high-key lighting, sharp focus on product, slight depth of field on the model, bold colorful outfit with strong contrast tones, modern beauty advertising aesthetic, ultra-clean composition, commercial studio photography, glossy packaging detail visible, crisp shadows

查看 API 代码
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": "Low-angle fashion campaign photograph of a confident model holding a large [product name] very close to the camera, exaggerated perspective with the hand and product dominating the foreground, full-body pose visible in the background, wide stance, dynamic posture, clean pure white studio background, high-key lighting, sharp focus on product, slight depth of field on the model, bold colorful outfit with strong contrast tones, modern beauty advertising aesthetic, ultra-clean composition, commercial studio photography, glossy packaging detail visible, crisp shadows"
}
JSON
IM
图像
Photography gpt-image-2

Create an infographic image of [LANDMARK], combining a real...

Create an infographic image of [LANDMARK], combining a real photograph of the landmark with blueprint-style technical annotations and diagrams overlaid on the image. Include the title “[LANDMARK]” in a hand-drawn box in the corner. Add white chalk-style sketches showing key structural data, important measurements, material quantities, internal diagrams, load-flow arrows, cross-sections, floor plans, and notable architectural or engineering features. Style: blueprint aesthetic with white line drawings on the photograph, technical/architectural annotation style, educational infographic feel, with the real environment visible behind the annotations.

查看 API 代码
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": "Create an infographic image of [LANDMARK], combining a real photograph of the landmark with blueprint-style technical annotations and diagrams overlaid on the image. Include the title “[LANDMARK]” in a hand-drawn box in the corner. Add white chalk-style sketches showing key structural data, important measurements, material quantities, internal diagrams, load-flow arrows, cross-sections, floor plans, and notable architectural or engineering features. Style: blueprint aesthetic with white line drawings on the photograph, technical/architectural annotation style, educational infographic feel, with the real environment visible behind the annotations."
}
JSON
IM
图像
Poster Design gpt-image-2

请根据[主题]自动生成一张[博物馆图鉴式中文拆解信息图]。 要求整张图兼具真实写实主视觉、结构拆解、中文标注、材质说明...

请根据[主题]自动生成一张[博物馆图鉴式中文拆解信息图]。 要求整张图兼具真实写实主视觉、结构拆解、中文标注、材质说明、纹样寓意、色彩含义和核心特征总结。你需要根据[主题]自动判断最合适的主体对象、服饰体系、器物结构、时代风格、关键部件、材质工艺、颜色方案与版式结构,用户无需再提供其他信息。 整体风格应为:国家博物馆展板、历史服饰图鉴、文博专题信息图,而不是普通海报、古风写真、电商详情页或动漫插画。背景采用米白、绢纸白、浅茶色等纸张质感,整体高级、克制、专业、可收藏。 版式固定为: - 顶部:中文主标题 + 副标题 + 导语 - 左侧:结构拆解区,中文引线标注关键部件,并配局部特写 - 右上:材质 / 工艺 / 质感区,展示真实纹理小样并附说明 - 右中:纹样 / 色彩 / 寓意区,展示主色板、纹样样本和文化解释 - 底部:穿着顺序 / 构成流程图 + 核心特征总结 若主题适合人物展示,则以真实人物全身站姿为中央主体;若更适合器物或单体结构,则改为中心主体拆解图,但整体仍保持完整中文信息图形式。所有文字必须为简体中文,清晰、规整、可读,不要乱码、错字、英文或拼音。重点突出真实结构、材质差异、文化说明与图鉴气质。 避免:海报感、影楼感、电商感、动漫感、cosplay感、乱标注、错结构、糊字、假材质、过度装饰。

查看 API 代码
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": "请根据[主题]自动生成一张[博物馆图鉴式中文拆解信息图]。 要求整张图兼具真实写实主视觉、结构拆解、中文标注、材质说明、纹样寓意、色彩含义和核心特征总结。你需要根据[主题]自动判断最合适的主体对象、服饰体系、器物结构、时代风格、关键部件、材质工艺、颜色方案与版式结构,用户无需再提供其他信息。 整体风格应为:国家博物馆展板、历史服饰图鉴、文博专题信息图,而不是普通海报、古风写真、电商详情页或动漫插画。背景采用米白、绢纸白、浅茶色等纸张质感,整体高级、克制、专业、可收藏。 版式固定为: - 顶部:中文主标题 + 副标题 + 导语 - 左侧:结构拆解区,中文引线标注关键部件,并配局部特写 - 右上:材质 / 工艺 / 质感区,展示真实纹理小样并附说明 - 右中:纹样 / 色彩 / 寓意区,展示主色板、纹样样本和文化解释 - 底部:穿着顺序 / 构成流程图 + 核心特征总结 若主题适合人物展示,则以真实人物全身站姿为中央主体;若更适合器物或单体结构,则改为中心主体拆解图,但整体仍保持完整中文信息图形式。所有文字必须为简体中文,清晰、规整、可读,不要乱码、错字、英文或拼音。重点突出真实结构、材质差异、文化说明与图鉴气质。 避免:海报感、影楼感、电商感、动漫感、cosplay感、乱标注、错结构、糊字、假材质、过度装饰。"
}
JSON
IM
图像
Poster Design gpt-image-2

生成一张[餐饮品牌触点矩阵]系列视觉图,用于展示一个完整的餐饮品牌视觉系统与包装应用方案。 这是一个面向餐饮行业的品牌...

生成一张[餐饮品牌触点矩阵]系列视觉图,用于展示一个完整的餐饮品牌视觉系统与包装应用方案。 这是一个面向餐饮行业的品牌VI样机展示板 / 包装系统陈列图 / 品牌提案页。画面不是单张宣传海报,而是将品牌主视觉、主打产品、包装物料、菜单信息、促销内容与小型延展物料整合成一张系统化品牌展示图。 【用户输入信息】 - 品牌名:[品牌名] - 经营类目:[经营类目] 【可选补充信息】 - 主打产品:[主打产品] - 品牌口号:[品牌口号] - 风格方向:[风格方向] - 主色调:[主色调] - 辅助色:[辅助色] - 客群定位:[客群定位] - 价格定位:[价格定位] - 地域风格:[地域风格] - 画幅比例:[画幅比例] 【自动补全规则】 如果用户没有提供完整品牌信息,请根据【品牌名】与【经营类目】自动推导并完成最优组合,包括: 1. 判断品牌调性(年轻、亲和、国潮、复古、清新、治愈、精致、快餐感等) 2. 匹配适合该类目的视觉风格 3. 自动设定合理的主色、辅助色与点缀色 4. 自动补全主打产品与辅助产品 5. 自动生成适合餐饮传播的品牌口号、卖点文案、价格信息与推荐标签 6. 自动匹配合适的餐饮物料类型与展示内容 【画面内容要求】 画面中应围绕【品牌名】构建一整套餐饮品牌物料系统,包含但不限于以下内容: - 核心包装:手提袋、外卖袋、包装盒、打包盒、纸袋、塑料袋 - 饮品 / 食品容器:纸杯、杯套、碗、餐盒、封口贴、标签 - 信息传播物料:菜单、促销海报、价格牌、桌牌、立牌、小卡片 - 小型品牌延展:贴纸、徽章、纸巾、餐具、包装封条、吊牌 - 产品表现:主打餐品照片、单品主视觉、食物特写、切面图、推荐组合图 【构图与版式要求】 采用竖版【画幅比例】构图,整体为白色、米白色或浅灰色背景,以品牌提案板 / 样机矩阵板的方式组织画面。 通过大中小物料混排形成视觉层级: - 大型包装和主视觉物料作为视觉锚点 - 中型菜单、海报和价格模块负责信息传达 - 小型贴纸、餐具、标签与周边物料增强系统完整度 整体构图应具有明确秩序感,接近品牌方案展示页、作品集陈列页、包装提案页的视觉效果。元素要排列整齐但不呆板,丰富但不杂乱,具有模块化与可阅读性。 【风格与质感要求】 整体风格应符合【经营类目】与【品牌名】气质,具有明显的餐饮品牌感、商业传播感、样机展示感与系统设计感。 可融合以下风格倾向:现代简洁、国潮趣味、轻复古、生活方式感、快消感、温暖治愈感、年轻化传播感。 材质真实,包含纸张、塑料、布袋、包装盒、杯体、贴纸、餐具等真实物料质感;光影柔和统一,像在干净摄影棚环境中拍摄的品牌物料合集。 【文字与图形要求】 所有物料上应统一出现品牌名、Logo、品牌符号、主色块、口号或卖点文案。 文案可为中文或中英混排,但要符合餐饮传播表达,简洁直接,具备商品售卖感。 图形系统可以根据品牌调性选择简洁插画、几何图形、卡通吉祥物、符号化图标或辅助纹样,用于增强品牌记忆点。 【输出目标】 最终生成一张完整的【品牌名】餐饮品牌视觉系统展示图,像设计团队为该餐饮品牌制作的整套品牌提案样机板。 要求画面统一、精致、具备商业落地感与作品集展示质量,并能清楚体现品牌风格、主打类目与多触点包装延展能力。 Make the aspect ratio 9:16

查看 API 代码
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": "生成一张[餐饮品牌触点矩阵]系列视觉图,用于展示一个完整的餐饮品牌视觉系统与包装应用方案。 这是一个面向餐饮行业的品牌VI样机展示板 / 包装系统陈列图 / 品牌提案页。画面不是单张宣传海报,而是将品牌主视觉、主打产品、包装物料、菜单信息、促销内容与小型延展物料整合成一张系统化品牌展示图。 【用户输入信息】 - 品牌名:[品牌名] - 经营类目:[经营类目] 【可选补充信息】 - 主打产品:[主打产品] - 品牌口号:[品牌口号] - 风格方向:[风格方向] - 主色调:[主色调] - 辅助色:[辅助色] - 客群定位:[客群定位] - 价格定位:[价格定位] - 地域风格:[地域风格] - 画幅比例:[画幅比例] 【自动补全规则】 如果用户没有提供完整品牌信息,请根据【品牌名】与【经营类目】自动推导并完成最优组合,包括: 1. 判断品牌调性(年轻、亲和、国潮、复古、清新、治愈、精致、快餐感等) 2. 匹配适合该类目的视觉风格 3. 自动设定合理的主色、辅助色与点缀色 4. 自动补全主打产品与辅助产品 5. 自动生成适合餐饮传播的品牌口号、卖点文案、价格信息与推荐标签 6. 自动匹配合适的餐饮物料类型与展示内容 【画面内容要求】 画面中应围绕【品牌名】构建一整套餐饮品牌物料系统,包含但不限于以下内容: - 核心包装:手提袋、外卖袋、包装盒、打包盒、纸袋、塑料袋 - 饮品 / 食品容器:纸杯、杯套、碗、餐盒、封口贴、标签 - 信息传播物料:菜单、促销海报、价格牌、桌牌、立牌、小卡片 - 小型品牌延展:贴纸、徽章、纸巾、餐具、包装封条、吊牌 - 产品表现:主打餐品照片、单品主视觉、食物特写、切面图、推荐组合图 【构图与版式要求】 采用竖版【画幅比例】构图,整体为白色、米白色或浅灰色背景,以品牌提案板 / 样机矩阵板的方式组织画面。 通过大中小物料混排形成视觉层级: - 大型包装和主视觉物料作为视觉锚点 - 中型菜单、海报和价格模块负责信息传达 - 小型贴纸、餐具、标签与周边物料增强系统完整度 整体构图应具有明确秩序感,接近品牌方案展示页、作品集陈列页、包装提案页的视觉效果。元素要排列整齐但不呆板,丰富但不杂乱,具有模块化与可阅读性。 【风格与质感要求】 整体风格应符合【经营类目】与【品牌名】气质,具有明显的餐饮品牌感、商业传播感、样机展示感与系统设计感。 可融合以下风格倾向:现代简洁、国潮趣味、轻复古、生活方式感、快消感、温暖治愈感、年轻化传播感。 材质真实,包含纸张、塑料、布袋、包装盒、杯体、贴纸、餐具等真实物料质感;光影柔和统一,像在干净摄影棚环境中拍摄的品牌物料合集。 【文字与图形要求】 所有物料上应统一出现品牌名、Logo、品牌符号、主色块、口号或卖点文案。 文案可为中文或中英混排,但要符合餐饮传播表达,简洁直接,具备商品售卖感。 图形系统可以根据品牌调性选择简洁插画、几何图形、卡通吉祥物、符号化图标或辅助纹样,用于增强品牌记忆点。 【输出目标】 最终生成一张完整的【品牌名】餐饮品牌视觉系统展示图,像设计团队为该餐饮品牌制作的整套品牌提案样机板。 要求画面统一、精致、具备商业落地感与作品集展示质量,并能清楚体现品牌风格、主打类目与多触点包装延展能力。 Make the aspect ratio 9:16"
}
JSON
IM
图像
Food & Drink gpt-image-2

{ "global_settings": { "resolution": "8K ultra high de...

{ "global_settings": { "resolution": "8K ultra high definition", "aspect_ratio": "3:4", "camera_style": "studio food photography with cinematic lighting", "depth_of_field": "shallow depth of field, sharp subject, soft background", "lighting": "soft directional key light, subtle rim light, controlled highlights", "style": "hyper-realistic food illustration with editorial infographic overlays", "composition_rules": [ "no zoom", "no crop", "center-weighted vertical composition", "floating elements frozen in motion" ], "text_design": { "ingredient_name_color": "metallic gold", "ingredient_description_color": "pure white", "font_style": "elegant serif for titles, clean sans-serif for descriptions", "indicator_lines": "long, thin, smooth golden lines with rounded corners" } }, "module_1_image_1_style": { "scene_description": "A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.", "background": { "color": "soft pastel pink", "texture": "smooth gradient", "lighting": "even, studio-lit, no harsh shadows" }, "main_subjects": [ "multiple layered sponge cake slices", "white whipped cream layers", "raspberry cream layer", "chocolate cream topping" ], "visible_ingredients": [ "vanilla sponge cake", "whipped cream", "raspberries", "blueberries", "strawberries", "macarons (vanilla and chocolate)", "chocolate bar pieces", "mint leaves", "small nut fragments" ], "motion_elements": [ "floating fruits", "floating macarons", "crumbs suspended in air" ], "text_labels": [ "Vanilla Cake – soft, fluffy sponge cake layered with white cream filling", "Macaron – creamy filling between almond meringue shells", "Raspberries – juicy, fresh raspberries", "Chocolate Bar – chunks of smooth milk chocolate", "Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream" ] }, "module_2_image_2_style": { "scene_description": "Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.", "background": { "environment": "traditional kitchen", "elements": [ "warm lantern light", "wooden surfaces", "brass and copper utensils" ], "lighting": "warm ambient lighting with soft highlights" }, "main_subjects": [ "rolled white dessert dough", "cream filling spilling out", "golden syrup stream" ], "visible_ingredients": [ "white cheese dough", "cream filling", "pistachios", "sugar syrup" ], "motion_elements": [ "syrup dripping vertically", "pistachio crumbs falling" ], "text_labels": [ "White Cheese Dough – soft outer layer made from cheese and semolina", "Cream Filling – creamy filling inside the roll", "Pistachios – crushed pistachios sprinkled over and inside the rolls" ] }

查看 API 代码
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": "{ \"global_settings\": { \"resolution\": \"8K ultra high definition\", \"aspect_ratio\": \"3:4\", \"camera_style\": \"studio food photography with cinematic lighting\", \"depth_of_field\": \"shallow depth of field, sharp subject, soft background\", \"lighting\": \"soft directional key light, subtle rim light, controlled highlights\", \"style\": \"hyper-realistic food illustration with editorial infographic overlays\", \"composition_rules\": [ \"no zoom\", \"no crop\", \"center-weighted vertical composition\", \"floating elements frozen in motion\" ], \"text_design\": { \"ingredient_name_color\": \"metallic gold\", \"ingredient_description_color\": \"pure white\", \"font_style\": \"elegant serif for titles, clean sans-serif for descriptions\", \"indicator_lines\": \"long, thin, smooth golden lines with rounded corners\" } }, \"module_1_image_1_style\": { \"scene_description\": \"A vertical stack of assorted cake slices floating above a white ceramic plate against a soft pink gradient background.\", \"background\": { \"color\": \"soft pastel pink\", \"texture\": \"smooth gradient\", \"lighting\": \"even, studio-lit, no harsh shadows\" }, \"main_subjects\": [ \"multiple layered sponge cake slices\", \"white whipped cream layers\", \"raspberry cream layer\", \"chocolate cream topping\" ], \"visible_ingredients\": [ \"vanilla sponge cake\", \"whipped cream\", \"raspberries\", \"blueberries\", \"strawberries\", \"macarons (vanilla and chocolate)\", \"chocolate bar pieces\", \"mint leaves\", \"small nut fragments\" ], \"motion_elements\": [ \"floating fruits\", \"floating macarons\", \"crumbs suspended in air\" ], \"text_labels\": [ \"Vanilla Cake – soft, fluffy sponge cake layered with white cream filling\", \"Macaron – creamy filling between almond meringue shells\", \"Raspberries – juicy, fresh raspberries\", \"Chocolate Bar – chunks of smooth milk chocolate\", \"Raspberry Cream – soft sponge cake layered with creamy, fruity raspberry cream\" ] }, \"module_2_image_2_style\": { \"scene_description\": \"Rolled Syrian dessert presented vertically with syrup pouring from above, placed in a warm, rustic kitchen environment.\", \"background\": { \"environment\": \"traditional kitchen\", \"elements\": [ \"warm lantern light\", \"wooden surfaces\", \"brass and copper utensils\" ], \"lighting\": \"warm ambient lighting with soft highlights\" }, \"main_subjects\": [ \"rolled white dessert dough\", \"cream filling spilling out\", \"golden syrup stream\" ], \"visible_ingredients\": [ \"white cheese dough\", \"cream filling\", \"pistachios\", \"sugar syrup\" ], \"motion_elements\": [ \"syrup dripping vertically\", \"pistachio crumbs falling\" ], \"text_labels\": [ \"White Cheese Dough – soft outer layer made from cheese and semolina\", \"Cream Filling – creamy filling inside the roll\", \"Pistachios – crushed pistachios sprinkled over and inside the rolls\" ] }"
}
JSON
常见问题

使用这个 gpt-image-2 prompt

如何安全复制这个 prompt?

使用完整 prompt 区块旁边的复制按钮。它只复制 prompt 文本,不包含页面标签,所以可以直接粘贴到 agent 指令、JSON 请求体或你自己的 prompt 库。

为什么详情页会显示参数?

有些 prompt 采集时带有画幅、时长或声音控制等生成设置。存在参数时,页面会单独列出,方便你同时复用 prompt 文本和结构化设置。

应该调用哪个 endpoint?

使用 API 代码块里显示的 endpoint 路径。这个路径由 prompt 的 RunAPI 服务和 endpoint 名称生成,并渲染成 curl 与 SDK 示例使用的公开 API URL。

可以不用代码,直接在 agent 里用吗?

可以。在标签切换器里选择 Claude Code、Codex、Cursor 或 Windsurf,安装 RunAPI MCP Server,然后粘贴生成好的指令。指令会包含完整 prompt 文本。