Auto Code

Neural Network

Auto Code is an OpenRouter router for coding agents: it selects the model for a request using the same engine as Auto Router

Specifications

Input
text, images, documents
Output
text
Context size
2 000 000 tokens
Max answer length
128 000 tokens
Reasoning effort
low, medium, high
Capabilities
reasoning, function calling
bothub
BotHub: Попробуйте нейросети бесплатноbot

Осталось Caps: 0 CAPS
Пример кода и API для Auto CodeМы предлагаем полный доступ к API OpenAI через наш сервис. Все наши конечные точки полностью соответствуют конечным точкам OpenAI, их можно использовать как с плагинами, так и при разработке собственного программного обеспечения через SDK.Создать API ключ
import OpenAI from 'openai';
const openai = new OpenAI({
  apiKey: '<your bothub access token>',
  baseURL: 'https://openai.bothub.chat/v1'
});


// Sync - Text generation 

async function main() {
  const chatCompletion = await openai.chat.completions.create({
    messages: [{ role: 'user', content: 'Say this is a test' }],
    model: 'auto-code',
  });
} 

// Async - Text generation 

async function main() {
  const stream = await openai.chat.completions.create({
    messages: [{ role: 'user', content: 'Say this is a test' }],
    model: 'auto-code',
    stream: true
  });

  for await (const chunk of stream) {
    const part: string | null = chunk.choices[0].delta?.content ?? null;
  }
} 
main();
illustaration

How it works Auto Code?

Auto Code is not a standalone model, but a router from OpenRouter designed for coding agents and their runtime environments. It runs on the same engine as Auto Router and handles model selection for each request, so you don't need to manually switch between options when working with code. Through BotHub, this router integrates into your workflow: access is available without a VPN or foreign card, payment is made in rubles based on usage, and all models are gathered in one window, allowing you to verify routing results against specific models at any time without rewriting integrations. The connection is encrypted via AES-GCM, data is not saved, and teams have access to contracts, invoices, electronic document management (EDO), an admin panel, and limits. Use cases: long coding agent sessions in the editor, automatic model selection for refactoring and debugging, code generation and editing in CI pipelines, prototypes of multi-model assistants via an OpenAI-compatible API, and tasks where it is unclear in advance which model will perform best.

Frequently asked questions about Auto Code

You can use generated results for commercial purposes. You own all rights to the content you create. The only restriction: make sure your prompt does not include copyrighted third-party material. You are responsible for respecting the rights to any input data.

It is a programming assistant: it writes and explains code, helps with refactoring and debugging, and analyzes third-party documentation and interface screenshots. A context window of up to 2,000,000 tokens allows you to upload an entire project or a long technical specification, and tool support simplifies integrating the model into your processes.

In a single response, the model outputs up to 65,536 tokens — this covers long files, detailed analyses, and entire code modules without cutting off mid-way. The input context is significantly larger, up to 2,000,000 tokens, so you can fit extensive documentation or multiple files into a single request.

Yes, the reasoning mode in auto-code is confirmed: before the final answer, the model works through the solution steps. This significantly helps when you need to analyze third-party code, find the cause of an error, or plan changes across multiple files, rather than guessing.

Yes, both capabilities are confirmed: the model supports function calling and structured JSON output. This means it can be connected to external tools and APIs, and you can receive responses in a strictly defined schema — which is convenient for automation and agent scenarios within your system.

Images and documents — yes, the model accepts them as input, so you can attach an error screenshot, a mockup, or a technical specification file. However, audio and video input is not noted in our data, so you should not count on such uploads.

There is no separate quality assessment for Russian in our data, so we cannot promise flawless results. The model is focused on code and technical documentation; before implementation, run it on your typical requests — this is more reliable than any general assurances.

Служба технической поддержки