ai-integrations-openai

Integrates OpenAI chat, voice, and image APIs via Replit AI Integrations proxy.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/SaberAloui/agri-hub --skill ai-integrations-openai-saberaloui
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-integrations-openai
Source: https://github.com/SaberAloui/agri-hub/tree/main/.local/skills/ai-integrations-openai
Command: npx skills add https://github.com/SaberAloui/agri-hub --skill ai-integrations-openai-saberaloui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, p-limit, p-retry, and includes references (resource) components.

What problem does it solve? Adding OpenAI capabilities to a JavaScript/TypeScript app normally requires managing API keys, writing boilerplate for streaming, audio conversion, and rate limiting. This Skill provisions OpenAI access through the Replit AI Integrations proxy with no user API key and provides ready-made server modules, React hooks, database schemas, and OpenAPI contract entries. ## Core Features & Use Cases - Text Chat with SSE Streaming: Pre-configured OpenAI SDK client plus wiring instructions for streaming chat completions with conversation persistence via Drizzle ORM tables. - Voice and Audio Pipelines: Speech-to-speech voice chat with gpt-audio, TTS, and STT transcription, including ffmpeg-based format conversion and React hooks for recording and PCM16 playback. - Image Generation and Batch Processing: gpt-image-1 generation/editing helpers and batch utilities with concurrency limits, retries, and rate-limit detection. - Use Case: Build a customer support voice chatbot by provisioning the integration, copying the template packages, adding the OpenAPI endpoints, and wiring the voice-messages SSE route with the provided React voice stream hooks. ## Quick Start Ask the agent to set up the OpenAI AI integration and scaffold a streaming chat endpoint with conversation history in your project.

Frequently Asked Questions about ai-integrations-openai

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

FAQPage Schema
How do I use the OpenAI API without my own API key?▼

Provision the Replit AI Integrations proxy by calling setupReplitAIIntegrations with the openai provider slug. It automatically sets AI_INTEGRATIONS_OPENAI_BASE_URL and AI_INTEGRATIONS_OPENAI_API_KEY environment variables, and usage is billed to your Replit credits.

How do I build a voice chat app with OpenAI gpt-audio?▼

Use the voiceChatStream server function with gpt-audio for speech-to-speech responses, and the useVoiceRecorder and useVoiceStream React hooks on the client. Convert browser WebM recordings to WAV with ffmpeg before sending, and stream results over SSE.

Which OpenAI models are supported by this integration?▼

Supported models include gpt-5.2 for general tasks, gpt-5.3-codex for coding, gpt-5-mini and gpt-5-nano for high-volume work, o4-mini and o3 for reasoning, gpt-image-1 for images, gpt-audio for speech-to-speech, and gpt-4o-mini-transcribe for transcription.

What OpenAI capabilities are not supported by Replit AI Integrations?▼

The integration does not support the embeddings API, fine-tuning API, files API, image variations, video inputs or outputs, and the speech API. For those use cases, use OpenAI directly with your own API key or another integration such as Gemini for video.

When should I use ElevenLabs instead of OpenAI for voice features?▼

Use ElevenLabs for interactive, low-latency voice apps that require STT/TTS chaining with a separate text model. Use OpenAI gpt-audio for direct speech-to-speech chat and non-latency-sensitive tasks like batch transcription or audiobook generation.

Why does my OpenAI streaming endpoint not work with generated API client hooks?▼

Orval cannot generate typed hooks for SSE streaming endpoints, so the response type is unknown. Consume the text and voice streams manually with fetch and ReadableStream parsing, or use the provided React voice stream hooks which handle SSE parsing.