OpenAI API
CommunityAutomate AI tasks: Chat, Embed, Image, Audio, Moderate.
System Documentation
What problem does it solves? This Skill provides a comprehensive, ready-to-use guide for integrating OpenAI's core APIs, eliminating the complexity of setup, error handling, and best practices. It helps you quickly build AI-powered features without extensive research or debugging, saving you time and reducing development friction.
Core Features & Use Cases
- Full API Coverage: Master Chat Completions (GPT-5, GPT-4o), Embeddings, DALL-E 3 Image Generation, Whisper/TTS Audio, and Content Moderation.
- Production-Ready Patterns: Implement streaming, function calling, structured outputs, and vision with robust error handling and rate limit management.
- Multi-Platform Support: Leverage both Node.js SDK and fetch-based approaches for maximum compatibility, including Cloudflare Workers.
- Use Case: Develop a multimodal AI assistant that can understand images, generate text, transcribe audio, and ensure content safety, all integrated seamlessly into your application.
Quick Start
1. Install SDK
npm install [email protected]
2. Set API Key
export OPENAI_API_KEY="sk-..."
3. Basic Chat Completion
import OpenAI from 'openai'; const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); const completion = await openai.chat.completions.create({ model: 'gpt-5', messages: [{ role: 'user', content: 'What are the three laws of robotics?' }], }); console.log(completion.choices[0].message.content);
Dependency Matrix
Required Modules
Components
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: OpenAI API Download link: https://github.com/jezweb/claude-skills/archive/main.zip#openai-api Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.