Create a chat completion
Create an OpenAI-compatible BytePlus chat completion. Set stream to
true to receive Server-Sent Events ending with data: [DONE]. For a
streaming request, GENGEN always enables final usage reporting.
Authorizations
A workspace API key beginning with gengen_live_.
Body
OpenAI-compatible chat completion request. Additional BytePlus Chat API fields are forwarded to the provider and remain model-dependent.
Supported GENGEN text generation model ID.
1"seed-2-0-lite-260428"
1Return Server-Sent Events instead of one JSON completion.
Maximum answer length in tokens. Do not combine with max_completion_tokens.
x >= 1Maximum answer plus reasoning length for supported reasoning models.
x >= 1Provider-specific reasoning depth for supported models.
Sampling temperature. Model-specific restrictions can apply.
0 <= x <= 2Nucleus sampling threshold. Model-specific restrictions can apply.
0 <= x <= 1One stop sequence or up to four stop sequences.
Repetition penalty supported by selected models.
-2 <= x <= 2Presence penalty supported by selected models.
-2 <= x <= 2Text, JSON object, or JSON schema response configuration.
Function tools available to the model.
Supported values:
fast— prioritize lower latency when supportedauto— let the provider choose the service tierdefault— use standard processing
fast, auto, default Response
A JSON chat completion when stream is false, or an SSE stream when
stream is true.