Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image
/api/v1/runapi/text_to_image
运行信息
模型
提供方
Runapi
服务
Runapi
Endpoint
Text To Image
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一张图像:"Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
curl -X POST https://runapi.ai/api/v1/runapi/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"prompt": "Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"prompt": "Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Retro 80s sci-fi movie poster, neon typography in hot pink and electric blue, bright saturated colors, grain texture, vaporwave aesthetic, synthwave sunset gradient in background, illustrated central layout with a chrome robot silhouette, palm trees flanking the sides, scan lines across the image\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/runapi/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)
}
Modern pencil illustration of a vintage travel poster for the Amalfi Coast, Italy. Classic 1960s white convertible car on a curved seaside road, deep blue Mediterranean sea with small white sailboats, pastel-colored hillside village cascading down the cliff, warm golden sunlight, retro 1950s tourism poster style, subtle screen print texture with slight color misregistration
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": "Modern pencil illustration of a vintage travel poster for the Amalfi Coast, Italy. Classic 1960s white convertible car on a curved seaside road, deep blue Mediterranean sea with small white sailboats, pastel-colored hillside village cascading down the cliff, warm golden sunlight, retro 1950s tourism poster style, subtle screen print texture with slight color misregistration"
}
JSON
Realistic front page of a vintage newspaper with cinematic black-and-white aesthetic. Bold sans-serif headline across the top. Multiple columns of small justified text. Fictitious publication name, date, and issue number in the masthead. Decorative horizontal rules between sections. Fine aged paper texture with visible grain, subtle ink imperfections, and slight yellowing. 4:5 aspect ratio.
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": "Realistic front page of a vintage newspaper with cinematic black-and-white aesthetic. Bold sans-serif headline across the top. Multiple columns of small justified text. Fictitious publication name, date, and issue number in the masthead. Decorative horizontal rules between sections. Fine aged paper texture with visible grain, subtle ink imperfections, and slight yellowing. 4:5 aspect ratio."
}
JSON
pixel art, 16-bit retro game style, warrior knight character sprite with sword and shield, standing pose, clean pixel borders, limited color palette of 16 colors, inspired by classic SNES RPG games, game asset, transparent background, 32x32 pixel grid visible