Skip to main content
GENGEN provides an OpenAI-compatible Chat Completions endpoint for supported LLM models. Existing server-side applications can use the OpenAI Python or JavaScript SDK by changing the API key, base URL, and model ID.

Compatibility base URL

The SDK appends /chat/completions, producing this request URL:
Use a GENGEN workspace API key beginning with gengen_live_.
The /v1 compatibility base URL currently supports Chat Completions only. Do not assume that OpenAI SDK resources such as Responses, Models, Images, Files, or Assistants are available through this base URL. Use the documented canonical GENGEN endpoints for other capabilities.

Python

Install the OpenAI Python SDK:
Configure the client with your GENGEN API key and compatibility base URL:

JavaScript

Install the OpenAI JavaScript SDK:
Configure baseURL when creating the client:

Direct HTTP endpoint

Applications that do not use an OpenAI SDK can call the canonical GENGEN endpoint directly:
Both URLs use the same GENGEN API key, model IDs, billing, request body, and response format. Streaming Chat Completions are also supported through the compatibility URL. See Create a chat completion for supported parameters, models, streaming behavior, and response schemas.

Function calling

All listed Seed, DeepSeek, GLM, and Gemini LLMs accept function tools through Chat Completions, including SSE streaming. Preserve the full assistant message when returning tool results, including provider reasoning and Gemini thought signatures. See Function calling and Gemini tools for working examples and Gemini Code execution and Computer use.