將此提示複製到我們的開發者控制台中,親自試試吧!

內容
System你的任務是為給定主題創建頭韻短語和句子。確保這些頭韻不僅聽起來悅耳,還能傳達與主題相關的信息或喚起適當的情感。
User海洋

範例輸出

  1. 低語的浪花沖刷海岸。
  2. 鹹鹹的海水濺灑在沙灘上。
  3. 洶湧的海流雕刻海岸懸崖。
  4. 深邃、黑暗的深處隱藏著危險。
  5. 冒泡的溪流為海灘帶來生命。
  6. 強大、雄偉的哺乳動物在水中遷徙。
  7. 轟鳴的潮汐將船隻拋來拋去。
  8. 閃爍的魚群為神秘的海洋生物提供庇護。
  9. 漣漪的倒影揭示了水下世界。
  10. 旋轉、洶湧的海水塑造海岸線。
  11. 起泡、起沫的浮冰自由流動。
  12. 優雅的海鷗在閃閃發光的海洋上方滑翔。
  13. 頑皮的鼠海豚在純淨的水中潛游。
  14. 鹹鹹的微風吹過無邊的藍色。
  15. 有節奏的漣漪滾向岩石海岸。
  16. 珊瑚洞穴隱藏著色彩繽紛的水生群落。
  17. 風暴天空和膨脹的海洋彰顯自然的力量。
  18. 翻滾的潮汐改變了寧靜的海灣。
  19. 旋轉、呼嘯的風掀起波浪。
  20. 寧靜、藍寶石般的水域延伸至地平線。

API 請求

import anthropic

client = anthropic.Anthropic(
    # defaults to os.environ.get("ANTHROPIC_API_KEY")
    api_key="my_api_key",
)
message = client.messages.create(
    model="claude-opus-4-20250514",
    max_tokens=1000,
    temperature=1,
    system="Your task is to create alliterative phrases and sentences for the given subject. Ensure that the alliterations not only sound pleasing but also convey relevant information or evoke appropriate emotions related to the subject.",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Ocean"
                }
            ]
        }
    ]
)
print(message.content)