Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization
/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:生成一张图像:"Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
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": "Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"prompt": "Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Modern minimalist house with floor-to-ceiling glass walls, cantilevered concrete structure, surrounded by dense forest, warm interior lighting contrasting against blue hour exterior sky, infinity pool in foreground with perfect reflections, tilt-shift lens effect, photorealistic architectural visualization\"}")
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)
}
Japandi living room interior, low bleached oak furniture, large linen sofa in off-white and warm grey, handmade ceramic table lamp, polished pale wood floor, full-height sliding glass doors opening to a minimalist gravel garden, very minimal decoration, white, warm grey, pale wood, and deep charcoal color palette, shot with 24mm tilt-shift 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": "Japandi living room interior, low bleached oak furniture, large linen sofa in off-white and warm grey, handmade ceramic table lamp, polished pale wood floor, full-height sliding glass doors opening to a minimalist gravel garden, very minimal decoration, white, warm grey, pale wood, and deep charcoal color palette, shot with 24mm tilt-shift lens"
}
JSON
Aerial view of a near-future city at dawn, dense mixed-use towers with full-height vertical garden terraces, elevated mid-level pedestrian walkways between buildings, car-free ground level with lush tree canopy, wide river reflecting pink and gold sunrise sky, pale concrete, glass, and abundant green, atmospheric morning haze, architectural concept rendering
Photorealistic interior photograph of a Scandinavian living room with double-height ceilings and floor-to-ceiling windows overlooking a pine forest. Light oak flooring, a cream boucle sofa with linen cushions, a round walnut coffee table, and a single dried eucalyptus stem in a ceramic vase. Late afternoon golden hour light casting long soft shadows across the floor. Like an architectural magazine editorial.
curl -X POST https://runapi.ai/api/v1/flux_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "flux-2-pro-text-to-image",
"prompt": "Photorealistic interior photograph of a Scandinavian living room with double-height ceilings and floor-to-ceiling windows overlooking a pine forest. Light oak flooring, a cream boucle sofa with linen cushions, a round walnut coffee table, and a single dried eucalyptus stem in a ceramic vase. Late afternoon golden hour light casting long soft shadows across the floor. Like an architectural magazine editorial."
}
JSON
Interior photograph of a luxury kitchen with floor-to-ceiling dark green marble slab backsplash, matte black cabinetry with integrated handles, and a waterfall-edge marble island. Brass pendant lights hang above the island casting warm pools of light. The countertop has a single cutting board with fresh lemons. Moody, dramatic lighting — like an architectural magazine editorial.
curl -X POST https://runapi.ai/api/v1/flux_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "flux-2-pro-text-to-image",
"prompt": "Interior photograph of a luxury kitchen with floor-to-ceiling dark green marble slab backsplash, matte black cabinetry with integrated handles, and a waterfall-edge marble island. Brass pendant lights hang above the island casting warm pools of light. The countertop has a single cutting board with fresh lemons. Moody, dramatic lighting — like an architectural magazine editorial."
}
JSON
A net-zero university building with an exposed mass timber structure and a living green wall system covering the south facade, visible rainwater collection channels integrated into the reclaimed brick exterior, clear sunny day, architectural photography with precise straight lines, shot from pedestrian eye level showing the full building
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 net-zero university building with an exposed mass timber structure and a living green wall system covering the south facade, visible rainwater collection channels integrated into the reclaimed brick exterior, clear sunny day, architectural photography with precise straight lines, shot from pedestrian eye level showing the full building"
}
JSON
Contemporary community library exterior, single-story building with a folded weathered Corten steel roof creating angular geometric forms, full-height glazing facing a public garden, concrete and vertical timber cladding on solid walls, covered outdoor reading terrace with simple wooden furniture, mature perimeter trees, overcast northern light, rust, concrete, dark glass, and green palette, photorealistic architectural rendering