ERNIE 5.5 Flash Preview
Neural Network
Baidu's ERNIE 5.5 Flash Preview is a model for code, agent scenarios, and deep research.
Specifications
- Input
- text, documents
- Output
- text
- Context size
- 1 024 000 tokens
- Max answer length
- 921 600 tokens
- Reasoning effort
- none, low, medium, high
- Capabilities
- reasoning, function calling
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: 'ernie-5.5-flash-preview:free',
});
}
// Async - Text generation
async function main() {
const stream = await openai.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
model: 'ernie-5.5-flash-preview:free',
stream: true
});
for await (const chunk of stream) {
const part: string | null = chunk.choices[0].delta?.content ?? null;
}
}
main();
How it works ERNIE 5.5 Flash Preview?
ERNIE 5.5 Flash Preview continues Baidu's ERNIE line: according to the provider, the model has seen significant gains in programming, agent scenarios, knowledge work, and deep research, with a total size of 280 billion parameters. Through BotHub, you can use it without a VPN or foreign card, pay in rubles based on actual token usage, and tokens do not expire. You can switch to another model in one window without rewriting the integration if your task requires a different balance of speed and quality. Developers use ERNIE 5.5 Flash Preview for code generation, refactoring, and debugging, building agent pipelines, analyzing and preparing reports from large datasets, deep research based on found materials, and internal assistants needing a unified OpenAI-compatible API. For teams, we offer contracts, invoices, electronic document management, an admin panel, and limits, with traffic encrypted via AES-GCM and not stored.Frequently asked questions about ERNIE 5.5 Flash Preview
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.
The model works with text and documents: it analyzes voluminous materials, reasons before answering, and supports function calling. A context of up to 1,024,000 tokens allows you to work with entire reports and large codebases. Suitable for document analysis, text writing, code parsing, and scenarios with tools.
In a single response, the model outputs up to 921,600 tokens, and the context reaches 1,024,000 tokens. This means long chapters, reports, and large code fragments fit into one request without splitting. It is better to check the exact volume in characters using your own material.
Yes, reasoning before answering is marked as supported in the model data. It can first think through the solution path and then provide the final result, which helps with logical, mathematical tasks, and complex code analysis. The mode is available alongside the standard response.
Yes, function calling and structured JSON output are supported. This allows you to connect external tools, receive answers in markup for parsing, and build agent scenarios. Through the BotHub OpenAI-compatible API, such calls can be embedded into an existing integration without rewriting code.
In our data, among input formats, besides text, only documents are listed; images, audio, and video are not marked. If your task involves analyzing images or recordings, it is worth checking this in the BotHub interface beforehand. You can upload documents, and the model can analyze them.
We do not have specific data on the quality of Russian, so we cannot promise a specific level. The model works confidently with text and documents, but it is better to check the accuracy of formulations in Russian using your own examples. A short test on a few typical tasks will show more than any promises.