chat

Stream a chat completion

Generate text or tool calls using a project API key. Access follows the project's agreed service hours. Responses stream as server-sent events. Reuse X-Session-Affinity for each conversation; an unavailable assigned service returns an error without fallback.

post/v1/chat/completions

Request

  • Base URL
    https://api.dotwave.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.dotwave.ai/v1/chat/completions
  • Auth
    none declared

Headers

authorizationstring nullable

Bearer wk_…: the project's API key (Token is an alias of Bearer). Create API keys in the console. New accounts start with $10 of credit; no card required.

x-api-keystring nullable

The same API key, in place of the Authorization header.

X-Session-Affinitystring nullable

Optional opaque conversation ID (1–256 ASCII letters, digits, period, underscore, colon or hyphen). Reuse across every turn and tool continuation. Assignments are project scoped and expire after 24 hours of inactivity.

Request body

max_tokensinteger
messagesobject[] required
model'gemma4-bf16' required
streamtrue required
stream_optionsobject nullable
toolsobject[] nullable

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.