Skip to main content

Anthropic Models

To use a language model hosted on Anthropic, specify anthropic in the from field.

To use a specific model, include its model ID in the from field (see example below). If not specified, the default model is "claude-3-5-sonnet-latest".

The following parameters are specific to Anthropic models:

ParameterDescriptionDefault
anthropic_api_keyThe Anthropic API key.-
anthropic_auth_tokenThe Anthropic auth token.-
endpointThe Anthropic API base endpoint.https://api.anthropic.com/v1

Example spicepod.yml configuration:

models:
- from: anthropic:claude-3-5-sonnet-latest
name: claude_3_5_sonnet
params:
anthropic_api_key: ${ secrets:SPICE_ANTHROPIC_API_KEY }

See Anthropic Model Names for a list of supported model names.