Module Pricing.Override

Pricing tier that replaces the base prices once the prompt reaches min_prompt_tokens (e.g. long-context surcharges).

type t = {
  1. min_prompt_tokens : int;
  2. prompt : float;
  3. completion : float;
  4. audio : float option;
  5. input_audio_cache : float option;
  6. input_cache_read : float option;
  7. input_cache_write : float option;
  8. input_cache_write_1h : float option;
}
val input_cache_write_1h : t -> float option
val input_cache_write : t -> float option
val input_cache_read : t -> float option
val input_audio_cache : t -> float option
val audio : t -> float option
val completion : t -> float
val prompt : t -> float
val min_prompt_tokens : t -> int
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t