openai

OpenAI API integration — chat completions, embeddings, image generation, audio transcription, file management, fine-tuning, and assistants via the OpenAI REST API. Generate text, create images with DALL-E, transcribe audio with Whisper, manage fine-tuning jobs, and build AI assistants. Built for AI agents — Python stdlib only, zero dependencies. Use for AI text generation, image creation, speech-to-text, embeddings, fine-tuning, and AI assistant building.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openai" with this command: npx skills add aiwithabidi/openai

🧠 OpenAI

OpenAI API integration — chat completions, embeddings, image generation, audio transcription, file management, fine-tuning, and assistants via the OpenAI REST API.

Features

  • Chat completions — GPT-4o, GPT-5, o1 model responses
  • Embeddings — text-embedding-3 for semantic search
  • Image generation — DALL-E 3 image creation and editing
  • Audio transcription — Whisper speech-to-text
  • Text-to-speech — TTS with multiple voices
  • File management — upload and manage files
  • Fine-tuning — create and manage fine-tuning jobs
  • Assistants — build and manage AI assistants
  • Moderation — content moderation checks
  • Models — list available models and details

Requirements

VariableRequiredDescription
OPENAI_API_KEYAPI key/token for OpenAI

Quick Start

# Send chat completion
python3 {baseDir}/scripts/openai.py chat "Explain quantum computing in 3 sentences" --model gpt-4o
# Chat with system prompt
python3 {baseDir}/scripts/openai.py chat-system --system "You are a Python expert" "How do I use asyncio?"
# Generate embeddings
python3 {baseDir}/scripts/openai.py embed "The quick brown fox" --model text-embedding-3-small
# Generate an image
python3 {baseDir}/scripts/openai.py image "A sunset over mountains, oil painting style" --size 1024x1024

Commands

chat

Send chat completion.

python3 {baseDir}/scripts/openai.py chat "Explain quantum computing in 3 sentences" --model gpt-4o

chat-system

Chat with system prompt.

python3 {baseDir}/scripts/openai.py chat-system --system "You are a Python expert" "How do I use asyncio?"

embed

Generate embeddings.

python3 {baseDir}/scripts/openai.py embed "The quick brown fox" --model text-embedding-3-small

image

Generate an image.

python3 {baseDir}/scripts/openai.py image "A sunset over mountains, oil painting style" --size 1024x1024

transcribe

Transcribe audio file.

python3 {baseDir}/scripts/openai.py transcribe recording.mp3

tts

Text to speech.

python3 {baseDir}/scripts/openai.py tts "Hello, welcome to our service" --voice alloy --output greeting.mp3

models

List available models.

python3 {baseDir}/scripts/openai.py models

model-get

Get model details.

python3 {baseDir}/scripts/openai.py model-get gpt-4o

files

List uploaded files.

python3 {baseDir}/scripts/openai.py files

file-upload

Upload a file.

python3 {baseDir}/scripts/openai.py file-upload data.jsonl --purpose fine-tune

fine-tune

Create fine-tuning job.

python3 {baseDir}/scripts/openai.py fine-tune '{"training_file":"file-abc123","model":"gpt-4o-mini"}'

fine-tune-list

List fine-tuning jobs.

python3 {baseDir}/scripts/openai.py fine-tune-list

moderate

Check content moderation.

python3 {baseDir}/scripts/openai.py moderate "Some text to check"

usage

Check API usage.

python3 {baseDir}/scripts/openai.py usage --date 2026-02-01

assistants

List assistants.

python3 {baseDir}/scripts/openai.py assistants

Output Format

All commands output JSON by default. Add --human for readable formatted output.

# JSON (default, for programmatic use)
python3 {baseDir}/scripts/openai.py chat --limit 5

# Human-readable
python3 {baseDir}/scripts/openai.py chat --limit 5 --human

Script Reference

ScriptDescription
{baseDir}/scripts/openai.pyMain CLI — all OpenAI operations

Data Policy

This skill never stores data locally. All requests go directly to the OpenAI API and results are returned to stdout. Your data stays on OpenAI servers.

Credits


Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Hippo Video

Hippo Video integration. Manage Persons, Organizations, Deals, Leads, Activities, Notes and more. Use when the user wants to interact with Hippo Video data.

Registry SourceRecently Updated
General

币安资金费率监控

币安资金费率套利监控工具 - 查看账户、持仓、盈亏统计,SkillPay收费版

Registry SourceRecently Updated
General

apix

Use `apix` to search, browse, and execute API endpoints from local markdown vaults. Use this skill to discover REST API endpoints, inspect request/response s...

Registry SourceRecently Updated
0160
dngpng