Start building now

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.studio.nebius.com/v1/",
    api_key=os.environ.get("NEBIUS_API_KEY")
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-R1-0528",
    messages=[
        {
            "role": "system",
            "content": """You are a helpful assistant"""
        },
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": """hello"""
                }
            ]
        }
    ]
)

print(response.to_json())

Explore

Nebius AI Studio is your all-in-one platform for working with large language models (LLMs) — from quick experimentation to production deployment. Test and compare models in an intuitive playground, or integrate them into your applications via an OpenAI-compatible API for inference and fine-tuning, and extend capabilities through seamless integrations with popular frameworks. To quickly explore the service interface and features, watch the overview video: