Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

ChatGPT & OpenAI API Cheat Sheet

ChatGPT & OpenAI API Cheat Sheet

Back to Developer Tools
Updated 2026-05-25
Next Topic: ChatGPT and OpenAI API Cheat Sheet

The OpenAI API gives developers programmatic access to GPT-5.5, GPT-5.4, and the full range of OpenAI models through two primary interfaces: the Responses API (stateful, agentic, recommended for new projects) and the Chat Completions API (stateless, wide compatibility). With GPT-5.5 launching in April 2026 as the new flagship and open-weight gpt-oss models released for local deployment, the ecosystem now spans everything from sub-cent commodity inference to frontier research-grade reasoning. The core paradigm shift is agents and tools over raw completions: built-in web search, computer use, MCP server integration, and background async execution are first-class API features, not just ChatGPT-only capabilities.

What This Cheat Sheet Covers

This topic spans 22 focused tables and 214 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: API EndpointsTable 2: Primary ModelsTable 3: Core ParametersTable 4: Message RolesTable 5: Function Calling & ToolsTable 6: Streaming & Real-TimeTable 7: Structured Outputs & JSON ModeTable 8: Embeddings & Semantic SearchTable 9: Prompt CachingTable 10: Authentication & API KeysTable 11: Rate Limits & PricingTable 12: Error HandlingTable 13: Advanced FeaturesTable 14: SDKs & Client LibrariesTable 15: Image GenerationTable 16: Audio & SpeechTable 17: Moderation & SafetyTable 18: Fine-TuningTable 19: Open-Weight Models (gpt-oss)Table 20: Web Search ToolTable 21: Responses API vs. Chat CompletionsTable 22: ChatGPT Plus vs. API

Table 1: API Endpoints

The OpenAI REST API is versioned under https://api.openai.com/v1. The Responses API (/v1/responses) is the recommended path for new agentic applications; the Chat Completions endpoint remains fully supported for compatibility. All endpoints require an Authorization: Bearer <API_KEY> header.

EndpointExampleDescription
Responses API
POST /v1/responses
• Recommended stateful agentic endpoint
• supports built-in tools (web search, computer use, MCP), previous_response_id chaining, background mode, and store.
Chat Completions
POST /v1/chat/completions
• Stateless multi-turn conversation endpoint
• still fully supported
• use for legacy integrations or when stateless behavior is required
Embeddings
POST /v1/embeddings
Converts text to vector representations for semantic search, clustering, and retrieval.
Images — Generate
POST /v1/images/generations
• Generates images using gpt-image-2 (flagship) or gpt-image-1.5
• DALL-E 2/3 shut down May 12 2026.
Images — Edit
POST /v1/images/edits
• Inpaints or edits images using a mask
• only gpt-image-2 supported
Audio — Speech (TTS)
POST /v1/audio/speech
• Text-to-speech using gpt-4o-mini-tts or other TTS models
• returns audio stream
Audio — Transcription (STT)
POST /v1/audio/transcriptions
• Speech-to-text using whisper-1 or gpt-4o-transcribe
• accepts audio file upload
Audio — Translation
POST /v1/audio/translations
Translates audio to English text using whisper-1.

More in Developer Tools

  • Bruno API Client Cheat Sheet
  • ChatGPT and OpenAI API Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • File Formats Cheat Sheet
  • Notepad++ Cheat Sheet
  • Sublime Text Cheat Sheet
View all 55 topics in Developer Tools