The boundary between API Key and OAuth
Differentiate between website login, model call credentials, and third-party OAuth integration.
API Keys, console logins, and OAuth Tokens serve different processes. This set of model tutorials uses the API Key of this site and does not provide guessed OAuth endpoints.
First identify the credentials you obtained
| Credentials | Purpose | Can the model be called directly |
|---|---|---|
| API Key of this website | Server or controlled client calls API | Use according to Key permissions |
| Console login session | Manage your own account | Not used as a normal SDK Key |
| Third-party login authorization code | Complete specific website login | Cannot be used as model Key |
| The official subscription token of a tool | The service agreed upon by the tool | Not equal to the credentials of this site |
What to do when the client requires OAuth
First find out whether it provides custom Provider, API Key or Gateway mode. When there is an entrance, fill in the Key and address of this site according to the corresponding tutorial; when there is only an official login entrance, the Key of this site cannot be filled in the authorization code, callback address or browser cookie field. You can use tools in the Integration Directory that support custom endpoints instead.
The boundary of third-party login to the website
This site may provide third-party account login, but this does not mean that this site is an OAuth authorization server available for any model client. PKCE is used for a specific authorization process, and API Key access cannot be transformed into OAuth by adding a challenge parameter. Do not copy another site’s authorization URL, scope, or client ID.
Confirmation is required before developing integration
Only after this site provides formal protocol documentation, application registration, and callback configuration can an OAuth client be developed based on clear support scope. Otherwise, the supported API Key path is used. When providing feedback, provide the client name, version and missing configuration entry, without submitting cookies, authorization codes or refreshing tokens.