このプロンプトを開発者Consoleにコピーして、自分で試してみましょう!

Content
User以下の段落を次の指示に従って書き換えてください:海賊のスタイルで。段落:1758年、スウェーデンの植物学者で動物学者のカール・リンネは、彼の著書「Systema Naturae」で、種の二語命名法(二名法)を発表しました。Canisはラテン語で「犬」を意味する言葉であり、この属の下に、彼は家犬、オオカミ、セグロジャッカルをリストアップしました。

出力例

アホーイ、仲間たち!1758年、あのくそったれ植物学者で動物好きのカール・リンネが「Systema Naturae」という本を出したんだ。そこにはあらゆる生き物に二つの言葉で名前をつける方法(二名法と呼ばれるものだ)が書かれていた。Canisは「犬」を意味する海賊の言葉で、その見出しの下に普通の犬、オオカミ、セグロジャッカルも載せていたんだ。アーッ!古き船長リンネにとっちゃ、そいつらはみんな同じ犬よ。あの本を書いたとき、彼は木の足と肩にオウムを乗せていたかもしれんな!ハハ!今すぐ甲板を掃除しろ、この悪党ども。さもないと、板の上を歩かせるぞ!


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=2000,
    temperature=1,
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Rewrite the following paragraph using the following instructions: in the style of a pirate.  \n  \nParagraph:  \nIn 1758, the Swedish botanist and zoologist Carl Linnaeus published in his Systema Naturae, the two-word naming of species (binomial nomenclature). Canis is the Latin word meaning \"dog\", and under this genus, he listed the domestic dog, the wolf, and the golden jackal."
                }
            ]
        }
    ]
)
print(message.content)