Model APIs Responses
Generate a model response from text or image inputs. Follows the OpenAI Responses API format, with support for streaming, function and custom tool calls, structured outputs, and reasoning controls.
Authorizations
When using Friendli Suite API, you need to provide a Personal API Key (e.g. flp_XXX) as a Bearer token for authentication and authorization purposes.
For more detailed information, please refer here.
Body
Code of the model to use. See available model list.
"zai-org/GLM-5.3"
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.
Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools. An object can be used to force the model to call a specific function or custom tool.
none, auto, required Configuration options for a text response from the model. Can be plain text or structured JSON data.
Whether to stream the generation result. When set to true, the response is sent as server-sent events once generated.
Response
Response object, or an SSE stream when stream is true.