Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm 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:生成一张图像:"Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm lens"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一张图像:"Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm lens"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一张图像:"Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm lens"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一张图像:"Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm 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": "Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm 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": "Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm lens"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
prompt: "Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm lens"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Matte black wireless over-ear headphones suspended against a pure white background, slightly elevated three-quarter viewing angle, dramatic single directional spotlight from directly above creating sharp highlights on the headband curve and ear cup edges, floating in expansive white negative space with no visible surface, technical product precision, shot with medium format 120mm 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)
}
Premium wireless headphones in matte black, floating against pure white background, soft shadows, studio rim lighting, reflective surfaces catching light, minimal elegant composition, product advertising photography style, ultra high resolution
Minimalist skincare serum in a frosted glass bottle with matte black pump dispenser, centered on polished white Carrara marble surface, single large octabox light from camera left, scattered rose petals and raw quartz crystal as minimal props, white, blush pink, and black color palette, commercial beauty photography standard, shot with 100mm macro 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": "Minimalist skincare serum in a frosted glass bottle with matte black pump dispenser, centered on polished white Carrara marble surface, single large octabox light from camera left, scattered rose petals and raw quartz crystal as minimal props, white, blush pink, and black color palette, commercial beauty photography standard, shot with 100mm macro lens"
}
JSON
Macro shot of a thin gold ring with princess-cut diamond resting on the edge of a white ceramic dish, extreme close-up filling the entire frame, single fiber optic side light creating spectral diamond refractions and rainbow prismatic effects, f/8 aperture for stone clarity with soft background bokeh, gold, white, and specular highlight color palette, luxury jewelry campaign 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": "Macro shot of a thin gold ring with princess-cut diamond resting on the edge of a white ceramic dish, extreme close-up filling the entire frame, single fiber optic side light creating spectral diamond refractions and rainbow prismatic effects, f/8 aperture for stone clarity with soft background bokeh, gold, white, and specular highlight color palette, luxury jewelry campaign standard"
}
JSON
Dark glass craft beer bottle with condensation droplets, placed on a weathered oak bar surface, blurred warm bar interior visible behind, dramatic rim light from behind making condensation glow, overturned bottle cap resting beside it, amber, dark oak, and brass tones, craft brewery advertising aesthetic
A premium product ad for a matte black wireless speaker sitting on a concrete plinth with headline 'SOUND YOU CAN FEEL' in bold white sans-serif type on the left side. Product positioned on the right. Dramatic rim lighting from behind. Clean sharp shadow. Luxury tech campaign style. Sharp product edges visible. No fake brand logo, no watermark. 16:9 aspect ratio.
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "gpt-image-2",
"prompt": "A premium product ad for a matte black wireless speaker sitting on a concrete plinth with headline 'SOUND YOU CAN FEEL' in bold white sans-serif type on the left side. Product positioned on the right. Dramatic rim lighting from behind. Clean sharp shadow. Luxury tech campaign style. Sharp product edges visible. No fake brand logo, no watermark. 16:9 aspect ratio."
}
JSON
Vibrant product-on-moss hero shot for an eco sneaker brand. A single running shoe placed on a bed of fresh green moss, soft morning light filtering through trees above, minimal composition, forest green and cream color palette, natural outdoor product photography, 4:5 aspect ratio, no text.
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": "Vibrant product-on-moss hero shot for an eco sneaker brand. A single running shoe placed on a bed of fresh green moss, soft morning light filtering through trees above, minimal composition, forest green and cream color palette, natural outdoor product photography, 4:5 aspect ratio, no text."
}
JSON