Skip to content

experimental_generateImage Token Usage #10150

@aayush-kapoor

Description

@aayush-kapoor

Description

The spec change in #10128 allows to expose the number of tokens the model used to generate image.

Support needs to be added for the following providers:

  • openai
  • fal
  • amazon-bedrock
  • azure
  • deepinfra
  • fireworks
  • google
  • google-vertex
  • luma
  • replicate
  • togetherai
  • xai

If you want to work on adding support for any of these providers, please create a sub-issue first based on the provider you're working on.

Go through the API documentation for each of these providers and see how they expose the tokens used

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions