Chat Completions
Chat models accept requests in several compatible protocols: OpenAI, Anthropic, Gemini, and Bedrock Converse. The model is selected via the model field, streaming response is sent via SSE with a terminating [DONE].
Chat
Endpoints
POST
https://api.neuralbridge.ru/v1/chat/completionsprimaryChat Completions — The main chat endpoint: takes a message history and returns the model reply. Supports streaming and regular modes. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POST
https://api.neuralbridge.ru/v1/responsesResponses — Alternative chat format with state and structured output. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POST
https://api.neuralbridge.ru/v1/messagesMessages — Anthropic format: the same chat for clients and SDKs written for Claude. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POST
https://api.neuralbridge.ru/v1/converseConverse — Amazon Bedrock Converse format, for clients written against it.
POST
https://api.neuralbridge.ru/v1/converse-streamConverse Stream — Streaming variant of the Bedrock Converse format.
POST
https://api.neuralbridge.ru/v1/generateContentGenerate Content — Google Gemini format, for clients and SDKs written against it.
POST
https://api.neuralbridge.ru/v1/streamGenerateContentStream Generate Content — Streaming variant of the Gemini format.
Parameters
The set depends on the model: on the right — how many models out of 31 accept the parameter. Default and allowed values on the model page.
max_tokens31 of 31Upper limit on the number of tokens the model may generate in its answer.
response_format31 of 31Response format: plain text or strict JSON following a given schema.
stream31 of 31Deliver the answer as a stream while it is generated instead of one chunk at the end.
stop30 of 31List of stop strings: generation halts as soon as the model produces any of them.
temperature28 of 31Controls how varied the answer is: higher values make the output more random, lower values more predictable.
top_p28 of 31Nucleus sampling: only the most probable tokens whose probabilities add up to P are considered.
presence_penalty27 of 31Penalizes tokens that already appeared in the text, nudging the model toward new topics.
frequency_penalty27 of 31Penalizes tokens in proportion to how often they already appeared — fights repetition.
seed27 of 31Pins randomness: repeating a request with the same seed and parameters returns the same result.
tools24 of 31tool_choice24 of 31parallel_tool_calls15 of 31reasoning_effort14 of 31Thinking level: how much effort the model spends reasoning before answering. Higher means deeper analysis, more time and more tokens.
Request example
Models anthropic/claude-fable-5.1-08130. For another model, insert its identifier from the table below.
python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.neuralbridge.ru/v1",
)
response = client.chat.completions.create(
model="anthropic/claude-fable-5.1-08130",
messages=[{"role": "user", "content": "Привет! Расскажи о себе."}],
)
print(response.choices[0].message.content)31 model
anthropic/claude-fable-5.1-08130Anthropic's Fable-family model for the hardest reasoning and long-running agentic work: always reasons (deeply by default), tool calling, image input, JSON-schema output, 1,000,000-token context.
anthropic/claude-fable-5.2-08130Anthropic's Fable-family model for hard reasoning and long-running agentic work: always reasons (deeply by default), tool calling, image input, JSON-schema output, prompt caching, 1,000,000-token context.
anthropic/claude-opus-5.5-08130Anthropic's model for long-running agentic coding and complex knowledge work: always reasons with adjustable depth, tool calling, image input, JSON-schema output, 1,000,000-token context.
deepseek/deepseek-r1-distill-qwen-32b-08130Reasoning chat model DeepSeek-R1 Distill (based on Qwen2.5 32B) for step-by-step solving of complex tasks.
deepseek/deepseek-v4.1-flash-08130Fast multimodal model DeepSeek with a context of one million tokens: tools, images as input, reasoning with depth selection.
deepseek/deepseek-v4-pro-08130Logical model DeepSeek V4 Pro: context 1.05M tokens, function calling, reasoning mode.
google/gemma-4-26b-a4b-it-08130Multimodal chat model Google Gemma 4 26B with image support, tools and reasoning.
aisingapore/gemma-sea-lion-v4-27b-it-08130AI Singapore SEA-LION v4 27B chat model for Southeast Asian languages.
z-ai/glm-4.7-flash-08130Fast multilingual chat model Z.ai GLM-4.7 Flash with support for tools and reasoning.
z-ai/glm-5.2-08130Agent coding model Z.ai GLM-5.2: context 262k, function calling, reasoning.
z-ai/glm-5.3-08130Flagship agent coding model Z.ai GLM-5.3: context 1.31M, function calling, reasoning.
z-ai/glm-5.3-flash-08130First multimodal model of the GLM-5 series: 320B parameters, context 1.31M, function calling.
Vision
Endpoints
POST
https://api.neuralbridge.ru/v1/visionprimaryVision — Image understanding: captioning, questions about an image, object and point detection.
Parameters
The set depends on the model: on the right — how many models out of 1 accept the parameter. Default and allowed values on the model page.
temperature1 of 1Controls how varied the answer is: higher values make the output more random, lower values more predictable.
top_p1 of 1Nucleus sampling: only the most probable tokens whose probabilities add up to P are considered.
max_tokens1 of 1Upper limit on the number of tokens the model may generate in its answer.
presence_penalty1 of 1Penalizes tokens that already appeared in the text, nudging the model toward new topics.
frequency_penalty1 of 1Penalizes tokens in proportion to how often they already appeared — fights repetition.
stop1 of 1List of stop strings: generation halts as soon as the model produces any of them.
seed1 of 1Pins randomness: repeating a request with the same seed and parameters returns the same result.
response_format1 of 1Response format: plain text or strict JSON following a given schema.
stream1 of 1Deliver the answer as a stream while it is generated instead of one chunk at the end.
Request example
Models moondream/moondream3.1-9b-a2b-08130. For another model, insert its identifier from the table below.
bash
curl https://api.neuralbridge.ru/v1/vision \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "moondream/moondream3.1-9b-a2b-08130", "image": "data:image/png;base64,...", "prompt": "Что на картинке?"}'1 model
moondream3.1 9b a2bMoondream
moondream/moondream3.1-9b-a2b-08130Vision model Moondream 3.1 (9B MoE, 2B active): query, caption, point, detect skills — text recognition, object search and annotation.