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
/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:生成一张图像:"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"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 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"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 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"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 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"
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
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"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"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
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"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"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\"}")
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
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
Colossal space station ring structure orbiting above an amber and rust-colored gas giant, lit by a distant star from the left casting sharp shadows on the lower half, small maintenance shuttles visible for scale, dense starfield background, photorealistic hard science fiction aesthetic, industrial paneling and modular design, no fantasy elements
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": "Colossal space station ring structure orbiting above an amber and rust-colored gas giant, lit by a distant star from the left casting sharp shadows on the lower half, small maintenance shuttles visible for scale, dense starfield background, photorealistic hard science fiction aesthetic, industrial paneling and modular design, no fantasy elements"
}
JSON