openai

Access OpenAI API endpoints via curl for chat, images, audio, and embeddings.

76|18|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/vm0-ai/vm0-skills --skill openai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai
Source: https://github.com/vm0-ai/vm0-skills/tree/main/openai
Command: npx skills add https://github.com/vm0-ai/vm0-skills --skill openai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides access to GPT, embeddings, images, audio, and more from OpenAI via curl, enabling powerful AI capabilities in scripts and automations.

Core Features & Use Cases

  • Chat & Completions: chat with GPT models
  • Image & Audio: generate images and synthesize speech
  • Embeddings: create vectors for semantic search
  • Use Case: build a chat assistant that retrieves and formats answers

Quick Start

Ask the model to summarize a topic in 3 bullets.

Frequently Asked Questions about openai

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

FAQPage Schema
How do I call OpenAI's GPT API with curl from a script?

Use curl to send JSON POST requests to https://api.openai.com/v1/chat/completions with your OPENAI_API_KEY in the Authorization header, specifying the model (GPT-4o, GPT-4, or GPT-3.5), messages array, and content-type as application/json. This Skill provides ready-to-use curl commands for chat completions.

Can I generate images and transcribe audio using curl and OpenAI?

Yes. OpenAI's DALL-E 3 endpoint generates images via curl POST requests, and Whisper transcribes audio files through the /audio/transcriptions endpoint. Both require your API key, proper headers, and adherence to rate limits and payload format conventions.

What's the best way to create embeddings for semantic search with curl?

Send curl POST requests to OpenAI's /embeddings endpoint with your text and model choice, receiving vectors for semantic search and RAG pipelines. This Skill handles the JSON formatting, authentication, and response parsing needed to integrate embeddings into automation workflows.

Do I need anything besides curl and an API key to use OpenAI endpoints?

You need a valid OPENAI_API_KEY, curl-enabled environment, access to https://api.openai.com/v1, and knowledge of JSON payload structure and content-type headers. This Skill removes the formatting overhead with pre-built scripts.

How do I handle streaming responses and rate limits when calling OpenAI via curl?

Streaming requires setting the stream parameter to true in your JSON payload; curl will output server-sent events. Rate limits are enforced per endpoint; respect response headers and implement backoff logic. This Skill documents both patterns in its references.

Can I use curl to build a chatbot that retrieves and formats answers from OpenAI?

Yes. Combine GPT chat completions with embeddings for retrieval-augmented generation (RAG): query embeddings find relevant context, send it with your question to GPT, and format the response. This Skill provides curl examples for each step in the workflow.