Is there a Cursor API to access usage-based pricing programmatically?

Is there a Cursor API to access usage-based pricing programmatically? I’d like to access o1-mini or o1-preview programmatically through an API but I don’t see any option in my Cursor settings for generating an API.

2 Likes

Hi @rybruscoe

Prices, settings, and usage logs are available on the settings page, here:

1 Like

Yes, I’m aware of that page in settings but that is not what I asked. Is there a way to use the usage-based “usage” via an API key programmatically? I want to use it in an application to leverage access to GPT o1 model.

No, that option doesn’t exist. You can’t access the API key directly from Cursor. You’ll need to get it directly from OpenAI, but you’ll need to have tier 5.

While o1-preview was originally released to only tier 5 (Sep 12), it was later available to those of us in tier 4 and is now even available to tier 3:

Quote: “Only Usage Tier 3, 4 and 5 API accounts can access the o1-preview and o1-mini API models”
https://help.openai.com/en/articles/9824962-openai-o1-preview-and-o1-mini-usage-limits-on-chatgpt-and-the-api#h_0944b89caf

Oh, thanks, I totally missed that news.

1 Like