openai-api

Integrate OpenAI stateless APIs for chat, embeddings, images, audio, and moderation.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill openai-api-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-api
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/openai-api
Command: npx skills add https://github.com/ovachiever/droid-tings --skill openai-api-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, form-data, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance for building applications with OpenAI's stateless APIs (Chat Completions, Embeddings, Images, Audio, Moderation), with templates and best practices for production.

Core Features & Use Cases

  • Chat Completions & Streaming: GPT-5, GPT-4o, GPT-4 Turbo with streaming and function calling.
  • Embeddings & RAG: Efficient embeddings and retrieval augmented generation workflows.
  • Images & Editing: DALL-E 3 generation and image editing guidance.
  • Audio & Moderation: Whisper transcription, TTS, and content safety checks.
  • Production Best Practices: Error handling, rate limits, and structured outputs.

Quick Start

Spin up templates for chat, embeddings, or images to begin building stateless OpenAI-based apps quickly.

Frequently Asked Questions about openai-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate OpenAI's Chat Completions API with streaming for real-time responses?

Streaming Chat Completions allows you to receive tokens progressively from GPT-4o, GPT-4 Turbo, or GPT-5 as they generate, enabling real-time user feedback. This Skill provides templates and best practices for handling streaming responses in Node.js and fetch-based environments like Cloudflare Workers, including proper error handling and token limit management.

Can I use OpenAI's embeddings for retrieval-augmented generation (RAG) workflows?

Yes. Embeddings convert text into dense vectors for semantic search and RAG pipelines. This Skill covers efficient embedding generation, storage patterns, and retrieval workflows with production best practices for scaling to large datasets while managing API rate limits and costs.

What's the best way to handle function calling and structured outputs with OpenAI models?

Function calling enables models to invoke external tools and structured outputs ensure predictable JSON responses. This Skill provides templates for implementing tool-calling workflows with GPT-4o and GPT-4 Turbo, including error recovery, validation, and production patterns for reliable integrations.

How do I transcribe audio with Whisper and generate speech with Text-to-Speech in a single pipeline?

Whisper transcribes audio to text; TTS converts text to speech across 11 voices. This Skill includes end-to-end patterns for chaining these capabilities, handling multiple audio formats, managing token costs, and deploying stateless audio workflows at scale.

Does this Skill support image generation and editing with DALL-E 3?

Yes. This Skill covers DALL-E 3 image generation and editing workflows with templates, best practices for prompt engineering, error handling for invalid requests, and production considerations for managing image outputs and API costs.

What content moderation categories does the OpenAI Moderation API cover?

Moderation classifies text across multiple safety categories including hate speech, violence, sexual content, and self-harm. This Skill provides implementation patterns for integrating moderation checks into chat and content pipelines, with guidance on threshold tuning and production error handling.