Open main menu
Article
Quizzes
Tools
EN
Article
Quizzes
Tools
All quizzes
/
AI APIs & SDKs
/
How do you...
How do you specify which Claude model to use in a Messages API request?
Set the model parameter to the exact model ID string, such as "claude-opus-4-5"
Set the model parameter to a numeric version like 3 or 4
Set the tier parameter to opus, sonnet, or haiku
The API automatically selects the best model based on request complexity
Submit answers