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
/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:生成一张图像:"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"
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 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"
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 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"
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 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"
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
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToImage.run({
"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"
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_image.run(
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"
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"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\"}")
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
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
Product photography of a luxury stainless steel bracelet watch positioned at a slight angle on pure white background, shot with 85mm lens at f/2.8, soft studio lighting with controlled specular highlights on the brushed metal surfaces, visible metal texture and precision craftsmanship, sharp focus, color accurate, high resolution, commercial grade product photography, 8k detail
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": "Product photography of a luxury stainless steel bracelet watch positioned at a slight angle on pure white background, shot with 85mm lens at f/2.8, soft studio lighting with controlled specular highlights on the brushed metal surfaces, visible metal texture and precision craftsmanship, sharp focus, color accurate, high resolution, commercial grade product photography, 8k detail"
}
JSON