Skip to main content
Our fill mask endpoint predicts masked tokens in text sequences, similar to BERT-style masked language modeling. Here is an example of fill mask: Parameters:
  • model: The model ID of the model you want to use
  • inputs: The text sequence(s) with masked tokens (typically using <mask> tokens)
  • targets: Specific target tokens to consider (optional)
  • top_k: The number of top predictions to return (default: 5)
Here is an example with multiple inputs and specific targets:
For deeper insights into the fill mask endpoint, see our API reference.