POST
/
lemur
/
v3
/
generate
/
question-answer
curl --request POST \
  --url https://api.assemblyai.com/lemur/v3/generate/question-answer \
  --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,
  "questions": [
    {
      "question": "Where are there wildfires?",
      "answer_format": "List of countries in ISO 3166-1 alpha-2 format",
      "answer_options": [
        "US",
        "CA"
      ]
    },
    {
      "question": "Is global warming affecting wildfires?",
      "answer_options": [
        "yes",
        "no"
      ]
    }
  ]
}'
{
  "request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
  "usage": {
    "input_tokens": 27,
    "output_tokens": 3
  },
  "response": [
    {
      "answer": "CA, US",
      "question": "Where are there wildfires?"
    },
    {
      "answer": "yes",
      "question": "Is global warming affecting wildfires?"
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json

Params to ask questions about the transcripts

The body is of type object.

Response

200
application/json

LeMUR question & answer response

The response is of type object.