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);