https://retellai.com/?utm_source=discord&utm_medium=seo logo
where to find llm id
# ❓・ai-evy-support
s
@AI Evy where to find llm id?
a
Thanks for tagging me @scalingsocialsmaaz. I'll look through relevant sources and get back to you shortly.
### Answer You can find the LLM ID in several ways: 1. List all LLMs to get their IDs: [(1) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const llmResponses = await client.llm.list() ;
console.log(llmResponses) ;
2. The LLM ID appears in API responses: [(2) ]() - When you retrieve an LLM, the response includes the
llm_id
field - When you update an LLM, the response includes the
llm_id
field [(3) ]() - When you list LLMs, each LLM object includes the
llm_id
field [(1) ]() 3. Example LLM ID format: [(2) ]() The LLM ID is a unique string like
"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
You can also access the LLM ID programmatically after API calls:
Copy code
javascript
console.log(llmResponse.llm_id) ;
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] List Retell LLMs](https://docs.retellai.com/api-references/list-retell-llms) [[2] Get Retell LLM](https://docs.retellai.com/api-references/get-retell-llm) [[3] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) ​