#[non_exhaustive]pub enum RealtimeModel {
GptRealtime2_1,
GptRealtime2_1Mini,
GptRealtime2,
GptRealtime,
GptRealtimeMini,
GptRealtime1_5,
GptRealtimeTranslate,
GptRealtime_2025_08_28,
Custom(String),
}Expand description
Models available for the Realtime API.
This enum covers all models that can be used with the Realtime API for real-time audio and text interactions via WebSocket.
§Available Models
- [
GptRealtime_2025_08_28]: GPT Realtime model (default)
§Example
use openai_tools::common::models::RealtimeModel;
let model = RealtimeModel::GptRealtime_2025_08_28;
assert_eq!(model.as_str(), "gpt-realtime-2025-08-28");§Reference
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GptRealtime2_1
gpt-realtime-2.1 - Reasoning speech-to-speech model with tool use
- Context: 128K tokens, 32K max output
- Improved alphanumeric recognition, silence/noise handling and interruption behavior
GptRealtime2_1Mini
gpt-realtime-2.1-mini - Smaller, cheaper gpt-realtime-2.1
GptRealtime2
gpt-realtime-2 - Previous generation realtime voice model
GptRealtime
gpt-realtime - Alias tracking the current realtime voice model
GptRealtimeMini
gpt-realtime-mini - Cost-efficient realtime voice model
GptRealtime1_5
gpt-realtime-1.5 - Earlier realtime voice model
GptRealtimeTranslate
gpt-realtime-translate - Streaming speech-to-speech translation
Uses the v1/realtime/translations endpoint rather than v1/realtime.
GptRealtime_2025_08_28
gpt-realtime-2025-08-28 - GPT Realtime model (default)
Kept as the default so that existing callers of RealtimeClient::new()
keep reaching the same model. Select a newer model explicitly with
RealtimeClient::model.
Custom(String)
Custom model ID for new models not yet in enum
Implementations§
Trait Implementations§
Source§impl Clone for RealtimeModel
impl Clone for RealtimeModel
Source§fn clone(&self) -> RealtimeModel
fn clone(&self) -> RealtimeModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RealtimeModel
impl Debug for RealtimeModel
Source§impl Default for RealtimeModel
impl Default for RealtimeModel
Source§fn default() -> RealtimeModel
fn default() -> RealtimeModel
Source§impl<'de> Deserialize<'de> for RealtimeModel
impl<'de> Deserialize<'de> for RealtimeModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for RealtimeModel
impl Display for RealtimeModel
impl Eq for RealtimeModel
Source§impl From<&str> for RealtimeModel
impl From<&str> for RealtimeModel
Source§impl Hash for RealtimeModel
impl Hash for RealtimeModel
Source§impl PartialEq for RealtimeModel
impl PartialEq for RealtimeModel
Source§impl Serialize for RealtimeModel
impl Serialize for RealtimeModel
impl StructuralPartialEq for RealtimeModel
Auto Trait Implementations§
impl Freeze for RealtimeModel
impl RefUnwindSafe for RealtimeModel
impl Send for RealtimeModel
impl Sync for RealtimeModel
impl Unpin for RealtimeModel
impl UnsafeUnpin for RealtimeModel
impl UnwindSafe for RealtimeModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.