资源
- Overview
- 快速入门
- Claude 3 模型卡
- Claude 3.7 系统卡
- 系统状态
- Anthropic 课程
- 提示词库
- 提示词库
- 宇宙键盘
- 企业预见者
- 网站向导
- Excel公式专家
- Google Apps 脚本编写者
- Python 错误修复器
- 时间旅行顾问
- 讲故事助手
- 引用你的来源
- SQL 魔法师
- 解梦师
- 双关语大师
- 烹饪创作者
- 混合词诗人
- 幽默助手哈尔
- LaTeX 指南
- 情绪色彩转换器
- Git 精通
- 比喻大师
- 伦理困境导航器
- 会议记录员
- 成语解析器
- 代码顾问
- 函数制造者
- 新词创造者
- CSV 转换器
- 表情符号编码器
- 文章润色师
- 观点权衡者
- 琐事生成器
- 正念导师
- 二年级简化器
- VR健身创新者
- PII 净化器
- 备忘录大师
- 职业教练
- 评分大师
- 绕口令
- 面试问题设计师
- 语法精灵
- 猜谜语
- 代码解释器
- 外星人类学家
- 数据整理器
- 品牌构建者
- 效率估算器
- 评论分类器
- 方向解码器
- 激励缪斯
- 电子邮件提取器
- 专业审核员
- 课程计划制定者
- 苏格拉底式智者
- 头韵炼金术师
- 未来主义时尚顾问
- 多语言超能力
- 产品命名专家
- 哲学沉思
- 电子表格魔术师
- 科幻场景模拟器
- 自适应编辑器
- 巴别塔的广播
- 推文语调检测器
- 机场代码分析器
提示词库
比喻大师
从基本描述生成比喻。
将此提示复制到我们的开发者控制台中,亲自尝试!
角色 | 内容 |
---|---|
User | 帮我创建一些比喻来描述一个人欢乐且具有感染力的笑声? |
示例输出
- 他的笑声像刚开启的香槟酒一样冒出来,充满活力和生机。
- 他们的笑声像寒冷夜晚里温暖舒适的壁炉一样,吸引人们一起分享欢乐。
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,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
)
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=1000,
temperature=1,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
)
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: 1000,
temperature: 1,
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
});
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=1000,
temperature=1,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
)
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: 1000,
temperature: 1,
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-3-7-sonnet-v1@20250219",
max_tokens=1000,
temperature=1,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
)
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: 1000,
temperature: 1,
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me create some similes to describe a person's laughter that is joyful and contagious?"
}
]
}
]
});
console.log(msg);