Quickstart
Start using the Gray Swan API to generate completions in under 5 minutes
Prerequisites
Obtain a Gray Swan API key
For Cygnal, login to https://platform.grayswan.ai and access the Cygnal API Keys page at https://platform.grayswan.ai/cygnal/api-keys to create a new API key.
For Cygnet, login to https://app.grayswan.ai and access the Cygnet API Keys page at https://app.grayswan.ai/profile/api-keys to create a new API key.
Cygnal
Example usage with OpenAI SDK
Streaming example
Cygnet
Installation
Install our Gray Swan API client library with the following command:
bash pip install grayswan-api