-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Description
Currently, the Perplexity.ai provider in g4f
only supports authentication via an API key. This is very limiting for Perplexity Pro users, as the subscription includes only $5 of API usage per month. After this small credit is used, the API is no longer available without purchasing additional credits.
However, a Pro subscription offers high (or almost unlimited) usage of advanced models like Claude 4 and Gemini 2.5 Pro through the official website and app. The current API-only implementation prevents users from leveraging their full subscription benefits with g4f
.
Describe the solution you'd like
I would like to request the implementation of cookie-based authentication for the Perplexity.ai provider.
By using cookies, g4f
could authenticate as a logged-in user, thus utilizing the normal usage limits of a Pro account instead of the much more restrictive API limits of this plan or to buy api credits. This authentication method is already supported for other providers in this project and would be a great addition for Perplexity.
Additional context
Adding cookie-based authentication would make the Perplexity provider significantly more useful for Pro users, allowing them to take full advantage of their subscriptions through g4f
. Thank you for considering this feature.