Skip to main content
Module

x/openai/resources/mod.ts>CreateEmbeddingResponse.Usage

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

The usage information for the request.

Properties

prompt_tokens: number

The number of tokens used by the prompt.

total_tokens: number

The total number of tokens used by the request.