# OpenAITokenRequestSchema
Source: https://docs.maelstrom-ai.co/0.2/reference/realtime-openai/variables/openaitokenrequestschema/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> `const` **OpenAITokenRequestSchema**: `z.ZodObject`<{ `model`: `z.ZodOptional`<`z.ZodString`\>; `provider`: `z.ZodLiteral`<`"openai"`\>; `sessionId`: `z.ZodPipe`<`z.ZodString`, `z.ZodTransform`<`SessionId`, `string`\>>; }, `z.core.$strip`\>

Defined in: packages/realtime-protocol/dist/lib/openai-token.d.ts:25

Wire schema for [OpenAITokenRequest](https://docs.maelstrom-ai.co/0.2/reference/realtime-openai/interfaces/openaitokenrequest/) — validates the request as it crosses the browser → mint-endpoint boundary.

-   `sessionId` must satisfy SessionIdSchema, binding the request to a specific Maelstrom session.
-   `model`, when present, must be non-empty: an empty string is rejected rather than treated as “omitted”.
