搜索

PythonReactSEOPDF
OpenClaw

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.

aiwithabidi0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install aiwithabidi/openai

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

🧠 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

Variable Required Description
OPENAI_API_KEY ✅ API 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...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/aiwithabidi/openai
Version
—
Commit
0ca67876248356dd5f887b585cd2ff2fa8bccf3a
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 🧠 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

| Variable | Required | Description |
|----------|----------|-------------|
| `OPENAI_API_KEY` | ✅ | API key/token for OpenAI |

## Quick Start

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

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

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

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



## Commands

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

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

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

### `image`
Generate an image.
```bash
python3 {baseDir}/scripts/openai.py image "A sunset over mountains, oil...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.