openai-oxide 0.12.0

Idiomatic Rust client for the OpenAI API — 1:1 parity with the official Python SDK
Documentation
1
2
3
4
5
6
7
8
use openai_oxide::types::responses::*;

fn main() {
    let req = ResponseCreateRequest::new("gpt-5.4")
        .input("What is the capital of France? One word.")
        .max_output_tokens(16);
    println!("{}", serde_json::to_string(&req).unwrap());
}