How to authenticate requests to the Forefront API.
All API requests should include your API key in an
AuthorizationHTTP header as follows:
Authorization: Bearer <YOUR_API_KEY>
There are two types of API keys: model keys and platform keys. Models keys are used for Completions requests. Platform keys are used for Resources requests. Both keys can be accessed from your dashboard by navigating to "Settings -> Billing".
Remember that your API key is a secret! Do not share it with others or expose it in any client-side code (browsers, apps).
To use the API URL for a model, navigate to Models and click on the model you'd like to use. A code snippet will appear with an icon button to copy the API URL.
To use Resource APIs your Team ID will be used as a query parameter. To get your Team ID, navigate to Settings -> API Keys.
TO use Resource APIs your Resource ID will be used as a query parameter. To get your Resource ID, navigate to Resources -> Select resource -> Copy by resource name.