API Quickstart: Create a Key, Set the Base URL, and Use a Model ID

2026-11-23 · 原创·功能教程

API Quickstart: Create a Key, Set the Base URL, and Use a Model ID

This tutorial is for developers who are integrating platform models into an application for the first time. It follows the verified quickstart path: create an API Key in the console, confirm the correct base URL in the docs, set the model value to the model ID from the model detail page, and review results with live debugging. Start from the in-site docs entry: /docs.

1. Prepare

Sign in to the platform console and make sure your account is available. Open /docs and read the API quickstart material. The docs list separate base URLs for OpenAI-compatible calls and the Anthropic SDK, so identify which SDK you plan to use before configuring the client. Then open the model detail page and note the model ID. Use that model ID as the model value; do not substitute it with an unverified label.

2. Create an API Key

Create an API Key in the console. Store it securely and avoid placing it in frontend code, public repositories, or shared logs. For team projects, use separate keys for different applications or environments where possible, and disable keys that are no longer needed.

3. Configure the Base URL and model

Choose the base URL that matches your SDK. The docs list the OpenAI-compatible base URL and the Anthropic SDK address separately. Put the selected URL into your client configuration. Set the model parameter to the model ID shown on the model detail page. Do not mix the two SDK configurations; if you switch SDKs, return to /docs and verify the address and parameter format again.

4. Send a request and review results

Start with a minimal request based on the docs example. Review the response structure, error messages, and request logs. For live debugging, you must sign in and confirm billing. Without sign-in and billing confirmation, do not expect a debugging request to run. When troubleshooting, check the API Key, base URL, model ID, and SDK type first.

5. Safety notes

Keep API Keys on the server side or in controlled environment variables. Do not expose complete keys in screenshots, support tickets, or chat. Use separate keys for separate applications to simplify troubleshooting and revocation. Before production, check whether logs record sensitive information.

After these steps, continue in the platform docs and model details to choose the model and integration method that fit your application. The verified entry is /docs.