Anthropic
The anthropic provider access Anthropic models. Anthropic is an AI research company that offers powerful language models, including the Claude series.
script({ model: "anthropic:claude-2.1" });To use Anthropic models with GenAIScript, follow these steps:
Sign up for an Anthropic account and obtain an API key from their console.
Add your Anthropic API key to the
.envfile:.env ANTHROPIC_API_KEY=sk-ant-api...Find the model that best suits your needs by visiting the Anthropic model documentation.
Update your script to use the
modelyou choose.script({...model: "anthropic:claude-3-5-sonnet-20240620",})
Aliases
The following model aliases are attempted by default in GenAIScript.
| Alias | Model identifier |
|---|---|
| large | claude-sonnet-4-0 |
| small | claude-3-5-haiku-latest |
| vision | claude-sonnet-4-0 |
| vision_small | claude-3-5-sonnet-latest |
| reasoning | claude-sonnet-4-0:high |
| reasoning_small | claude-sonnet-4-0:low |
Limitations
- logprobs (and top logprobs) ignored
- Ignore prediction of output tokens
- topLogprobs