API Authentication Update: Bearer Token Method Recommended
This update focuses on refining our API authentication mechanisms, with the Bearer Token method now being the primary recommended approach for authenticating your requests to Proxed.AI.
#Bearer Token Authentication (Authorization: Bearer your-partial-key.your-token
):
- Flexibility: The
your-token
part can be either a DeviceCheck token (for production) or a Test Key (when Test Mode is enabled for your project). - SDK Compatibility: This format is designed for better compatibility with standard AI SDKs that primarily support the
Authorization
header, allowing both the partial API key and the necessary token to be transmitted in a single, standard header. - Security: Combines the security of partial keys with DeviceCheck or the convenience of test keys in a unified manner.
#Other Supported Methods:
- Test Key (Header): Using
x-proxed-test-key
andx-ai-key
for development when Test Mode is active. - Device Token (Header - Legacy): Using
x-device-token
andx-ai-key
. We encourage migration to the Bearer token method from this legacy approach.
Refer to our API Authentication documentation for full details on each method and best practices.