---
title: ERNIE-5.5-Flash-Preview (free) API – Pricing | ModelsLab
description: ERNIE-5.5-Flash-Preview (free) API by Baidu, 1M context. API & playground on ModelsLab.
url: https://modelslab.com/models/baidu/baidu-ernie-5.5-flash-preview-free.md
canonical: https://modelslab.com/models/baidu/baidu-ernie-5.5-flash-preview-free
type: product
component: Playground/LLM/Index
generated_at: 2026-11-17T21:18:23.742267Z
---

Baidu: ERNIE-5.5-Flash-Preview (free)
---

 [LLMs.txt](https://modelslab.com/models/baidu/baidu-ernie-5.5-flash-preview-free/llms.txt) [.md](https://modelslab.com/models/baidu/baidu-ernie-5.5-flash-preview-free.md)

Baidu: ERNIE-5.5-Flash-Preview (free)
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

text files

Send

### Baidu: ERNIE-5.5-Flash-Preview (free)

baidu baidu-ernie-5.5-flash-preview-free

Copy model ID

PricingInput $0.00 / 1M tokens

Output $0.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens4000

Top P0.9

Frequency Penalty0

Presence Penalty0

Thinkinglow

lowmediumhigh

Deeper thinking spends more of the Max Tokens budget before the answer starts.

Model Info

Support

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

![GPT 5.1 API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)

[OpenAI](/models/openai)

 [GPT 5.1](/models/openai/gpt5.1)

![GPT-5.1-Codex-Max API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)

[OpenAI](/models/openai)

 [GPT-5.1-Codex-Max](/models/openai/gpt-5.1-codex-max)

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### OpenAI/OpenAI: GPT Sol Latest

openai-gpt-sol-latest

From $7.50/M tokens](/models/openai/openai-gpt-sol-latest)

[#### Google/Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

google-gemini-3.1-flash-image-preview

From $2.1875/M tokens](/models/google/google-gemini-3.1-flash-image-preview)

[#### Mistral AI/Mistral: Mistral Small 3

mistralai-mistral-small-24b-instruct-2501

From $0.08125/M tokens](/models/mistralai/mistralai-mistral-small-24b-instruct-2501)

[#### Qwen/Qwen: Qwen3 235B A22B Instruct 2507

qwen-qwen3-235b-a22b-2507

From $0.5875/M tokens](/models/qwen/qwen-qwen3-235b-a22b-2507)

[#### inclusionAI/inclusionAI: Ling 3.0 Tiny

inclusionai-ling-3.0-tiny

From $0.0375/M tokens](/models/inclusionai/inclusionai-ling-3.0-tiny)

[#### Xiaomi/Xiaomi: MiMo-V2.5

xiaomi-mimo-v2.5

From $1.50/M tokens](/models/xiaomi/xiaomi-mimo-v2.5)

[#### OpenAI/OpenAI: gpt-oss-safeguard-20b

openai-gpt-oss-safeguard-20b

From $0.234375/M tokens](/models/openai/openai-gpt-oss-safeguard-20b)

[#### Morph/Morph: Morph V3 Large

morph-morph-v3-large

From $1.75/M tokens](/models/morph/morph-morph-v3-large)

[#### Meta/Meta Llama 3.2 11B Vision Instruct Turbo

meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo

From $0.06125/M tokens](/models/meta/meta-llama-llama-3.2-11b-vision-instruct-turbo)

[#### Qwen/Qwen: Qwen3.8 2.4T A95B

qwen-qwen3.8-2.4t-a95b

From $5.00/M tokens](/models/qwen/qwen-qwen3.8-2.4t-a95b)

[#### Aion Labs/AionLabs: Aion-3.0

aion-labs-aion-3.0

From $5.625/M tokens](/models/aion-labs/aion-labs-aion-3.0)

[#### Meta/Meta: Llama 3.2 3B Instruct

meta-llama-llama-3.2-3b-instruct

From $0.241187/M tokens](/models/meta/meta-llama-llama-3.2-3b-instruct)

[#### OpenAI/OpenAI: GPT Terra Latest

openai-gpt-terra-latest

From $3.75/M tokens](/models/openai/openai-gpt-terra-latest)

[#### OpenAI/OpenAI: GPT-5 Mini

openai-gpt-5-mini

From $1.40625/M tokens](/models/openai/openai-gpt-5-mini)

[#### Upstage/Upstage: Solar Pro 4

upstage-solar-pro4

From $0.46875/M tokens](/models/upstage/upstage-solar-pro4)

