openai
Package
Section titled “Package”@ai-sdk/openai
Factories
Section titled “Factories”AIProviders.openAI
Capabilities
Section titled “Capabilities”- Language
- Completion
- Embedding
- Image
- Transcription
- Speech
- Files
- Skills
OpenAI mirrors upstream 4.0.60 across Chat Completions, Responses language models, completions, embeddings, images, speech, transcription, files, skills, hosted Responses tools, provider tool helpers, organization/project headers, structured output, usage details, response/provider metadata, warnings, raw stream chunks, provider references, Responses allowedTools for built-in and provider-defined tools with validated allow-list mappings and warnings, tool-search/namespace handling including blocked-domain filters, server-side compaction items, retryable pre-output stream failures, and Chat file-part mapping for image/audio/PDF inputs. File uploads serialize expiry options as nested expires_after[anchor] and expires_after[seconds] multipart fields; Chat metadata ignores zero-valued Azure content-filter placeholder timestamps while generic compatible providers preserve explicit epoch timestamps. The latest pass JSON-encodes function outputs that declare output schemas, keeps streaming output-item identity stable across rotating IDs through output_index, supports serviceTier: fast, and adds Responses programmatic tool calling with caller controls, output schemas, streamed/generated program items, and multi-step continuation; preserves stored tool-search IDs; and applies reasoning, sampling, service-tier, and image defaults to recognizable future OpenAI model versions. The current pass also adds terminal compaction triggers, previous-response function/output pairing, storage-disabled shell replay, MCP approval reference deduplication, distinct openai.computer actions/safety-check parsing and screenshot replay, plus durable Responses Batch V4 file upload, status, and streamed result conversion. Chat reasoning models strip unsupported sampling and penalty fields with upstream warnings, while topLogprobs is always omitted even when GPT-5.1+ permits non-reasoning parameters at effort none. The 4.0.52 pass also adds Batch webhook warnings and reconciled results/counts, embedding byte budgets, typed and schema-invalid stream failures, non-object tool-argument replay, function-name-aware tool-search history, scalar cache breakpoints, and safe identifier encoding. OpenAI Realtime/WebSocket models, ProviderV4 type names, ESM-only packaging, Node 22 engines, and workflow serialization helpers remain JS-runtime/package-surface concerns. The 4.0.60 pass adds GPT-6 and reasoningEffortUpdate, image-generation actions, diarized transcription and chunking, complete Files V4 metadata/download/delete and streaming upload operations, and Batch tool content plus input-file and expiry provider metadata.
Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.
Return to the provider matrix.