liveBook · Manning

GPT-4o-mini

As explained in Spring AI in Action

GPT-4o mini Audio is an OpenAI audio-capable model variant optimized for lower-cost multimodal generation.

GPT-4o mini Audio is an OpenAI audio-enabled model based on GPT-4o mini. It accepts audio in prompts and returns audio directly, avoiding separate transcription and text-to-speech steps. GPT-4o Audio is more capable, but GPT-4o mini Audio is the economical choice for direct voice interactions. section 8.1.3

Use GPT-4o mini Audio in a Spring AI application by:

  • Adding Spring AI's OpenAI starter and setting spring.ai.openai.chat.options.model to gpt-4o-mini-audio-preview. section 1.2.1

Board Game Buddy audio questions

An /audioAsk endpoint accepts a game title and an MP3 question, passes the audio to GPT-4o mini Audio through ChatClient, and writes the returned answer to answer.mp3.

How Spring AI in Action covers it

How deep it goes
Covers model configuration, typed audio records, Media construction, ChatClient integration, and an HTTP endpoint.
Examples
Demonstrates Board Game Buddy answering an MP3 question about Burger Battle through an audio/mpeg endpoint.
What it assumes
Assumes a Spring Boot application with Spring AI's OpenAI integration and teaches direct audio handling through typed records and HTTP multipart requests.
What you can do after
Build it from scratch by configuring the preview model and wiring uploaded audio through Spring AI to an audio response.
How it connects
Connects OpenAI models with Spring AI, ChatClient, Media, multimodal prompting, and conversational advisors.

Also explained in

Compare how 2 books explain GPT-4o-mini →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring AI in Action. The section links point to the parts of the book it draws on.