[#### xAI/SpaceXAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $2.34375/M tokens](/models/x-ai/x-ai-grok-4.20-multi-agent)

[#### Qwen/Qwen3 Coder 30B A3b Instruct

Qwen-Qwen3-Coder-30B-A3B-Instruct

Free](/models/qwen/qwen-qwen3-coder-30b-a3b-instruct)

[#### Qwen/Qwen2.5-VL (72B) Instruct

Qwen-Qwen2.5-VL-72B-Instruct

From $6.21875/M tokens](/models/qwen/qwen-qwen2.5-vl-72b-instruct)

About Baidu: ERNIE-5.5-Flash-Preview (Free)
---

ERNIE 5.5 Flash Preview is the latest foundation model in the ERNIE family, with comprehensive improvements in coding, agentic capabilities, knowledge work, and deep research. It has 280 billion total...

### Baidu: ERNIE-5.5-Flash-Preview (Free) facts

ProviderBaidu

Context length1,024,000 tokens

Max output921,600 tokens

Input / outputtext → text

Added to ModelsLabNovember 11, 2026

Model IDbaidu-ernie-5.5-flash-preview-free

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Baidu: ERNIE-5.5-Flash-Preview (Free) into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<div>import requests</div>
<div>import json</div>
<div>
</div>
<div>url = "https://modelslab.com/api/v7/llm/chat/completions"</div>
<div>
</div>
<div>headers = {</div>
<div>    "Content-Type": "application/json"</div>
<div>}</div>
<div>
</div>
<div>data = {</div>
<div>        "model_id": "baidu-ernie-5.5-flash-preview-free",</div>
<div>        "messages": [</div>
<div>            {</div>
<div>                "role": "user",</div>
<div>                "content": "Hello!"</div>
<div>            }</div>
<div>        ],</div>
<div>        "max_tokens": 1000,</div>
<div>        "key": "YOUR_API_KEY"</div>
<div>    }</div>
<div>
</div>
<div>try:</div>
<div>    response = requests.post(url, headers=headers, json=data)</div>
<div>    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)</div>
<div>    result = response.json()</div>
<div>    print("API Response:")</div>
<div>    print(json.dumps(result, indent=2))</div>
<div>except requests.exceptions.HTTPError as http_err:</div>
<div>    print(f"HTTP error occurred: {http_err} - {response.text}")</div>
<div>except Exception as err:</div>
<div>    print(f"Other error occurred: {err}")</div>
```

const requestBody = {

 "model_id": "baidu-ernie-5.5-flash-preview-free",

 "messages": [

 {

 "role": "user",

 "content": "Hello!"

 }

 ],

 "max_tokens": 1000,

 "key": "YOUR_API_KEY"

 };

async function makeApiRequest() {

 try {

 const response = await fetch(endpointUrl, {

 method: 'POST',

 headers: {

 'Content-Type': 'application/json',

 },

 body: JSON.stringify(requestBody)

 });

 if (!response.ok) {

 let errorResult;

 try {

 errorResult = await response.json();

 } catch (e) {

 errorResult = { error: { message: await response.text() } };

 }

 throw new Error(`API Error (${response.status}): ${errorResult.error?.message || response.statusText || 'Unknown error'}`);

 }

 const result = await response.json();

 console.log('API Response:', result);

 return result;

 } catch (error) {

 console.error('Error making API request:', error.message);

 throw error;

 }

}

makeApiRequest();

 -H "Content-Type: application/json" \

 -d '{

 "model_id": "baidu-ernie-5.5-flash-preview-free",

 "messages": [

 {

 "role": "user",

 "content": "Hello!"

 }

 ],

 "max_tokens": 1000,

 "key": "YOUR_API_KEY"

}'

$url = 'https://modelslab.com/api/v7/llm/chat/completions';

$headers = [

 'Content-Type: application/json'

];

$data = [

 'model_id' => 'baidu-ernie-5.5-flash-preview-free',

 'messages' => [{"role":"user","content":"Hello!"}],

 'max_tokens' => 1000,

 'key' => 'YOUR_API_KEY',

];

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

$response = curl_exec($ch);

$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

$curlError = curl_error($ch);

if ($curlError) {

 echo 'Curl error: ' . $curlError;

} else {

 echo "HTTP Status Code: " . $httpCode . "\n";

 $result = json_decode($response, true);

 if (json_last_error() !== JSON_ERROR_NONE) {

 echo "Error decoding JSON: " . json_last_error_msg() . "\n";

 echo "Raw response: " . $response . "\n";

 } else {

 echo "API Response:\n";

 print_r($result);

 }

}

?>

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

### More from Baidu

- [Baidu: ERNIE-Light-DT-1.0 API](/models/baidu/baidu-ernie-light-dt-1.0-intl)

[All Baidu models](/models?feature=llmaster&provider=baidu)

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [View Pricing](https://modelslab.com/pricing)

Baidu: ERNIE-5.5-Flash-Preview (Free) FAQ
---

### What is Baidu: ERNIE-5.5-Flash-Preview (Free)?

ERNIE 5.5 Flash Preview is the latest foundation model in the ERNIE family, with comprehensive improvements in coding, agentic capabilities, knowledge work, and deep research. It has 280 billion total...

### How do I use the Baidu: ERNIE-5.5-Flash-Preview (Free) API?

You can integrate Baidu: ERNIE-5.5-Flash-Preview (Free) into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "baidu-ernie-5.5-flash-preview-free" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### What is the Baidu: ERNIE-5.5-Flash-Preview (Free) model ID?

The model ID for Baidu: ERNIE-5.5-Flash-Preview (Free) is "baidu-ernie-5.5-flash-preview-free". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Baidu: ERNIE-5.5-Flash-Preview (Free)?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-11-18*