LeMUR
Run a task using LeMUR
Use the LeMUR task endpoint to input your own LLM prompt.
POST
/
lemur
/
v3
/
generate
/
task
Copy
curl --request POST \
--url https://api.assemblyai.com/lemur/v3/generate/task \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transcript_ids": [
"64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"
],
"context": "This is an interview about wildfires.",
"final_model": "anthropic/claude-3-5-sonnet",
"temperature": 0,
"max_output_size": 3000,
"prompt": "List all the locations affected by wildfires."
}'
Copy
{
"request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
"usage": {
"input_tokens": 27,
"output_tokens": 3
},
"response": "Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n"
}
Authorizations
Body
application/json
Params to run the task
The body is of type object
.
Response
200
application/json
LeMUR task response
The response is of type object
.
Copy
curl --request POST \
--url https://api.assemblyai.com/lemur/v3/generate/task \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transcript_ids": [
"64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"
],
"context": "This is an interview about wildfires.",
"final_model": "anthropic/claude-3-5-sonnet",
"temperature": 0,
"max_output_size": 3000,
"prompt": "List all the locations affected by wildfires."
}'
Copy
{
"request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
"usage": {
"input_tokens": 27,
"output_tokens": 3
},
"response": "Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n"
}
Assistant
Responses are generated using AI and may contain mistakes.