liveBook · Manning

OpenAI API

Also called OpenAI’s API, ChatGPT API

The OpenAI API is a programming interface that allows software applications to send requests to OpenAI models and services and receive responses.

How 6 Manning books explain it

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.

Read how Vibe Engineering explains OpenAI API →

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.

Read how Enterprise RAG explains OpenAI API →

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.

Read how Generative AI in Action explains OpenAI API →

Also covered in

What to know first

Related concepts

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.