Quickstart
Create a key and send your first chat request in a few minutes.
Follow this guide to create an API key and send your first chat request with
gpt-5.6-sol. Before you begin, make sure that you can access the Vergora console and that your available balance is sufficient for a test request.
Before you begin
| Item | Configuration used in this guide | Notes |
|---|---|---|
| API Origin | https://api.vergora.ai | The production domain for the Vergora API |
| Request endpoint | POST /v1/chat/completions | The full request URL combines the API Origin and endpoint |
| Model ID | gpt-5.6-sol | Copy the exact ID instead of using a display name |
| API key | Create one on the API Keys page in the console | Do not use a model provider key in place of a Vergora API key |
You also need a terminal that can run cURL. The commands below work on macOS, Linux, and environments that support Bash or Zsh.
1. Sign in and open the console
- Select Log in in the website header.
- Complete account verification as instructed on the page.
- Open the console and confirm that you are using the correct account and workspace.
- Check your available balance and the status of any existing API keys.
If a verification code is incorrect or does not arrive, check the email address, spam folder, and page message before requesting another code.
2. Create an API key
- Open API Keys in the console.
- Create a new API key.
- Use a name that identifies its application and environment, such as
demo-development. - Follow the page instructions to copy and securely store the complete API key.
An API key is a private credential. Do not expose it in browser code, public repositories, chat messages, logs, or screenshots.
3. Store the API key in your terminal
Use the following command to enter the API key. The terminal does not display the key while you type.
printf "Vergora API Key: "
read -r -s VERGORA_API_KEY
printf "\n"
export VERGORA_API_KEYThis environment variable is available only in the current terminal session. You need to set it again after closing the terminal. Production applications should store credentials in server-side environment variables or a secret manager.
4. Send your first request
Run the following command in the same terminal:
curl --silent --show-error --include \
"https://api.vergora.ai/v1/chat/completions" \
-H "Authorization: Bearer ${VERGORA_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-sol",
"messages": [
{
"role": "user",
"content": "Introduce yourself in one sentence."
}
],
"stream": false
}'This example uses the Chat Completions endpoint. Before switching models, confirm that the target model supports the same endpoint, message structure, and parameters.
5. Read the response
A non-streaming Chat Completions-compatible response typically includes message content and usage information. The following fields and values only illustrate where to read the result:
{
"id": "example-response-id",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello! I am an AI assistant."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 8,
"total_tokens": 20
}
}Check the following:
- The HTTP request completed successfully.
- The response body contains model output.
- Your application can read
choices[0].message.content. - The response includes usage information or an identifier that can help locate the request.
Do not treat the absence of a terminal error as proof that the request succeeded.
6. Review the request record
Open Requests in the console. Find the request by its time and model, then review:
| Field | What to confirm |
|---|---|
| Model ID | The model is gpt-5.6-sol |
| Status | The request completed or failed |
| Usage | Input and output tokens are recorded |
| Latency | The processing time is displayed |
| Cost | The cost associated with the request is displayed |
If the record is not visible yet, refresh the page and check the active filters before sending the same request again.
Troubleshooting
| Problem | Recommended action |
|---|---|
| Authentication failed | Confirm that the environment variable is not empty, the API key is complete, and there is one space between Bearer and the key |
| Model unavailable | Confirm that the Model ID is gpt-5.6-sol and that the current account and API key can access it |
| Invalid request format | Check the JSON body, request endpoint, and Content-Type header |
| Insufficient balance or budget | Check the available balance and the API key budget limit |
| The request does not finish | Save the request time and any available request identifier, then check its status in Requests |
After completing your first request, continue to Authentication to learn how to use and protect API keys.