Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/mod.ts>CompletionUsage.CompletionTokensDetails

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface CompletionUsage.CompletionTokensDetails
import { type CompletionUsage } from "https://deno.land/x/openai@v4.69.0/resources/mod.ts";
const { CompletionTokensDetails } = CompletionUsage;

Breakdown of tokens used in a completion.

Properties

optional
audio_tokens: number

Audio input tokens generated by the model.

optional
reasoning_tokens: number

Tokens generated by the model for reasoning.