openai api
Generate text, images, and embeddings with structured outputs.
$ npx docs2skills add openai-apiSKILL.md
Complete coverage of the OpenAI API — chat completions, function calling, structured outputs, image generation with DALL-E, embeddings, and moderation.
When to Use This Skill
Use when integrating OpenAI models directly into your application.
- Chat completions with GPT-4o and GPT-4o-mini
- Function calling and tool use
- Structured JSON output with response_format
- Image generation with DALL-E 3
- Text embeddings for search and RAG
Core Capabilities
Key API patterns and best practices.
- Streaming chat completions
- System prompt engineering
- Function calling with JSON Schema definitions
- Batch API for high-throughput workloads
- Rate limiting and retry strategies
- Token counting and cost optimization