資源
- Overview
- 快速入門
- Claude 3 模型卡
- Claude 3.7 系統卡
- 系統狀態
- Anthropic 課程
- 提示詞庫
- 提示詞庫
- 宇宙鍵盤
- 企業預見者
- 網站精靈
- Excel 公式專家
- Google Apps 腳本編寫者
- Python 除錯專家
- 時間旅行顧問
- 故事創作夥伴
- 引用您的來源
- SQL 巫師
- 解夢師
- 雙關語大師
- 料理創作者
- 混合詞詩人
- 幽默助手哈爾
- LaTeX 專家
- 情緒色彩轉換器
- Git 精通
- 比喻達人
- 道德困境導航器
- 會議記錄員
- 成語解析器
- 程式碼顧問
- 函數製造者
- 新詞創造者
- CSV 轉換器
- 表情符號編碼器
- 文章潤色師
- 觀點權衡者
- 知識問答生成器
- 正念導師
- 二年級簡化器
- VR 健身創新者
- PII 淨化器
- 備忘錄大師
- 職業顧問
- 評分大師
- 繞口令
- 面試問題設計師
- 文法精靈
- 猜謎遊戲
- 程式碼解釋器
- 外星人類學家
- 資料整理器
- 品牌建構者
- 效率估算器
- 評論分類器
- 方向解碼器
- 激勵繆斯
- 電子郵件提取器
- 專業審核員
- 課程計劃制定者
- 蘇格拉底式智者
- 頭韻煉金術師
- 未來主義時尚顧問
- 多語言超能力
- 產品命名專家
- 哲學沉思
- 電子表格巫師
- 科幻場景模擬器
- 自適應編輯器
- 巴別塔的廣播
- 推文語調偵測器
- 機場代碼分析師
提示詞庫
情緒色彩轉換器
將情緒的文字描述轉換為相應的十六進制顏色代碼。
將此提示複製到我們的開發者控制台中,親自試試看!
內容 | |
---|---|
System | 你的任務是將提供的情緒或感受的文字描述轉換為視覺上代表該情緒的十六進制顏色代碼。使用色彩心理學原理和常見聯想來確定最適合給定情緒的顏色。如果文字描述不清楚、模糊或沒有提供足夠的信息來確定合適的顏色,請回應「無法為給定的情緒確定十六進制顏色代碼。」 |
User | 一種熱情、強烈且火熱的情感,充滿愛與慾望。 |
範例輸出
# FF1744
這個十六進制顏色代碼代表一種鮮豔、大膽的紅色調。紅色通常與熱情、強烈、愛和慾望相關聯。這裡選擇的特定色調是一種火熱、充滿活力的紅色,捕捉了所描述情緒的熱度和熱情。紅色被認為能刺激興奮和熱情的感覺,使其成為代表這種情緒的適當選擇。
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=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
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=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"]
});
const msg = await anthropic.messages.create({
model: "claude-opus-4-20250514",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicBedrock
# See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
# for authentication options
client = AnthropicBedrock()
message = client.messages.create(
model="anthropic.claude-opus-4-20250514-v1:0",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk";
// See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
// for authentication options
const client = new AnthropicBedrock();
const msg = await client.messages.create({
model: "anthropic.claude-opus-4-20250514-v1:0",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-3-7-sonnet-v1@20250219",
max_tokens=500,
temperature=0.5,
system="Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
)
print(message.content)
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
// Reads from the `CLOUD_ML_REGION` & `ANTHROPIC_VERTEX_PROJECT_ID` environment variables.
// Additionally goes through the standard `google-auth-library` flow.
const client = new AnthropicVertex();
const msg = await client.messages.create({
model: "claude-3-7-sonnet-v1@20250219",
max_tokens: 500,
temperature: 0.5,
system: "Your task is to take the provided text description of a mood or emotion and generate a HEX color code that visually represents that mood. Use color psychology principles and common associations to determine the most appropriate color for the given mood. If the text description is unclear, ambiguous, or does not provide enough information to determine a suitable color, respond with \"Unable to determine a HEX color code for the given mood.\"",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A passionate, intense, and fiery emotion, full of love and desire."
}
]
}
]
});
console.log(msg);