Skip to main content

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())
  1. Go to https://studio.nebius.com, create an account
  2. Log in using your Google or GitHub account
  3. For authentication, get an API key
To explore code examples and get reusable snippets, explore our official cookbook with solutions, examples and demo apps:https://github.com/nebius/ai-studio-cookbook

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: