---
title: "question-answering"
method: POST
path: "/models/v2/deepset/roberta-base-squad2"
---

# question-answering

`POST /models/v2/deepset/roberta-base-squad2`

Answer questions based on a given context for applications like customer support, information retrieval, and educational tools

## Request body

- object
  - `question` string, required
  - `context` string, required

## Response `200`

Successful question-answering response.

- object
  - `error` string, nullable, required — Null on success; otherwise an error message.
  - `output` object, required — Successful response with the answer, score, and start and end indices

## Other responses

- `401` — Auth error - check your api key and how you're sending it.
- `429` — Too Many Requests – You have hit the rate limit.

---

[API](https://skmtc.net/bytez/apis/closed-source-model-api.md) · [All operations](https://skmtc.net/bytez/apis/closed-source-model-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bytez/closed-source-model-api/versions/d64c9c733afe/schema)
