OpenAI API
The OpenAI API is a programming interface that allows software applications to send requests to OpenAI models and services and receive responses.
Starting Data Analytics with Generative AI and Python
A public programming interface that provides access to OpenAI artificial-intelligence models and services.
- How it is used
- Supports programmatic generative-AI tasks in data-analytics solutions, including preprocessing, insight generation, and visualization.
- How deep it goes
- Demonstrates Python setup and a multiturn request, then emphasizes formats, costs, errors, retries, and prompt refinement rather than advanced integration.
- Examples
- Uses Portuguese sentiment keywords, a science-explanation conversation, API client code, and environment-based API-key configuration.
- What you can do after
- Apply it via Python to send prompts, receive model responses, and build controlled analytics interactions.
Read how Starting Data Analytics with Generative AI and Python explains OpenAI API →
Vibe Engineering
The OpenAI API is a public programming interface for accessing OpenAI-hosted artificial-intelligence models and services.
- How it is used
- Deploys hosted language models inside an application that generates SQL from user requests and database context.
- How deep it goes
- Explains configuration, prompt assembly, chat-completion parameters, response handling, and basic error paths.
- Examples
- Uses a Java SQL generator with YAML configuration, schema-aware prompts, chat completions, and markdown-stripping cleanup.
- What you can do after
- Operate/configure an OpenAI-backed SQL generator with selectable models, bounded responses, prompt context, and basic failure handling.
Enterprise RAG
The OpenAI API is a programmatic interface for accessing OpenAI artificial-intelligence models and related capabilities.
- How it is used
- Supports Python applications that generate model responses and evaluate RAG answers automatically.
- How deep it goes
- Explains installation, key loading, chat completion calls, answer comparison, pytest assertions, and CI execution without covering API internals.
- Examples
- Uses fictional book questions, expected answers, a send-to-OpenAI function, and a GitHub Actions test workflow.
- What you can do after
- Build an API-backed evaluation script and run its regression tests through pytest and GitHub Actions.
Software Testing with Generative AI
A web interface that provides programmatic access to OpenAI's artificial-intelligence models and services.
- How it is used
- Supports automated test-data generation by sending prompts to language models.
- How deep it goes
- Explains account setup, authentication, model selection, prompting, JSON parsing, and test integration without detailing HTTP internals.
- Examples
- Uses a structured contact-form prompt, generated JSON, Java deserialization, and a success-message assertion.
- What you can do after
- Build automated Java checks that generate and consume test data through LangChain4j.
Read how Software Testing with Generative AI explains OpenAI API →
Learn Generative AI with PyTorch
An external programming interface used here to request text-to-speech conversion from OpenAI’s service.
- How it is used
- Uses Python programs to request generated content and connect language models with other services.
- How deep it goes
- Defines access modes, content types, API-key requirements, and integrations, but does not detail endpoints or parameters.
- Examples
- Demonstrates Python-based generation of text, images, speech, audio, and code.
- What you can do after
- Build content-generating Python programs using an OpenAI API key and combine them with external services.
Read how Learn Generative AI with PyTorch explains OpenAI API →
Generative AI in Action
The OpenAI API is a programming interface that provides access to OpenAI models and related services.
- How it is used
- Supports programmatic model access for text generation and other model-specific capabilities through OpenAI or Azure OpenAI endpoints.
- How deep it goes
- Covers dependencies, authentication, endpoint configuration, model discovery, and capability selection without developing model internals.
- Examples
- Uses AzureOpenAI Python code to list deployed models, persist model metadata, and print identifiers, statuses, and capabilities.
- What you can do after
- Operate/configure an OpenAI or Azure OpenAI client, inspect accessible models, and select a model for text generation.
Also covered in
- Learn AI Data EngineeringIn early access (MEAP)
- Fight Fraud with Machine LearningIn early access (MEAP)
- Build an AI Agent (From Scratch)
- Domain-Specific Small Language Models
- LLMs in Production
- Hugging Face in Action
- AI Agents in Action
- The Complete Obsolete Guide to Generative AI
- The AI Pocket Book
- Data-Driven Cybersecurity
- AI Agents and Applications
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- GPT modelA GPT model is a generative, autoregressive Transformer language model in the family developed by OpenAI.
- contractA contract is an agreed specification of the conditions, expectations, rights, or obligations that govern behavior or interactions between parties or software components.
Related concepts
- tool useused by · Tool use is the capability of an AI system or agent to request external software operations through defined interfaces to obtain information or perform actions.
- API keyconfigured by · An API key is a credential, usually represented as a string or token, presented with API requests to identify or authenticate a client and potentially authorize access.
- Pythonused by · Python is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- promptuses · A prompt is text or other input supplied to an AI model to provide instructions, context, or other information that guides its response or generated output.
- OpenAI Playgroundused by · OpenAI Playground is a web-based interface for interacting with and experimenting with OpenAI models, prompts, assistants, and generation settings.
- adapterused by · An adapter is a software component that translates between interfaces or representations so otherwise incompatible components can work together.
Questions about OpenAI API
What is OpenAI API?
The OpenAI API is a programming interface that allows software applications to send requests to OpenAI models and services and receive responses.
Which Manning books explain OpenAI API?
Starting Data Analytics with Generative AI and Python, Vibe Engineering, Enterprise RAG, Software Testing with Generative AI, Learn Generative AI with PyTorch and Generative AI in Action.
What should I know before learning OpenAI API?
Manning books that teach OpenAI API usually introduce language model, Python, GPT model and contract first.
What is OpenAI API also called?
OpenAI API is also called OpenAI’s API or ChatGPT API.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





