Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide 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:生成一张图像:"Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide lens"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide lens"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide lens"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide 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": "Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide 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": "Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide lens"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide lens"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Vast library spiraling upward without a visible ceiling, bookshelves curving inward following impossible non-Euclidean architecture, warm amber light emanating from inside the books themselves rather than any external light fixtures, a small solitary figure reading on the floor in the lower center for scale, warm amber, mahogany, and pale gold tones, atmosphere dense with the weight of accumulated knowledge, shot with ultra-wide 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)
}
Abstract geometric pattern designed for surface printing, overlapping circles forming a grid generating Vesica piscis shapes, deep indigo, terracotta, and cream color palette, flat graphic rendering with zero shadow, mathematically precise edges, dense repeating tile with fractal edge qualities, contemporary textile and wallpaper surface design, vector aesthetic
Surreal photorealistic composite: a Victorian reading room opening through a large ornate doorway directly onto the surface of the Moon, warm lamplight from the room spilling onto grey lunar regolith, Earth's curve visible on the horizon through the doorway, a Victorian-dressed figure standing at the threshold looking out, equal photographic realism on both interior and exterior, lighting continuity across the boundary
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": "Surreal photorealistic composite: a Victorian reading room opening through a large ornate doorway directly onto the surface of the Moon, warm lamplight from the room spilling onto grey lunar regolith, Earth's curve visible on the horizon through the doorway, a Victorian-dressed figure standing at the threshold looking out, equal photographic realism on both interior and exterior, lighting continuity across the boundary"
}
JSON
High-resolution abstract digital painting featuring vivid colors in constant fluid motion, layered textured brush strokes creating depth and movement, inspired by the emotional intensity of Van Gogh's swirling skies merged with the chaotic energy of Jackson Pollock's drip technique, deep blues bleeding into fiery oranges and electric purples, thick impasto texture visible throughout
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": "High-resolution abstract digital painting featuring vivid colors in constant fluid motion, layered textured brush strokes creating depth and movement, inspired by the emotional intensity of Van Gogh's swirling skies merged with the chaotic energy of Jackson Pollock's drip technique, deep blues bleeding into fiery oranges and electric purples, thick impasto texture visible throughout"
}
JSON
Abstract macro of layered peeling paint on an old iron surface revealing geological-like strata — deep cobalt blue outermost layer, then mint green, then cream, then raw rust beneath — layers separating and curling like mountain ranges, extreme close-up where paint becomes landscape, sharp foreground focus falling to softer depth behind, cobalt, mint, cream, and iron rust palette
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": "Abstract macro of layered peeling paint on an old iron surface revealing geological-like strata — deep cobalt blue outermost layer, then mint green, then cream, then raw rust beneath — layers separating and curling like mountain ranges, extreme close-up where paint becomes landscape, sharp foreground focus falling to softer depth behind, cobalt, mint, cream, and iron rust palette"
}
JSON
Abstract color-field painting with photographic quality, warm raw sienna occupying the upper two-thirds meets cool deep teal in the lower third at an imprecise hand-painted edge with a thin blended transition band, canvas texture visible throughout, single small bright cadmium yellow area near left center as the sole contrast, Rothko-influenced simplicity with contemporary color sensitivity
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": "Abstract color-field painting with photographic quality, warm raw sienna occupying the upper two-thirds meets cool deep teal in the lower third at an imprecise hand-painted edge with a thin blended transition band, canvas texture visible throughout, single small bright cadmium yellow area near left center as the sole contrast, Rothko-influenced simplicity with contemporary color sensitivity"
}
JSON
A frozen cosmic rose floating in deep space, the petals glitter with a crystalline shimmer catching starlight, swirling colorful nebulas in the background, 8k unreal engine photorealism quality, ethereal blue and purple lighting, red petals transitioning to ice-blue at the frost-covered tips, nighttime darkness of space, surreal conceptual art
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 frozen cosmic rose floating in deep space, the petals glitter with a crystalline shimmer catching starlight, swirling colorful nebulas in the background, 8k unreal engine photorealism quality, ethereal blue and purple lighting, red petals transitioning to ice-blue at the frost-covered tips, nighttime darkness of space, surreal conceptual art"
}
JSON