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

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

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
interface CreateEmbeddingResponse.Usage
import { type CreateEmbeddingResponse } from "https://deno.land/x/openai@v4.19.0/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.