you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 3 months ago
import anthropic

client = anthropic.Anthropic()

message = client.messages.create(
    model='claude-fable-5',
    max_tokens=128000,
    messages=[
        {'role': 'user', 'content': 'say "Hello World"'}
    ],
)

print(message.content[0].text)
  • source
  • parent