openai-api - Build applications with OpenAI stateless APIs
Guides integration with OpenAI APIs for chat, streaming, tools, embeddings, images, audio, moderation, and error handling.
Tags
Updated: 2026-11-08Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Call Chat Completions API
- Stream responses with SSE
- Define function calling tools
- Generate structured JSON outputs
- Create and edit images
- Transcribe and synthesize audio
- Generate embeddings for RAG
- Classify content with moderation
- Handle API errors and rate limits
- Use Node.js SDK or fetch
Inputs
- OpenAI API key
- User prompts
- Conversation history
- Model parameters
- Tool schemas
- Image or audio inputs
Outputs
- Chat completion responses
- Streaming SSE chunks
- Function tool calls
- Structured JSON responses
- Embeddings
- Generated or edited images
- Audio transcriptions
- Synthesized speech audio
- Moderation results
- API error responses
Requirements
- OpenAI API access
- OpenAI API key
- Network access
- Node.js SDK or fetch-compatible runtime
- Supported OpenAI models
