Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text "SPAIN" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: "Visit" main: "SPAIN" small bottom line: "FEEL THE PASSION" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text "MURPHY AI" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text "BRAZIL" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: "Visit" main: "BRAZIL" small bottom line: "FEEL THE ENERGY" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text "MURPHY AI" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text "DUBAI" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: "Visit" main: "DUBAI" small bottom line: "FEEL THE POWER" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text "MURPHY AI" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square
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:生成一张图像:"Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text "SPAIN" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: "Visit" main: "SPAIN" small bottom line: "FEEL THE PASSION" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text "MURPHY AI" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text "BRAZIL" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: "Visit" main: "BRAZIL" small bottom line: "FEEL THE ENERGY" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text "MURPHY AI" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text "DUBAI" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: "Visit" main: "DUBAI" small bottom line: "FEEL THE POWER" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text "MURPHY AI" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text "SPAIN" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: "Visit" main: "SPAIN" small bottom line: "FEEL THE PASSION" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text "MURPHY AI" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text "BRAZIL" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: "Visit" main: "BRAZIL" small bottom line: "FEEL THE ENERGY" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text "MURPHY AI" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text "DUBAI" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: "Visit" main: "DUBAI" small bottom line: "FEEL THE POWER" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text "MURPHY AI" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text "SPAIN" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: "Visit" main: "SPAIN" small bottom line: "FEEL THE PASSION" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text "MURPHY AI" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text "BRAZIL" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: "Visit" main: "BRAZIL" small bottom line: "FEEL THE ENERGY" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text "MURPHY AI" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text "DUBAI" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: "Visit" main: "DUBAI" small bottom line: "FEEL THE POWER" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text "MURPHY AI" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text "SPAIN" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: "Visit" main: "SPAIN" small bottom line: "FEEL THE PASSION" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text "MURPHY AI" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text "BRAZIL" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: "Visit" main: "BRAZIL" small bottom line: "FEEL THE ENERGY" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text "MURPHY AI" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text "DUBAI" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: "Visit" main: "DUBAI" small bottom line: "FEEL THE POWER" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text "MURPHY AI" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
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": "Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text \"SPAIN\" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: \"Visit\" main: \"SPAIN\" small bottom line: \"FEEL THE PASSION\" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text \"BRAZIL\" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: \"Visit\" main: \"BRAZIL\" small bottom line: \"FEEL THE ENERGY\" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text \"DUBAI\" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: \"Visit\" main: \"DUBAI\" small bottom line: \"FEEL THE POWER\" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
}
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": "Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text \"SPAIN\" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: \"Visit\" main: \"SPAIN\" small bottom line: \"FEEL THE PASSION\" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text \"BRAZIL\" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: \"Visit\" main: \"BRAZIL\" small bottom line: \"FEEL THE ENERGY\" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text \"DUBAI\" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: \"Visit\" main: \"DUBAI\" small bottom line: \"FEEL THE POWER\" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
});
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: "Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text \"SPAIN\" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: \"Visit\" main: \"SPAIN\" small bottom line: \"FEEL THE PASSION\" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text \"BRAZIL\" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: \"Visit\" main: \"BRAZIL\" small bottom line: \"FEEL THE ENERGY\" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text \"DUBAI\" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: \"Visit\" main: \"DUBAI\" small bottom line: \"FEEL THE POWER\" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text \"MURPHY AI\" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"Cinematic luxury tourism poster, Spain, iconic view of Sagrada Família in Barcelona rising prominently above the city, detailed organic architecture with surrounding urban grid softly visible, clean and centered composition camera angle: elevated wide perspective capturing full structure symmetry with city depth behind lighting: warm golden hour sunlight casting soft highlights across stone textures, gentle shadows, glowing atmosphere typography: elegant high-fashion editorial serif font, large refined text \\\"SPAIN\\\" integrated across sky and upper architecture, subtly blending with light and structure text hierarchy: small top text: \\\"Visit\\\" main: \\\"SPAIN\\\" small bottom line: \\\"FEEL THE PASSION\\\" environment: clean Barcelona cityscape simplified for clarity, no clutter, focus on architecture color palette: warm gold, sandstone beige, soft blue sky atmosphere: light haze with sun glow enhancing depth and warmth branding: top right minimal text \\\"MURPHY AI\\\" STRICT RULES: — Sagrada Família must be the dominant focal point — maintain elegance and warmth — avoid overcrowded city details render quality: ultra photorealistic, cinematic warm Mediterranean grade, premium tourism campaign style composition: balanced, symmetrical, editorial luxury layout format: 1:1 square, ultra high resolution Cinematic luxury tourism poster, Brazil, iconic aerial view of Christ the Redeemer statue overlooking Rio de Janeiro with coastline and mountains visible, perfectly centered composition camera angle: elevated aerial perspective behind or slightly above statue, revealing city and ocean depth lighting: warm sunrise or sunset golden light with vibrant yet controlled tones typography: elegant editorial serif font, large refined text \\\"BRAZIL\\\" integrated across sky and horizon, softly blending with clouds text hierarchy: small top text: \\\"Visit\\\" main: \\\"BRAZIL\\\" small bottom line: \\\"FEEL THE ENERGY\\\" environment: lush mountains, coastline, cityscape simplified for clarity color palette: green, blue, gold highlights atmosphere: light haze, soft clouds catching sunlight branding: top right minimal text \\\"MURPHY AI\\\" STRICT RULES: — Christ statue must be clear focal point — avoid over-saturation — keep composition clean render quality: ultra photorealistic, cinematic vibrant grade composition: balanced, iconic, postcard-level framing format: 1:1 square Cinematic luxury tourism poster, United Arab Emirates, iconic centered view of Burj Khalifa dominating Dubai skyline, seen from elevated perspective with surrounding skyscrapers and subtle desert tones camera angle: wide symmetrical aerial framing emphasizing vertical dominance lighting: warm golden sunset light reflecting across glass buildings, soft glow, controlled highlights typography: elegant high-end serif font, large refined text \\\"DUBAI\\\" integrated into sky and skyline, partially blending with architecture text hierarchy: small top text: \\\"Visit\\\" main: \\\"DUBAI\\\" small bottom line: \\\"FEEL THE POWER\\\" environment: ultra modern skyline, clean composition, no clutter color palette: gold, warm amber, deep shadows atmosphere: light haze, glowing skyline diffusion branding: top right minimal text \\\"MURPHY AI\\\" STRICT RULES: — Burj Khalifa must be dominant focal point — clean luxury aesthetic — no distractions render quality: ultra photorealistic, cinematic warm grade composition: symmetrical, powerful, iconic skyline shot format: 1:1 square\"}")
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
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
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
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.
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