Chat Completions
POST https://api.smallest.ai/waves/v1/chat/completions
OpenAI-compatible chat completion endpoint. Most OpenAI Chat Completions request fields are accepted and passed through to Electron verbatim. The response shape matches OpenAI’s chat.completion object.
Request
Authentication
Required fields
Common optional fields
Unrecognized parameters not in the supported set are accepted by the schema but may be ignored by the model. See Supported Parameters for the full passthrough table.
Explicitly rejected fields
Sending either returns HTTP 400 with invalid_request_error.
Response
Non-streaming (default)
Standard OpenAI chat.completion object:
usage block
finish_reason
Streaming
When stream: true, the response is text/event-stream SSE. See Streaming for chunk format and example consumer code.
Errors
All errors follow the OpenAI-style envelope. Validation failures additionally include a details array with per-field reasons:

