Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field
/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:生成一张图像:"Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
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": "Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"prompt": "Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Full-length editorial fashion photograph of a person walking confidently down a quiet city sidewalk, wearing a structured oversized camel coat over a white crewneck tee and wide-leg dark tailored trousers with clean white leather sneakers, the coat slightly open and moving with the stride, shot from a slightly low angle at approximately chest height, soft overcast natural daylight providing even flattering illumination with no harsh shadows, clean European-style street with muted stone buildings softly blurred in background, pavement slightly wet suggesting recent rain adding subtle reflections, warm neutral color palette, editorial street style fashion photography with natural color grading, shallow depth of field\"}")
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)
}
Female model wearing a structured camel wool coat over cream turtleneck and dark straight-leg trousers, standing in a wide stone European city plaza at golden hour, long shadow stretching behind from low sun, shot at mid-distance with 85mm lens, warm camel, cream, charcoal tones with warm grey stone, lifestyle fashion campaign photography
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": "Female model wearing a structured camel wool coat over cream turtleneck and dark straight-leg trousers, standing in a wide stone European city plaza at golden hour, long shadow stretching behind from low sun, shot at mid-distance with 85mm lens, warm camel, cream, charcoal tones with warm grey stone, lifestyle fashion campaign photography"
}
JSON
Editorial fashion photo of an African-American man in a black leather shearling jacket, leaning into a beige vintage car from the outside. The scene is viewed from inside the car looking out through the passenger window. Sharp shadows, clean directional light, and cinematic framing. A desert landscape stretches out behind him. Moody atmosphere. 35mm film look with subtle grain.
curl -X POST https://runapi.ai/api/v1/imagen_4/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "imagen-4",
"prompt": "Editorial fashion photo of an African-American man in a black leather shearling jacket, leaning into a beige vintage car from the outside. The scene is viewed from inside the car looking out through the passenger window. Sharp shadows, clean directional light, and cinematic framing. A desert landscape stretches out behind him. Moody atmosphere. 35mm film look with subtle grain."
}
JSON
Full-length fashion studio photograph of a person standing in a relaxed natural pose against a seamless warm light gray backdrop, wearing a tailored linen blazer in soft sage green over a cream silk camisole tucked into high-waisted straight-leg ecru trousers, one hand casually in a trouser pocket, clean directional studio lighting with a large softbox from camera left creating soft dimensional shadows, the fabric textures clearly visible showing the linen weave of the blazer and the smooth sheen of the silk camisole, muted sage cream and warm gray color palette, editorial studio fashion photography
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": "Full-length fashion studio photograph of a person standing in a relaxed natural pose against a seamless warm light gray backdrop, wearing a tailored linen blazer in soft sage green over a cream silk camisole tucked into high-waisted straight-leg ecru trousers, one hand casually in a trouser pocket, clean directional studio lighting with a large softbox from camera left creating soft dimensional shadows, the fabric textures clearly visible showing the linen weave of the blazer and the smooth sheen of the silk camisole, muted sage cream and warm gray color palette, editorial studio fashion photography"
}
JSON
Full-length editorial fashion photograph shot during golden hour approximately thirty minutes before sunset, a person walking along a quiet tree-lined path with warm golden sunlight filtering through foliage creating dappled light patterns on the ground, wearing a flowing midi dress in dusty terracotta with subtle pleating that catches the golden light as the fabric moves, paired with flat woven sandals and a woven straw tote bag, golden light illuminating from behind creating a warm rim light around hair and shoulders, long warm shadows, tree-lined path receding into warm bokeh
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": "Full-length editorial fashion photograph shot during golden hour approximately thirty minutes before sunset, a person walking along a quiet tree-lined path with warm golden sunlight filtering through foliage creating dappled light patterns on the ground, wearing a flowing midi dress in dusty terracotta with subtle pleating that catches the golden light as the fabric moves, paired with flat woven sandals and a woven straw tote bag, golden light illuminating from behind creating a warm rim light around hair and shoulders, long warm shadows, tree-lined path receding into warm bokeh"
}
JSON
Full-length editorial fashion photograph taken on a quiet urban street at night, a person standing under a single warm streetlight that creates a pool of amber illumination, wearing a fitted black leather jacket over a dark silk shirt with black slim trousers and polished black boots, the streetlight from above creating dramatic highlights on the leather jacket surface, wet pavement reflects the streetlight and distant neon creating colorful reflections, deep black warm amber and subtle cool blue accent color palette, cinematic confident and slightly mysterious atmosphere, editorial night fashion photography
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": "Full-length editorial fashion photograph taken on a quiet urban street at night, a person standing under a single warm streetlight that creates a pool of amber illumination, wearing a fitted black leather jacket over a dark silk shirt with black slim trousers and polished black boots, the streetlight from above creating dramatic highlights on the leather jacket surface, wet pavement reflects the streetlight and distant neon creating colorful reflections, deep black warm amber and subtle cool blue accent color palette, cinematic confident and slightly mysterious atmosphere, editorial night fashion photography"
}
JSON
Perfectly overhead flat lay photograph of a complete outfit arranged on a clean light linen textured surface. Items include: a folded cotton button-down shirt in light chambray blue, neatly folded dark indigo selvedge denim jeans, a brown leather belt coiled naturally, clean white canvas sneakers, a simple leather watch, and aviator sunglasses. All pieces arranged with intentional spacing in a balanced asymmetrical composition. Large diffused overhead softbox lighting, fabric textures clearly visible showing chambray weave and denim surface, leather showing natural grain detail. Editorial fashion flat lay photography.