curl --request POST \ --url https://api.bytez.com/models/v2/deepset/roberta-base-squad2 \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "question": "Who's the lead character?", "context": "Ron, the hero, looked at Greybeard and smote him asunder"}EOF
Answer questions based on a given context for applications like customer support, information retrieval, and educational tools
POST
/
models
/
v2
/
deepset
/
roberta-base-squad2
question-answering
Copy
curl --request POST \ --url https://api.bytez.com/models/v2/deepset/roberta-base-squad2 \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "question": "Who's the lead character?", "context": "Ron, the hero, looked at Greybeard and smote him asunder"}EOF