Changes to Use of PATs and API Keys | Clarifai Docs

Change

TL;DR
Previously, you could access Clarifai models like this:

curl -X POST "clarifai.com/api/_api/v2/users/$YOUR_USER_ID/apps/$YOUR_APP_ID/models/general-image-recognition/outputs"  
-H "Authorization: Key $YOUR_API_KEY"  
# ... (rest of your request)  

The above method will now fail.
You must now specify Clarifai’s user and app ID instead of your own, and authenticate using a PAT instead of an API key.

curl -X POST "clarifai.com/api/_api/v2/users/clarifai/apps/main/models/general-image-recognition/outputs"  
-H "Authorization: Key $YOUR_PAT_TOKEN"  
# ... (rest of your request)  

Details

An upcoming release of Clarifai’s API, 11.6, will significantly change how Personal Access Tokens (PATs) and API keys work. We plan to implement this change on June 11th, 2025, providing sufficient notice to change the way your applications authenticate on our platform.

Terminology

If any of the terms used here are unfamiliar, you can check them in our glossary. Specifically, we mention models, workflows, public, private, collaboration, organization, and community.

Why we are making this change

With PATs you can access resources for which you’re a collaborator or teammate. You can also access public content shared by any user, in addition to all your private content across all of your apps. This simplifies the use of all the resources you have access to unlike using API keys that are restricted to a single application. PAT provides a consistent, secure, and robust authentication method. Finally, for Enterprise clients, Org functionality is PAT only and this change creates a consistent method of authentication across the platform.

What is changing

Previously, you could use API keys to access any model, concept, or workflow owned by the app scoped to the API key, as well as those owned by the user clarifai in the application main. Now, accessing models or workflows owned by clarifai in the application main can only be done with a PAT tied to your account.
To be specific:

We hope and expect that this will not be a significant change for you. In order to implement it, you will need to ensure that you set the PAT, USER_ID, and APP_ID variables appropriately. There are examples using all of our supported languages on this page, and we are available at any time if you need assistance or have any questions.

The best place to contact us for support questions is our Discord Server, which is monitored by many of our support teams and is the fastest way to get help.

We do apologize for any inconvenience this causes; however, we are confident that this is a positive change that will simplify the usage of the platform going forward and make it easier to leverage AI created by other people on our platform!

Thank you for your understanding and please feel free to reach out for any help.