> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Openai

> TypeScript API reference for the openai llm provider.

<Card title="Usage guide" icon="book" href="/plugins/llm/openai" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## OpenAILLM

Initialize the OpenAI LLM plugin.

```ts theme={null}
import { OpenAILLM } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

<ParamField path="model" type="string" default="gpt-5.4-nano" />

<ParamField path="base_url" type="string | null" default="null" />

<ParamField path="temperature" type="number" default="0.7" />

<ParamField path="tool_choice" type="'auto' | 'required' | 'none'" default="auto" />

<ParamField path="max_completion_tokens" type="number | null" default="null" />

<ParamField path="top_p" type="number | null" default="null" />

<ParamField path="frequency_penalty" type="number | null" default="null" />

<ParamField path="presence_penalty" type="number | null" default="null" />

<ParamField path="seed" type="number | null" default="null" />

<ParamField path="organization" type="string | null" default="null" />

<ParamField path="project" type="string | null" default="null" />

<ParamField path="parallel_tool_calls" type="boolean | null" default="null" />

<ParamField path="timeout" type="any" default="null" />

<ParamField path="extra_headers" type="Record<string, any> | null" default="null" />

<ParamField path="extra_query" type="Record<string, any> | null" default="null" />

<ParamField path="extra_body" type="Record<string, any> | null" default="null" />

<ParamField path="max_retries" type="number" default="0" />

<ParamField path="reasoning_effort" type="'none' | 'low' | 'medium' | 'high' | null" default="null" />

<ParamField path="verbosity" type="'low' | 'medium' | 'high' | null" default="null" />

<ParamField path="streaming" type="boolean" default="false" />

<ParamField path="store" type="boolean" default="true" />

<ParamField path="wss_url" type="string | null" default="null" />

***

## ZRTLLM

Create an LLM instance configured for VideoSDK LLM.

```ts theme={null}
import { ZRTLLM } from '@zeroruntime/js-sdk/inference';  // same fields, through the gateway, no vendor key
import { ZRTLLM } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

<ParamField path="model" type="string" default="google.gemma-4-31b" />

<ParamField path="base_url" type="string | null" default="null" />

<ParamField path="temperature" type="number" default="0.7" />

<ParamField path="tool_choice" type="'auto' | 'required' | 'none'" default="auto" />

<ParamField path="max_completion_tokens" type="number | null" default="null" />

<ParamField path="top_p" type="number | null" default="null" />

<ParamField path="presence_penalty" type="number | null" default="null" />

<ParamField path="frequency_penalty" type="number | null" default="null" />
