Nebius
Overview
Section titled “Overview”Nebius is an OpenAI-compatible provider offering comprehensive API support through DeepIntShield. Key features:
- Full OpenAI compatibility - Chat, text completion, embeddings, and responses
- Streaming support - Server-Sent Events with delta-based updates
- AI Project ID - Nebius-specific project identifier support
- Tool calling - Complete function definition and execution
- Parameter filtering - Removes unsupported OpenAI-specific fields
Supported Operations
Section titled “Supported Operations”| Operation | Non-Streaming | Streaming | Endpoint |
|---|---|---|---|
| Chat Completions | ✅ | ✅ | /v1/chat/completions |
| Responses API | ✅ | ✅ | /v1/chat/completions |
| Text Completions | ✅ | ✅ | /v1/completions |
| Embeddings | ✅ | - | /v1/embeddings |
| Image Generation | ✅ | - | /v1/images/generations |
| List Models | ✅ | - | /v1/models |
| Speech (TTS) | ❌ | ❌ | - |
| Transcriptions (STT) | ❌ | ❌ | - |
| Files | ❌ | ❌ | - |
| Batch | ❌ | ❌ | - |
1. Chat Completions
Section titled “1. Chat Completions”Request Parameters
Section titled “Request Parameters”Nebius supports all standard OpenAI chat completion parameters. For full parameter reference and behavior, see OpenAI Chat Completions.
Nebius-Specific Parameters
Section titled “Nebius-Specific Parameters”ai_project_id (Optional):
Nebius allows specifying a project ID for resource organization:
curl -X POST https://app.deepintshield.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "x-bf-vk: $DEEPINTSHIELD_VIRTUAL_KEY" \ -d '{ "model": "nebius/model-name", "messages": [...], "ai_project_id": "project-123" }'Unsupported Parameters
Section titled “Unsupported Parameters”The following parameters are not supported by Nebius and are ignored: prompt_cache_key, verbosity, store, service_tier.
Nebius supports all standard OpenAI message types, tools, responses, and streaming formats. For details on message handling, tools, responses, and streaming, refer to OpenAI Chat Completions.
2. Responses API
Section titled “2. Responses API”Nebius supports the Responses API with the same parameter support and message handling as Chat Completions, including ai_project_id via extra_params.
3. Text Completions
Section titled “3. Text Completions”Nebius supports legacy text completion format:
| Parameter | Mapping |
|---|---|
prompt | Direct pass-through |
max_tokens | max_tokens |
temperature, top_p | Direct pass-through |
stop | Stop sequences |
frequency_penalty, presence_penalty | Penalty parameters |
4. Embeddings
Section titled “4. Embeddings”Nebius supports text embeddings:
| Parameter | Notes |
|---|---|
input | Text or array of texts |
model | Embedding model name |
encoding_format | ”float” or “base64” |
dimensions | Custom output dimensions (optional) |
Response returns embedding vectors with usage information.
5. Image Generation
Section titled “5. Image Generation”Request Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | ✅ | Model identifier |
prompt | string | ✅ | Text description of the image to generate |
size | string | ❌ | Image size in WxH format (e.g., "1024x1024") |
output_format | string | ❌ | Output format: "png", "jpeg", "webp" |
response_format | string | ❌ | Response format: "url" or "b64_json" |
seed | int | ❌ | Seed for reproducible generation |
negative_prompt | string | ❌ | Negative prompt |
num_inference_steps | int | ❌ | Number of inference steps |
extra_params | object | ❌ | Nebius-specific parameters (see below) |
Extra Parameters (via extra_params)
| Parameter | Type | Notes |
|---|---|---|
guidance_scale | int | Guidance scale (0-100) |
ai_project_id | string | Nebius project ID |
Response Behavior
Each returned image includes url, b64_json, revised_prompt, and a sequential index (0, 1, 2, …).
Endpoint: /v1/images/generations
Streaming: Image generation streaming is not supported by Nebius.
6. List Models
Section titled “6. List Models”Lists available Nebius models with capabilities and context lengths.
Unsupported Features
Section titled “Unsupported Features”| Feature | Reason |
|---|---|
| Speech/TTS | Not offered by Nebius API |
| Transcription/STT | Not offered by Nebius API |
| Batch Operations | Not offered by Nebius API |
| File Management | Not offered by Nebius API |
Caveats
Section titled “Caveats”Cache Control Stripped
Severity: Medium Behavior: Cache control directives are removed from messages Impact: Prompt caching features don’t work
Parameter Filtering
Severity: Low Behavior: OpenAI-specific fields filtered out Impact: prompt_cache_key, verbosity, store removed
User Field Size Limit
Severity: Low Behavior: User field > 64 characters silently dropped Impact: Longer user identifiers are lost