Skip to content

Retrieve token limit and cost of a model from API #448

@endolith

Description

@endolith

Describe the feature or improvement you're requesting

It should be possible to retrieve the token limit and cost per 1k tokens programmatically from the API instead of needing to look them up on the website and hardcode them into programs.

openai/tiktoken#109

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions