OptionalappOptionalattributionOptional workload attribution overriding this client's defaults.
OptionalautoAutomatically execute Sogni tool calls (image/video/music generation) when the model requests them. The SDK handles the full multi-round tool calling loop: send completion → execute tools → feed results back → repeat until done.
Only supported with stream: false. For streaming, use chat.tools.executeAll()
manually in your own loop.
OptionalbillingBilling mode for this request. 'subscription' bills the job against the
active subscription entitlement, 'tokens' forces token billing, and
'auto' (the server default when omitted) lets the server decide.
Explicit 'subscription' requests the entitlement cannot cover fail with
one of the SUBSCRIPTION_ERROR_CODES exported from the package root.
Optionalfrequency_Optionalmax_OptionalmaxMaximum number of tool calling rounds when autoExecuteTools is enabled.
Prevents infinite loops. Default: 5.
Optionalmin_OptionalonHandler for non-Sogni tool calls when autoExecuteTools is enabled.
Called for any tool call whose name does NOT start with sogni_.
Must return a string (the tool result content).
OptionalonProgress callback for Sogni tool execution when autoExecuteTools is enabled.
Fires as each tool call progresses through creation, queuing, processing, and completion.
Optionalpresence_Optionalrepetition_Optionalresponse_Constrain output structure (OpenAI-compatible). Most useful on tool-call rounds where the model must emit a specific argument shape — eliminates JSON drift on quantized models. Forwarded to the worker unchanged.
OptionalsafeRequested content-filter policy. The server remains authoritative.
Optionalsogni_When sogni_tools is enabled, ask the Sogni API to execute requested Sogni
tools server-side before returning the chat response. Independent of the
SDK's client-side autoExecuteTools loop.
Optionalsogni_Ask the Sogni API to inject server-side media-generation tool families.
true or 'creative-tools' injects the hosted creative media/planning tool family.
'rich' is accepted as a legacy alias for 'creative-tools'.
'creative-agent' adds hosted workflow-control and asset-manifest tools.
OptionalstopOptionalstreamOptionaltaskHint for server-side preset selection.
OptionaltemperatureOptionalthinkControl thinking/reasoning mode for supported models (e.g. Qwen3/3.5).
When false, sends chat_template_kwargs: { enable_thinking: false } so
the model skips its internal reasoning step. When true, explicitly enables
thinking. When omitted, server defaults apply.
OptionaltokenToken type to use for billing. Defaults to 'sogni'.
Optionaltool_Controls which (if any) tool is called by the model.
OptionaltoolsTool definitions for function calling.
Optionaltop_Optionaltop_
Optional source label for this request. Defaults to the client appSource when configured.