Choose an LLM
GET /v1/agents/models returns the models available to your account. Each entry includes its provider, average latency, and token prices.
Set the model by ID:
Generation settings
config.model also accepts two optional settings. Set temperature to null to use the model’s default. Set max_output_tokens to null for no output-token limit.
temperatureranges from0to1. Lower values produce more consistent responses; higher values produce more varied responses.max_output_tokenslimits the number of tokens in a response. It ranges from1to4096.
Fallback models
If the model fails before it starts responding, the agent falls back to another model.config.model.fallback_strategy sets which:
{ "type": "auto" }uses Cartesia-managed fallback models. This is the default.{ "type": "explicit", "ids": [...] }uses up to three model IDs fromGET /v1/agents/models, in order.nulldisables fallback.