openai-api

Installation
Summary

Complete reference for OpenAI's stateless APIs including Chat Completions, embeddings, images, audio, and moderation.

  • Supports GPT-5 series (with reasoning_effort control), GPT-4o multimodal, o3 reasoning models, and legacy GPT-4 variants; streaming, function calling, and structured JSON outputs included
  • Embeddings API for RAG with custom dimensions (256–3072), DALL-E 3 image generation, Whisper transcription, and TTS with 11 voices
  • Batch API for 50% cost savings on large-scale processing; Realtime API for low-latency voice interactions via WebSocket
  • Prevents 16 documented errors including model name mistakes (gpt-5.1-mini doesn't exist), reasoning_effort defaults in GPT-5.1/5.2, embedding dimension mismatches, and TypeScript null-check gotchas
SKILL.md

OpenAI API - Complete Guide

Version: Production Ready ✅ Package: openai@6.16.0 Last Updated: 2026-01-20


Status

✅ Production Ready:

  • ✅ Chat Completions API (GPT-5, GPT-4o, GPT-4 Turbo)
  • ✅ Embeddings API (text-embedding-3-small, text-embedding-3-large)
  • ✅ Images API (DALL-E 3 generation + GPT-Image-1 editing)
  • ✅ Audio API (Whisper transcription + TTS with 11 voices)
  • ✅ Moderation API (11 safety categories)
  • ✅ Streaming patterns (SSE)
  • ✅ Function calling / Tools
  • ✅ Structured outputs (JSON schemas)
Related skills
Installs
469
GitHub Stars
776
First Seen
Jan 20, 2026