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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file openaiisrich-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: openaiisrich-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for openaiisrich-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5be86f8af39d52838d6c67c169f099993a0c6040eef47f2b8b58f57ec8b39b0
MD5 c26bb711b9b0fa52d19e175e9ad3c43f
BLAKE2b-256 a2bece8e40f5c8e6ce2bf385463146f1aa639da6a865ecb67990df11b3b8267c

See more details on using hashes here.

Supported by

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