openai-api

Coordinate OpenAI API usage across multiple backends with a consistent interface.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tylertitsworth/skills --skill openai-api-tylertitsworth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openai-api
Source: https://github.com/tylertitsworth/skills/tree/main/openai-api
Command: npx skills add https://github.com/tylertitsworth/skills --skill openai-api-tylertitsworth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a consolidated reference and practical patterns for interacting with OpenAI-compatible APIs, enabling consistent usage across diverse backends and deployments.

Core Features & Use Cases

  • Unified OpenAI API reference across backends (OpenAI, vLLM, Ollama, LiteLLM, etc.) with tool-calling, JSON/JSON Schema outputs, streaming, and embeddings.
  • Practical integration patterns for multi-backend reliability, error handling, retries, and compatibility checks.
  • Sample workflows for chat, completions, embeddings, and media endpoints across different backends with consistent interfaces.

Quick Start

Experiment with a minimal chat request against a backend by supplying a basic user message and observing a streamed response.

Frequently Asked Questions about openai-api

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

FAQPage Schema
How do I use the OpenAI API across multiple backends like vLLM and Ollama?

To use the OpenAI API across multiple backends, you need a consistent interface with backend base_url overrides and appropriate authentication. This approach ensures unified usage for chat completions, tool calling, and streaming across diverse deployments.

What's the best way to handle OpenAI API errors and retries for streaming responses?

Handling OpenAI API errors and retries requires implementing sane retry and timeout configurations within your Python or similar SDK. Robust error handling ensures reliability during multi-backend streaming, JSON outputs, and completions.

Can I get structured JSON outputs from OpenAI-compatible APIs using tool calling?

Yes, you can get structured JSON and JSON Schema outputs from OpenAI-compatible APIs using tool calling. This requires a Python or similar SDK to coordinate requests and enforce compatibility checks across different backends.

Does the OpenAI API support unified embeddings and chat completions for local backends?

The OpenAI API supports unified embeddings and chat completions for local backends through consistent interfaces. By applying base_url overrides, you can execute sample workflows for media endpoints and embeddings across different environments.

Why do I need backend compatibility checks when integrating OpenAI API patterns?

You need backend compatibility checks when integrating OpenAI API patterns to prevent mismatches across diverse deployments. Practical integration patterns ensure multi-backend reliability for structured outputs, tool calling, and streaming operations.

What is needed to set up a minimal OpenAI API chat request with streaming?

To set up a minimal OpenAI API chat request with streaming, you supply a basic user message to your backend using a Python SDK. Observing the streamed response requires appropriate authentication and a base_url override.