이 프롬프트를 우리 개발자 Console에 복사하여 직접 시도해보세요!
내용
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-sonnet-4-5",
    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)