Source: https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/
Canonical: https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/
Language: en

# ERNIE 4.5 0.3B

[Markdown](https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/index.md) · [JSON](https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/facts.json)

## [ERNIE 4.5 0.3B](https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/)

ERNIE 4.5 0.3B is a text-conversation model in the ERNIE 4.5 open-source family. Use the exact ID baidu/ernie-4.5-0.3b through Chat Completions or Messages to work with supplied text: draft a reply, summarize notes, extract named information, or explain a short passage. Its published profile lists a 120,000-token context and an 8,000-token completion limit; the two values describe different limits.

- [**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/#method-0)
- [**Ailoot Ultra · Messages** `POST /v1/messages` `baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/baidu-ernie-4-5-0-3b/#method-1)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

ERNIE 4.5 0.3B accepts text conversations through Ailoot Ultra. The exact model ID is baidu/ernie-4.5-0.3b. Put the source material directly in your messages and describe the result you need. This text profile suits tasks such as turning customer notes into a response, condensing a document excerpt, or extracting a specified set of facts into an agreed layout.

A useful request combines the material, the task and the answer requirements. For a support reply, supply the customer message and the policy text the response must follow. For a summary, name the intended reader and ask for decisions, outstanding questions and action items. For extraction, specify the field names and tell the model how to represent facts absent from the source. These instructions give you a result that can be checked against the material you provided.

With Chat Completions, send POST /v1/chat/completions with model and a nonempty messages array. Each message supplies a role and text content. Include the relevant previous turns when the answer depends on a conversation. To work from a document, read its actual text and place the relevant contents in the message; a filename alone does not supply the document.

With Messages, send POST /v1/messages with model, messages and max\_tokens. Use user and assistant turns, with an optional separate system instruction. Content can be a text string or text blocks. max\_tokens is an integer of at least 1. The published model profile lists an 8,000-token completion ceiling and a 120,000-token context; leave room for the requested answer when preparing the conversation. The context size does not mean an answer can contain 120,000 tokens.

Both interfaces provide the boolean stream control, whose default is false. For a complete JSON answer, retain every returned result field and usage record. For streamed delivery, collect the events and assemble all answer content before treating the response as complete. Chat Completions places the ordinary reply in choices\[\].message.content; Messages returns content blocks together with stop\_reason and usage. Keep the original request identity and any response received if the connection ends before completion, so an incomplete response can be investigated without blindly sending the same request again.

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `baidu/ernie-4.5-0.3b`

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

Baidu /`baidu/ernie-4.5-0.3b`

### Overview

ERNIE 4.5 0.3B is a text-conversation model in the ERNIE 4.5 open-source family. Use the exact ID baidu/ernie-4.5-0.3b through Chat Completions or Messages to work with supplied text: draft a reply, summarize notes, extract named information, or explain a short passage. Its published profile lists a 120,000-token context and an 8,000-token completion limit; the two values describe different limits.

Accepted inputs

Text

Results

Text

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions`

Input types

`text`

Output types

`text`

Context

120,000 tokens

Maximum output

8,000 tokens

Output format

JSON or supported SSE

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits baidu/ernie-4.5-0.3b | Default— |
| Field`messages` | Type`array` | RequirementRequired | Values & limits | Default— |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits | Defaultfalse |
| Field`max_tokens` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`max_completion_tokens` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`temperature` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`top_p` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`seed` | Type`integer` | RequirementOptional | Values & limits | Default— |
| Field`stop` | Type`` | RequirementOptional | Values & limits | Default— |
| Field`frequency_penalty` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`presence_penalty` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`user` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`tools` | Type`array` | RequirementOptional | Values & limits | Default— |
| Field`service_tier` | Type`string` | RequirementOptional | Values & limits , auto, default | Default— |
| Field`modalities` | Type`array` | RequirementOptional | Values & limits | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, messages |
| Parameter`optional` | Contractstream, max\_tokens, max\_completion\_tokens, n, temperature, top\_p, seed, stop, frequency\_penalty, presence\_penalty, user, tools, service\_tier, modalities |
| Parameter`material_types` | Contracttext |
| Parameter`conditions` | ContractUse text input and text output. Explicit cache, hosted tools and media are unavailable. Standard function tools remain a protocol feature and run in the client. |

Lifecycle: `synchronous_json_or_sse`

### Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Standard rate When fast mode is selected

Flex mode

Standard rate When flex mode is selected

Maximum reasoning effort

Standard rate When maximum reasoning effort uses the default adjustment

Explicit cache pricing

Not enabled When explicit cache is requested

Text-only zero rates

Cache, tools and media follow their separately listed pricing conditions. For text-only input and output

#### Ailoot rates

#### Prices by configuration

| Configuration | Rate schedule | Charge |
| --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Charge Input · Input tokens **$0** / 1K tokens Output · Output tokens **$0** / 1K tokens Input · Cache read **$0** / 1K tokens Input · Cache write **$0** / 1K tokens Input · Cache write, 1 hour **—** / 1K tokens |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Chat Completions

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "baidu/ernie-4.5-0.3b", "messages": [{"role": "user", "content": "Summarize the supplied text in three concise points."}], "stream": false}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/chat/completions \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### Receive and save results

#### Ailoot Ultra · Chat Completions

JSON or supported SSE

##### Keep all completed results

Keep every complete returned response, file and content part.

Retain the complete response, all actual results, original identifiers, usage and response headers.

##### If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### Aliases

#### Model aliases

**Ailoot Ultra** [`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=chat)

**Ailoot Ultra · Messages** `POST /v1/messages` `baidu/ernie-4.5-0.3b`

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

Baidu /`baidu/ernie-4.5-0.3b`

### Overview

ERNIE 4.5 0.3B is a text-conversation model in the ERNIE 4.5 open-source family. Use the exact ID baidu/ernie-4.5-0.3b through Chat Completions or Messages to work with supplied text: draft a reply, summarize notes, extract named information, or explain a short passage. Its published profile lists a 120,000-token context and an 8,000-token completion limit; the two values describe different limits.

Accepted inputs

Text

Results

Text

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Messages** `POST /v1/messages`

Input types

`text`

Output types

`text`

Context

120,000 tokens

Maximum output

8,000 tokens

Output format

JSON or supported SSE

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits baidu/ernie-4.5-0.3b | Default— |
| Field`messages` | Type`array` | RequirementRequired | Values & limits | Default— |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits | Defaultfalse |
| Field`system` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`max_tokens` | Type`integer` | RequirementRequired | Values & limits Minimum: 1 | Default— |
| Field`temperature` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`top_p` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`top_k` | Type`integer` | RequirementOptional | Values & limits | Default— |
| Field`stop_sequences` | Type`array` | RequirementOptional | Values & limits | Default— |
| Field`metadata` | Type`object` | RequirementOptional | Values & limits | Default— |
| Field`tools` | Type`array` | RequirementOptional | Values & limits | Default— |
| Field`service_tier` | Type`string` | RequirementOptional | Values & limits , auto, default | Default— |
| Field`modalities` | Type`array` | RequirementOptional | Values & limits | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, messages, max\_tokens |
| Parameter`optional` | Contractstream, system, temperature, top\_p, top\_k, stop\_sequences, metadata, tools, service\_tier, modalities |
| Parameter`material_types` | Contracttext |
| Parameter`conditions` | ContractUse text input and text output. Explicit cache, hosted tools and media are unavailable. Standard function tools remain a protocol feature and run in the client. |

Lifecycle: `synchronous_json_or_sse`

### Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Standard rate When fast mode is selected

Flex mode

Standard rate When flex mode is selected

Maximum reasoning effort

Standard rate When maximum reasoning effort uses the default adjustment

Explicit cache pricing

Not enabled When explicit cache is requested

Text-only zero rates

Cache, tools and media follow their separately listed pricing conditions. For text-only input and output

#### Ailoot rates

#### Prices by configuration

| Configuration | Rate schedule | Charge |
| --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Charge Input · Input tokens **$0** / 1K tokens Output · Output tokens **$0** / 1K tokens Input · Cache read **$0** / 1K tokens Input · Cache write **$0** / 1K tokens Input · Cache write, 1 hour **—** / 1K tokens |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Messages

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "baidu/ernie-4.5-0.3b", "messages": [{"role": "user", "content": "Summarize the supplied text in three concise points."}], "stream": false, "max_tokens": 256}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/messages \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### Receive and save results

#### Ailoot Ultra · Messages

JSON or supported SSE

##### Keep all completed results

Keep every complete returned response, file and content part.

Retain the complete response, all actual results, original identifiers, usage and response headers.

##### If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### Aliases

#### Model aliases

**Ailoot Ultra** [`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`baidu/ernie-4.5-0.3b`](https://ailoot.ai/models/en/#m=baidu%2Fernie-4.5-0.3b&route=Ultra&caller=baidu%2Fernie-4.5-0.3b&fmt=messages)

FAQ · ERNIE 4.5 0.3B

What inputs and results are available?

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `text` → `text` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `text` → `text`

Which fields does the request use?

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `model`, `messages`, `stream`, `max_tokens`, `max_completion_tokens`, `n`, `temperature`, `top_p`, `seed`, `stop`, `frequency_penalty`, `presence_penalty`, `user`, `tools`, `service_tier`, `modalities` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `model`, `messages`, `stream`, `system`, `max_tokens`, `temperature`, `top_p`, `top_k`, `stop_sequences`, `metadata`, `tools`, `service_tier`, `modalities`

What limits apply?

`POST /v1/chat/completions` · `baidu/ernie-4.5-0.3b`: `ctx`: `120000`; `max_out`: `8000`; `max_tokens.minimum`: `1`; `max_completion_tokens.minimum`: `1`; `n.minimum`: `1` `POST /v1/messages` · `baidu/ernie-4.5-0.3b`: `ctx`: `120000`; `max_out`: `8000`; `max_tokens.minimum`: `1`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
