POST
/
lemur
/
v3
/
generate
/
task
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."
}'
{
  "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

Authorization
string
header
required

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.