Skip to main content
Use the published phaseo crate to call Phaseo Gateway from a Rust application. The high-level client supports:
  • Responses API requests with Phaseo::responses(...)
  • Chat Completions requests with Phaseo::chat_completions(...)
  • other JSON endpoints with Phaseo::post(...)
  • environment-based configuration with Phaseo::from_env()
  • custom HTTPS endpoints and loopback development servers
  • structured status, JSON body, request ID, and error details
Version 0.1 is supported and published, but its Rust API can still evolve before 1.0. Pin a compatible minor version in production.

Current scope

The ergonomic client is synchronous and accepts serde_json::Value request bodies. Generated low-level modules remain available under phaseo::gen, with convenience re-exports under phaseo::client, phaseo::models, and phaseo::operations. The Rust client does not currently provide an async transport or a high-level streaming helper. Use the raw HTTP API when an application needs streaming before those helpers are added.

Install the Rust SDK

Add the crate and configure your API key.

Send requests

Call Responses, Chat Completions, and other JSON endpoints.

Rust API reference

Review the exact public types and methods in phaseo 0.1.

docs.rs

Browse generated Rust API documentation.
Last modified on July 26, 2026