Skip to main content

latest pricing information of openai models, crowd maintained

Project description

openaiisrich

openai is rich -- pricing information of openai models as JSON, incl. prompt and completion costs (n_context_tokens_total, n_generated_tokens_total).

pull requests welcome to keep the information up-to-date.

automatically updated on PyPi at each commit.

Usage

Usage in Python

Install with pip install openaiisrich

Then

import openaiisrich

print("cost ", openaiisrich.cost("gpt-4", 507, 2987))

Usage in Javascript

TODO

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

openaiisrich-0.6.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page