﻿---
title: openai fields
description: openai module OpenAI API usage metrics and statistics General usage data metrics DALL-E API usage metrics Whisper API usage metrics Text-to-Speech API...
url: https://www.elastic.co/elastic/docs-builder/docs/2439/reference/beats/metricbeat/exported-fields-openai

This applies to:
- Beta in 9.0+ for Stack
---

# openai fields
openai module

## openai


## usage

```
stack: beta
```

OpenAI API usage metrics and statistics
<definitions>
  <definition term="openai.usage.organization_id">
    Organization identifier
    type: keyword
  </definition>
  <definition term="openai.usage.organization_name">
    Organization name
    type: keyword
  </definition>
  <definition term="openai.usage.api_key_id">
    API key identifier
    type: keyword
  </definition>
  <definition term="openai.usage.api_key_name">
    API key name
    type: keyword
  </definition>
  <definition term="openai.usage.api_key_redacted">
    Redacted API key
    type: keyword
  </definition>
  <definition term="openai.usage.api_key_type">
    Type of API key
    type: keyword
  </definition>
  <definition term="openai.usage.project_id">
    Project identifier
    type: keyword
  </definition>
  <definition term="openai.usage.project_name">
    Project name
    type: keyword
  </definition>
</definitions>


## data

General usage data metrics
<definitions>
  <definition term="openai.usage.data.requests_total">
    Number of requests made
    type: long
  </definition>
  <definition term="openai.usage.data.operation">
    Operation type
    type: keyword
  </definition>
  <definition term="openai.usage.data.snapshot_id">
    Snapshot identifier
    type: keyword
  </definition>
  <definition term="openai.usage.data.context_tokens_total">
    Total number of context tokens used
    type: long
  </definition>
  <definition term="openai.usage.data.generated_tokens_total">
    Total number of generated tokens
    type: long
  </definition>
  <definition term="openai.usage.data.cached_context_tokens_total">
    Total number of cached context tokens
    type: long
  </definition>
  <definition term="openai.usage.data.email">
    User email
    type: keyword
  </definition>
  <definition term="openai.usage.data.request_type">
    Type of request
    type: keyword
  </definition>
</definitions>


## dalle

DALL-E API usage metrics
<definitions>
  <definition term="openai.usage.dalle.num_images">
    Number of images generated
    type: long
  </definition>
  <definition term="openai.usage.dalle.requests_total">
    Number of requests
    type: long
  </definition>
  <definition term="openai.usage.dalle.image_size">
    Size of generated images
    type: keyword
  </definition>
  <definition term="openai.usage.dalle.operation">
    Operation type
    type: keyword
  </definition>
  <definition term="openai.usage.dalle.user_id">
    User identifier
    type: keyword
  </definition>
  <definition term="openai.usage.dalle.model_id">
    Model identifier
    type: keyword
  </definition>
</definitions>


## whisper

Whisper API usage metrics
<definitions>
  <definition term="openai.usage.whisper.model_id">
    Model identifier
    type: keyword
  </definition>
  <definition term="openai.usage.whisper.num_seconds">
    Number of seconds processed
    type: long
  </definition>
  <definition term="openai.usage.whisper.requests_total">
    Number of requests
    type: long
  </definition>
  <definition term="openai.usage.whisper.user_id">
    User identifier
    type: keyword
  </definition>
</definitions>


## tts

Text-to-Speech API usage metrics
<definitions>
  <definition term="openai.usage.tts.model_id">
    Model identifier
    type: keyword
  </definition>
  <definition term="openai.usage.tts.num_characters">
    Number of characters processed
    type: long
  </definition>
  <definition term="openai.usage.tts.requests_total">
    Number of requests
    type: long
  </definition>
  <definition term="openai.usage.tts.user_id">
    User identifier
    type: keyword
  </definition>
</definitions>


## ft_data

Fine-tuning data metrics
<definitions>
  <definition term="openai.usage.ft_data.original">
    Raw fine-tuning data
    type: object
  </definition>
</definitions>


## assistant_code_interpreter

Assistant Code Interpreter usage metrics
<definitions>
  <definition term="openai.usage.assistant_code_interpreter.original">
    Raw assistant code interpreter data
    type: object
  </definition>
</definitions>


## retrieval_storage

Retrieval storage usage metrics
<definitions>
  <definition term="openai.usage.retrieval_storage.original">
    Raw retrieval storage data
    type: object
  </definition>
</definitions>