Setup
Set your OpenAI API key in the worker environment. Generate a key from the OpenAI dashboard:Usage
Import the plugin and pass it to the pipeline’sllm slot.
The default model is
gpt-5.4-nano.Low-latency streaming
Setstreaming to use OpenAI’s WebSocket Responses API instead of HTTP chat
completions. The connection is reused across turns and continues with
previous_response_id for lower per-turn latency.
Azure OpenAI
To run models through Azure OpenAI, pointOpenAILLM at your resource. See Azure OpenAI.
Configuration Options
Constructor parameters forOpenAILLM. The Python and Node JS SDKs share these field names.
Core
Sampling
Reasoning models
Streaming & client
Import paths
For Azure OpenAI, see Azure OpenAI.
Inference models
These OpenAI models also run through the Inference Gateway on your Zero Runtime auth token, with no OpenAI API key. Pass the model id to the same class imported fromzeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).