Skip to main content
Bring a Chat Completions application to Lume using the OpenAI SDK you already use. Change the base URL, API key, and model, then check the supported fields below. You keep the Chat Completions conversation and response formats for supported features. This guide covers Chat Completions at POST /v1/chat/completions. OverControl does not expose the OpenAI Responses, Assistants, Batch, fine-tuning, or vector-store APIs. An application built on those APIs needs changes beyond its base URL.

Before you start

Create an API key in the dashboard with chat:completions. If the key has a model allowlist, include lume-3.5. Keep the key on your server and set it in your shell:
Use one authentication header per request: Authorization: Bearer or x-api-key. Sending both with values returns HTTP 401. The SDK examples configure authentication for you. Install the SDKs for the examples you use:
Run Python examples from a .py file. Save Node.js examples as .mjs files for import and top-level await.

Send a request with your existing SDK

Set the base URL to https://api.overcontrolgroup.com/v1, including /v1. Use an OverControl key and a current Lume model ID. This complete example includes its own conversation and an explicit output budget.
The reply is in choices[0].message.content. Token counts are in usage.prompt_tokens, usage.completion_tokens, and usage.total_tokens; cached input, when present, is in usage.prompt_tokens_details.cached_tokens. Responses include X-Request-Id. To continue a conversation, send the earlier user and assistant turns with the next question. Your application supplies that history on each call. Changing the API destination does not transfer stored conversations or uploaded files from another service.

Choose a current model and output budget

max_tokens and max_completion_tokens are accepted, but send only one. If both are omitted, the model maximum applies. A requested output budget is reduced to the model limit and estimated remaining context space. Input that leaves no room for output is rejected with HTTP 400. finish_reason: "length" means the reply reached its output budget and may be incomplete. tool_calls means your application must handle function calls. Lume 3 and Lume 3 Max are retired; use the current IDs above and update any key allowlist.

Check the features your application uses

Compatibility follows the documented Lume feature set, not every parameter exposed by an SDK. Check optional defaults that your framework adds to requests. A rejected unsupported field should be removed or replaced with a supported feature. For a streamed answer, handle errors inside the stream as well as the initial HTTP response. An HTTP 200 or some displayed text does not prove that the whole stream completed. Accumulate tool arguments and JSON output before parsing them.

Use server-side web tools

OverControl can run web search and web fetch during a request on Lume 3.5, Lume 3.5 Max, and Lume Omni. Lume 2 supports client functions only. These tools use the same inference scope; there is no extra web-tool scope. To make the Chat request above search, add these top-level fields:
Use the canonical web_search declaration shown here rather than OpenAI web_search_options or a Responses API tool wrapper. Web fetch uses {"type":"web_fetch","max_uses":1} and a {"type":"web_fetch"} choice. Include a target URL explicitly in user text when asking for a fetch. Read source annotations from choices[0].message.annotations. A url_citation contains the URL, title, and offsets in the answer. Successful operation counts appear under usage.server_tool_use.web_search_requests and web_fetch_requests. Your application executes custom function tools; OverControl executes these two web tools. Server-side web workflows can send keepalives while the work runs, then emit result events. They do not provide live token-by-token progress during that work. Web-tool operations add usage to model tokens; Pricing covers rates and allowances.

Usage and migration errors

Your account allowance is shared across Chat Completions, Messages, and OverControl Chat. Requests reserve estimated usage before running and release unused reserved usage afterward. Set an explicit output budget to limit the reservation for short answers. An existing OpenAI billing account or credit balance is not used by OverControl. Keep the response’s X-Request-Id when reporting a failed call. Validate a basic text request first, then enable the features your application needs and test representative conversations and errors.

Next

Function calling

Complete the function-call and result round trip.

Structured outputs

Send a JSON schema and validate the returned data.

Web search

Add web sources and handle citations.

Chat with files

Upload, ask about, and delete a PDF with Lume Omni.