generate
Generate
Generate text from a prompt using the named model.
The model path segment uses the SIE-safe id (double-underscore separator, e.g. Qwen__Qwen3-4B-Instruct). HuggingFace-style slashes are rejected with 400 to keep parity with the gateway contract.
post/v1/generate/{model}
Path parameters
modelstring required
Headers
X-SIE-MACHINE-PROFILEstring nullable
Request body
Example request
{
"max_new_tokens": 64,
"prompt": "Write one sentence about vector search.",
"stream": false,
"temperature": 0.7,
"top_p": 0.9
}Response
Generated text, or a Server-Sent Event stream when stream is true