POST
/
models
/
v2
/
airesearch
/
xlm-roberta-base-finetune-qa
curl --request POST \
  --url https://api.bytez.com/models/v2/airesearch/xlm-roberta-base-finetune-qa \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "What'\''s my name?",
  "context": "My name is Ron"
}'
{
  "output": "Ron"
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
question
string
required

The question to answer.

Example:

"What's my name?"

context
string
required

The context providing the answer.

Example:

"My name is Ron"

Response

200 - application/json
Successful response with the answer.
output
string

The answer to the question.