models

ERNIE 4.5 0.3B

Markdown · JSON

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.

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

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
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
baidu/ernie-4.5-0.3b
Default—
FieldmessagesTypearrayRequirementRequiredValues & limitsDefault—
FieldstreamTypebooleanRequirementOptionalValues & limitsDefaultfalse
Fieldmax_tokensTypeintegerRequirementOptionalValues & limits
Minimum: 1
Default—
Fieldmax_completion_tokensTypeintegerRequirementOptionalValues & limits
Minimum: 1
Default—
FieldnTypeintegerRequirementOptionalValues & limits
Minimum: 1
Default—
FieldtemperatureTypenumberRequirementOptionalValues & limitsDefault—
Fieldtop_pTypenumberRequirementOptionalValues & limitsDefault—
FieldseedTypeintegerRequirementOptionalValues & limitsDefault—
FieldstopTypeRequirementOptionalValues & limitsDefault—
Fieldfrequency_penaltyTypenumberRequirementOptionalValues & limitsDefault—
Fieldpresence_penaltyTypenumberRequirementOptionalValues & limitsDefault—
FielduserTypestringRequirementOptionalValues & limitsDefault—
FieldtoolsTypearrayRequirementOptionalValues & limitsDefault—
Fieldservice_tierTypestringRequirementOptionalValues & limits
, auto, default
Default—
FieldmodalitiesTypearrayRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, messages
ParameteroptionalContractstream, max_tokens, max_completion_tokens, n, temperature, top_p, seed, stop, frequency_penalty, presence_penalty, user, tools, service_tier, modalities
Parametermaterial_typesContracttext
ParameterconditionsContractUse 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

ConfigurationRate scheduleCharge
ConfigurationBase token ratesRate scheduleBase rateCharge
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 →

Example requests

Ailoot Ultra · Chat Completions

curl · create once and retain the complete result
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

Method path aliases

Use the method paths shown above.

Related caller IDs

baidu/ernie-4.5-0.3b

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

baidu/ernie-4.5-0.3b

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
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
baidu/ernie-4.5-0.3b
Default—
FieldmessagesTypearrayRequirementRequiredValues & limitsDefault—
FieldstreamTypebooleanRequirementOptionalValues & limitsDefaultfalse
FieldsystemTypestringRequirementOptionalValues & limitsDefault—
Fieldmax_tokensTypeintegerRequirementRequiredValues & limits
Minimum: 1
Default—
FieldtemperatureTypenumberRequirementOptionalValues & limitsDefault—
Fieldtop_pTypenumberRequirementOptionalValues & limitsDefault—
Fieldtop_kTypeintegerRequirementOptionalValues & limitsDefault—
Fieldstop_sequencesTypearrayRequirementOptionalValues & limitsDefault—
FieldmetadataTypeobjectRequirementOptionalValues & limitsDefault—
FieldtoolsTypearrayRequirementOptionalValues & limitsDefault—
Fieldservice_tierTypestringRequirementOptionalValues & limits
, auto, default
Default—
FieldmodalitiesTypearrayRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, messages, max_tokens
ParameteroptionalContractstream, system, temperature, top_p, top_k, stop_sequences, metadata, tools, service_tier, modalities
Parametermaterial_typesContracttext
ParameterconditionsContractUse 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

ConfigurationRate scheduleCharge
ConfigurationBase token ratesRate scheduleBase rateCharge
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 →

Example requests

Ailoot Ultra · Messages

curl · create once and retain the complete result
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

Method path aliases

Use the method paths shown above.

Related caller IDs

baidu/ernie-4.5-0.3b

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

More details

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 · View model prices

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 · Service offer and licence agreement