1. Usage
In the FIM (Fill In the Middle) completion task, users input the prefix and suffix content they want to keep, and the model generates the missing part based on these prompts. This completion method is common in applications such as code auto-completion and text middle generation.2. Data Format
In the chat/completions interface, simply set themodel id to the model id on the Model Gallery, which is available in the top right corner of the module card.
3. Example
3.1 Using FIM Completion Based on OpenAI’s chat.completions Interface:
3.2 Completion Using FIM Based on OpenAI’s Completions API:
Last updated: 2026-06-01