openai-api

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

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill openai-api-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-api
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/openai-api
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill openai-api-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill consolidates OpenAI's traditional/stateless APIs—Chat Completions, Embeddings, Images, Audio, and Moderation—into production-ready guidance, with streaming and function-calling patterns.

Core Features & Use Cases

  • ✅ Chat Completions with GPT-5, GPT-4o, and GPT-4 Turbo
  • ✅ Embeddings and image generation/editing (DALL-E 3)
  • ✅ Audio (Whisper transcription, TTS) and Moderation
  • ✅ Streaming patterns and structured outputs

Quick Start

Install the SDK and run a sample chat or embedding workflow with environment variables.

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 into my application?

Chat Completions API lets you build conversational systems using GPT-5, GPT-4o, and GPT-4 Turbo models. Install the OpenAI SDK, set your API key as an environment variable, and call the chat endpoint with your messages and model choice to get responses.

Can I use function calling and structured outputs with OpenAI models?

Yes, function calling and structured outputs with JSON schemas are supported across GPT-5, GPT-4o, and GPT-4 Turbo. Define your functions or schemas, pass them to the API, and the model returns structured data you can parse directly into your application logic.

How do I implement streaming responses from OpenAI APIs?

Streaming via Server-Sent Events (SSE) lets you receive tokens incrementally instead of waiting for full responses. Enable streaming in your request, listen for SSE events, and process each token as it arrives for real-time user feedback.

What OpenAI capabilities does this cover beyond chat completions?

This covers embeddings for semantic search and retrieval, DALL-E 3 for image generation and editing, Whisper for audio transcription, text-to-speech synthesis, and Moderation for content filtering across your workflows.

How do I handle rate limiting and errors in production OpenAI integrations?

Production-ready error handling includes rate limit detection, retry logic, and timeout management. Monitor response status codes and headers, implement exponential backoff for retries, and configure timeout thresholds appropriate for your use case.

Can I deploy OpenAI API integrations on edge runtimes?

Yes, this skill covers edge-runtime deployments, allowing you to run OpenAI integrations on serverless and edge platforms. Ensure your environment supports HTTP requests and environment variable configuration for API keys.