Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard
/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:生成一张图像:"Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
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": "Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"prompt": "Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Sci-fi soldier in a powered exosuit with modular armor panels showing battle damage and visible field repairs, amber HUD visor on the helmet, arm-mounted compact energy weapon, matte olive drab and dark grey coloring with orange safety accents, neutral standing pose on white background, hard-surface industrial design language, AAA game art production standard\"}")
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)
}
A mystical floating island in twilight sky with ancient ruins, luminescent purple vegetation, crystalline waterfalls cascading into clouds below, two moons on the horizon, aurora borealis, magical particles floating in air, color palette of deep purples, teals, and gold, painterly concept art style
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": "A mystical floating island in twilight sky with ancient ruins, luminescent purple vegetation, crystalline waterfalls cascading into clouds below, two moons on the horizon, aurora borealis, magical particles floating in air, color palette of deep purples, teals, and gold, painterly concept art style"
}
JSON
Cyberpunk street market at night with neon signs in Japanese and Chinese scripts, wet pavement reflections creating pools of colored light, steam rising from food stalls, crowds carrying holographic umbrellas, megastructures towering in background, flying vehicles in distance, Blade Runner-inspired atmosphere, cinematic digital painting
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": "Cyberpunk street market at night with neon signs in Japanese and Chinese scripts, wet pavement reflections creating pools of colored light, steam rising from food stalls, crowds carrying holographic umbrellas, megastructures towering in background, flying vehicles in distance, Blade Runner-inspired atmosphere, cinematic digital painting"
}
JSON
epic fantasy wizard casting spell in ancient library, detailed ornate robes with glowing mystical runes, magical energy swirling around hands, towering bookshelves fading into shadows, dramatic volumetric lighting, oil painting style, highly detailed, 8k, trending on artstation, by greg rutkowski and alphonse mucha, cinematic composition
Wide cinematic shot of a rain-soaked city intersection at 3 AM, sodium vapor lights reflecting off wet asphalt, single yellow taxi waiting at a red light, steam rising from a foreground subway grate, anamorphic lens flare, teal shadows and amber highlights, crime drama aesthetic, shot on Arri Alexa with 32mm anamorphic lens
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": "Wide cinematic shot of a rain-soaked city intersection at 3 AM, sodium vapor lights reflecting off wet asphalt, single yellow taxi waiting at a red light, steam rising from a foreground subway grate, anamorphic lens flare, teal shadows and amber highlights, crime drama aesthetic, shot on Arri Alexa with 32mm anamorphic lens"
}
JSON
Private investigator's dim office, Venetian blind shadows falling across a cluttered desk, single desk lamp as the only key light, vintage typewriter and whiskey glass, cigarette smoke curling through the lamplight beam, deep shadows in corners, black and white grade with just a hint of warm amber from the lamp, 1940s furnishings, 35mm lens
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": "Private investigator's dim office, Venetian blind shadows falling across a cluttered desk, single desk lamp as the only key light, vintage typewriter and whiskey glass, cigarette smoke curling through the lamplight beam, deep shadows in corners, black and white grade with just a hint of warm amber from the lamp, 1940s furnishings, 35mm lens"
}
JSON
Solitary figure in a long coat walking away down a narrow alley in a dense Asian metropolis at night, overlapping neon signs in Japanese and Chinese characters, rain reflecting pink, cyan, and red neon on black asphalt, kitchen steam drifting from doorways, slight motion blur on the figure, crushed blacks and saturated neon highlights
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": "Solitary figure in a long coat walking away down a narrow alley in a dense Asian metropolis at night, overlapping neon signs in Japanese and Chinese characters, rain reflecting pink, cyan, and red neon on black asphalt, kitchen steam drifting from doorways, slight motion blur on the figure, crushed blacks and saturated neon highlights"
}
JSON