model: The model ID of the model you want to useinputs: 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)
Examples
Fill Mask
Examples of fill mask inference with SynapsAI Cloud
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:
Here is an example with multiple inputs and specific targets:
For deeper insights into the fill mask endpoint, see our API reference.

