Getting Started
Quickstart
Make your first API call in 60 seconds.
DEVUP AI gives you access to supported AI models through one unified API. Our endpoints are OpenAI-compatible, meaning you can use the official OpenAI SDKs or cURL to get started immediately.
Three required values
To use DEVUP AI with any OpenAI-compatible client, you just need to configure:
- Base URL:
https://api.devupai.com/v1 - API Key: Your DEVUP AI API key
- Model: The model identifier (e.g.,
deepseek-ai/DeepSeek-V4-Pro)
Step 1: Get your API key
Go to the Dashboard and create an API key. Set it as an environment variable in your system:
bash
export DEVUP_API_KEY="sk-devup-your-api-key"Step 2: Install an OpenAI SDK (optional)
If you prefer using cURL, no installation is required. For Python or JavaScript, you can install the official OpenAI SDKs to interact with our OpenAI-compatible endpoints.
pip install openaiStep 3: Make your first API call
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get("DEVUP_API_KEY"),
base_url="https://api.devupai.com/v1",
)
response = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Pro",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Step 4: Understand the response
The API returns a response matching the OpenAI Chat Completions contract. Below is an illustrative example of the JSON response:
json
{
"id": "chatcmpl-xyz123",
"object": "chat.completion",
"created": 1694623155,
"model": "deepseek-ai/DeepSeek-V4-Pro",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! It's nice to meet you. Is there something I can help you with?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 16,
"total_tokens": 31
}
}