POST
/
models
/
v2
/
almanach
/
camembert-base

Fill Mask

The fill-mask task uses a masked language model to predict masked tokens in a given text.

Example

Request

curl --location 'https://api.bytez.com/models/v2/almanach/camembert-base' \
--header 'Authorization: Key your-api-key-here' \
--header 'Content-Type: application/json' \
--data '{
    "text": "Hello <mask>"
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
text
string
required

Input text with a <mask> token to be predicted.

Response

200 - application/json
output
object[]