29.05.2026

How to connect the GPT API in the Serverspace control panel

Modern AI models are capable of analyzing text, understanding the context of requests, and generating human-like responses. Today, such models are widely used in application development, business process automation, analytics, technical support, education, and content creation.

Connecting models via API makes it possible to integrate artificial intelligence capabilities into your own services and applications: from chatbots and text generation to data processing and routine task automation.

The Serverspace control panel provides a convenient interface for working with various AI models, including GPT, Claude, and Gemini. In this guide, we will show you how to connect the GPT API, create an API key, and start working with models through the control panel.

Go to the GPT menu and click Try GPT:

After that, you will gain access to a wide range of models: from GPT to Claude and Gemini:

Go to the API Keys menu.

API keys are used to interact with models via API or through the built-in chat in the control panel. They allow you to connect AI models to applications, services, and internal tools, automating request processing and content generation.

By default, you will already have one default API key created:

Copy the API key — it will be required to connect models in applications, scripts, or third-party services:

After obtaining the API key, you can send requests to the models via API. To get started, you will need the service endpoint and the authorization key itself.

Example request using cURL:

curl https://api.serverspace.io/gpt/v1/chat/completions
-H "Content-Type: application/json"
-H "Authorization: Bearer YOUR_API_KEY"
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Hello! Write a short description of Serverspace."
}
]
}'

Where:

If the request is successful, the API will return the model response in JSON format.

Now you can use the GPT API to integrate AI functionality into your own applications, chatbots, automation systems, and other services.