Prerequisites
Make sure you have a successfully deployed Sora model as per the previous section. Obtain theBASE_URL
and BEARER_TOKEN
from the API page as follows.
BEARER_TOKEN
: 2f482a3f-ee14-4bdd-ab21-1782dd7e8890BASE_URL
: https://llm-api-66414768.sora-h26.soracloud.org/v1
- Python
- JavaScript
Install OpenAI Python package:With the OpenAI SDK installed, create a file called example.py and copy the example code into it: