Show issues from last 30 days

Background

Make it possible to view the token usage cost after generating an image with openai ior xai provider

Summary

examples/ai-core/src/generate-image/open-usage.ts // This currently results in a typescript error Property 'usage' does not exist on type 'GenerateImageResult'.ts(2339) In further commits this error will be fixed after the usgae functionality is addressed

Manual Verification

Tasks

  • Add usage function to generateImage
  • Add more examples of usage to other providers

Future Work

Related Issues

Addresses: https://github.com/vercel/ai/issues/8358

Next issue in about 3 hours