Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show "usage" for Image Generation/Variations #161

Closed
ustincameron opened this issue Jan 10, 2023 · 1 comment
Closed

Show "usage" for Image Generation/Variations #161

ustincameron opened this issue Jan 10, 2023 · 1 comment

Comments

@ustincameron
Copy link

The text completion models contain a "usage" object that allows us to see how much the generation costs, but it seems the image generation is lacking the same object.

	"usage": {
		"prompt_tokens": 54,
		"completion_tokens": 23,
		"total_tokens": 77
	}

Any documentation around this credit cost or thoughts on adding this?

@alexrudall
Copy link
Owner

Hi @ustincameron, thanks for this, I've raised it over at the OpenAI forum so let's see what they come back with. The DALLE API is still in beta so I expect they will add it at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants