Text Rendering Control Template and Example Prompt

Text Rendering Control Template and Example Prompt

翻譯: Prompt

{ "scene": "minimalist tech poster with gradient background", "text_elements": [ { "text": "AI Revolution 2025", "position": "center, upper third", "font_style": "bold, futuristic sans-serif, glowing effect", "size": "large headline" }, { "text": "The future is now", "position": "center, lower third", "font_style": "elegant script, smaller subtitle" } ] }

翻譯: Runs on 20 models

  • Flux
  • Flux 2
  • Flux Kontext
  • GPT-4o Image
  • GPT Image
  • GPT Image 2
  • GPT Image 2.5
  • GPT Image 2.6
  • Grok Imagine
  • Ideogram V3
  • Imagen 4
  • Kling
  • 翻譯: +8 more

這則提示詞的輸出

Split-Page Coffee Shop Travel Journal 未指定 gpt-image-2
Cute Chibi Characters in a Sweet Playful Moment 未指定 gpt-image-2
Underground Train Yard Clash Anime Development Board 未指定 gpt-image-2
Realistic Group Selfie with Smartphone Flash Effect 未指定 nano-banana-pro
Exploded-View Structural Cutaway for Food Photography 未指定 nano-banana-pro
Four Seasons Portrait Collage 未指定 nano-banana-pro

翻譯: Run this prompt with the API

翻譯: The request below sends this prompt, with its default values filled in, to the first model it runs on. Swap the model name for any other model listed above.

翻譯: Prompt API docs
/api/v1/nano_banana/text_to_image
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-pro",
  "prompt": "{\n  \"scene\": \"minimalist tech poster with gradient background\",\n  \"text_elements\": [\n    {\n      \"text\": \"AI Revolution 2025\",\n      \"position\": \"center, upper third\",\n      \"font_style\": \"bold, futuristic sans-serif, glowing effect\",\n      \"size\": \"large headline\"\n    },\n    {\n      \"text\": \"The future is now\",\n      \"position\": \"center, lower third\",\n      \"font_style\": \"elegant script, smaller subtitle\"\n    }\n  ]\n}"
}
JSON

翻譯: Try a prompt

預估: $0.04 / 張圖片

請登入以使用 RunAPI 生成。

請登入以生成

登入後,即可使用您可用的語言模型開始生成。