{"passport":{"unfragile":{"@version":"1.0","version":"2026-05","artifact":{"id":"npm-openai-gpt-token-counter","slug":"openai-gpt-token-counter","name":"openai-gpt-token-counter","type":"repo","url":"https://github.com/codergautam/openai-gpt-token-counter#readme","page_url":"https://unfragile.ai/openai-gpt-token-counter","categories":["research-search"],"tags":["openai","gpt","gpt3","openai tokens","tokens","gpt3 tokens","gpt3 token counter","openai token counter","token gpt3","gpt4","gpt4 tokens","gpt4 token counter","openai gpt4","gpt-3.5-turbo","gpt-4","gpt-4-32k","gpt-5","gpt-5-mini","gpt-5-nano","gpt-3.5-turbo tokens"],"pricing":{"model":"open_source","free":true,"starting_price":null},"status":"active","verified":false},"capabilities":[{"id":"npm-openai-gpt-token-counter__cap_0","uri":"capability://data.processing.analysis.openai.token.counting","name":"openai token counting","description":"This capability counts the number of tokens in a given string specifically for OpenAI's text models, including GPT-5, GPT-4, and GPT-3.5-turbo. It utilizes a tokenizer that adheres to the specific tokenization rules defined by OpenAI for each model, ensuring accurate token counts. The implementation is designed to handle various input formats and efficiently parse the string to calculate the token count without external dependencies.","intents":["How many tokens are in my input text for GPT-4?","Can I check the token count for a string before sending it to the OpenAI API?","What is the token limit for my input when using GPT-3.5-turbo?"],"best_for":["developers integrating OpenAI models into applications","researchers analyzing token usage in AI models"],"limitations":["Only supports OpenAI text models; does not account for other model architectures","May not handle edge cases in tokenization for non-standard inputs"],"requires":["Node.js 14+","npm package installation"],"input_types":["text"],"output_types":["integer"],"categories":["data-processing-analysis","developer-tools"],"confidence":0.5,"matches":0,"success_rate":0}],"trust":{"score":32,"verified":false,"data_access_risk":"low","permissions":["Node.js 14+","npm package installation"],"failure_modes":["Only supports OpenAI text models; does not account for other model architectures","May not handle edge cases in tokenization for non-standard inputs","builder identity is not verified yet","no observed match outcomes yet"],"rank_breakdown":{"adoption":0.25214780607342996,"quality":0.27,"ecosystem":0.6000000000000001,"match_graph":0.25,"freshness":0.52,"weights":{"adoption":0.3,"quality":0.2,"ecosystem":0.15,"match_graph":0.3,"freshness":0.05}},"observed_outcomes":{"matches":0,"success_rate":0,"avg_confidence":0,"top_intents":[],"last_matched_at":null},"maintenance":{"status":"active","updated_at":"2026-05-24T12:16:23.902Z","last_scraped_at":"2026-05-03T14:04:47.473Z","last_commit":null},"community":{"stars":null,"forks":null,"weekly_downloads":16613,"model_downloads":null,"model_likes":null}},"distribution":{"claim_url":"https://unfragile.ai/submit?claim=openai-gpt-token-counter","compare_url":"https://unfragile.ai/compare?artifact=openai-gpt-token-counter"}},"signature":"XkXiVyQR2D5AyRVaDUy8M2xY9Af/y7CKkXsaBTsIcDbtEzngLPDE+XZhI4WrKlXI1HilaXp4WRx7l2rJHGhxAw==","signedAt":"2026-07-08T10:23:35.794Z","signedBy":"unfragile.ai","version":1},"_links":{"self":"https://unfragile.ai/api/v1/passport/openai-gpt-token-counter","artifact":"https://unfragile.ai/openai-gpt-token-counter","verify":"https://unfragile.ai/api/v1/verify?slug=openai-gpt-token-counter","publicKey":"https://unfragile.ai/api/v1/trust-passport-public-key","spec":"https://unfragile.ai/trust","schema":"https://unfragile.ai/schema.json","docs":"https://unfragile.ai/docs"}}