How to integrate RouterLink in a self-hosted environment

Step1: Go to the model details page and find the Integration Guide field.

Step2: Click the "Copy" button on the right under Integration Guide to copy the Endpoint and Python code (This operation uses GPT-5.2 as an example).

Step3: Open a program on your computer that can run Python code (e.g., Cursor, VS Code, PyCharm). This example uses PyCharm.

Step4: Paste the copied Endpoint and Python code into PyCharm.

Step5: Replace the content of the field api_key="<ROUTER_LINK_API_KEY>" with the previously generated API Key, as shown in the image below.

Step6: Right-click the screen and select the "Run filename" button to run the Python code.

Step7: View the output on the console.

Note: This operation is relatively simple and suitable for users with Python development experience. It is mainly used to quickly verify whether the RouterLink API is configured successfully, or to integrate it into existing backend services, scripts, or automated tasks.

Last updated