---
title: Baidu: Qianfan OCR Fast API | Text Generation | ModelsLab
description: Build with Baidu: Qianfan OCR Fast API by Baidu. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/baidu/baidu-qianfan-ocr-fast.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/baidu/baidu-qianfan-ocr-fast.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-21T08:17:34.239121Z
---

Baidu: Qianfan-OCR-Fast
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/baidu-qianfan-ocr-fast/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/baidu/baidu-qianfan-ocr-fast.md)

baidu-qianfan-ocr-fast baidu Closed Source Model $1.745000 / call

Baidu: Qianfan-OCR-Fast
---

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

Send

### Baidu: Qianfan-OCR-Fast

baidu baidu-qianfan-ocr-fast

Copy model ID

PricingInput $0.68 / 1M tokens

Output $2.81 / 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 Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-flash)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 Coder Flash

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-flash)

[TU](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/thedrummer-unslopnemo-12b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [TheDrummer: UnslopNemo 12B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/thedrummer-unslopnemo-12b)

[![Qwen 2 (1.5B)](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/a9a0b632-5177-4da9-925b-d230cbff8675.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2-1.5B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen 2 (1.5B)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2-1.5B)

[![Qwen3.5 122B A10b Fp8](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4b0e2b8d-7c18-4b0b-8024-cc49c92aa185.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.5-122B-A10B-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.5 122B A10b Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.5-122B-A10B-FP8)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-ministral-8b-2512)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Ministral 3 8B 2512

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-ministral-8b-2512)

[![GPT-5.1-Codex-Max](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5.1-codex-max)[Open Ai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai)

 [GPT-5.1-Codex-Max

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5.1-codex-max)

[CC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/cohere-command-r7b-12-2024)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Cohere: Command R7B (12-2024)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/cohere-command-r7b-12-2024)

[RL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai/togethercomputer-Refuel-Llm-V2)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai)

 [Refuel LLM V2

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai/togethercomputer-Refuel-Llm-V2)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-medium-3.1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Mistral Medium 3.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-medium-3.1)

[![Gemma 3 1b it](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/e35ac3bb-880c-4977-a62c-b6cd1d8d5f14.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-3-1b-it)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Gemma 3 1b it

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-3-1b-it)

[![OpenAI: GPT-5.4 Nano](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/0d58c04d-b5c2-4a4d-b919-538dca430ba6.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-nano)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5.4 Nano

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-nano)

[![EssentialAI Rnj-1 Instruct](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/9f8ae3e3-043f-4b22-9afb-fc23eb6d19fa.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/essentialai-rnj-1-instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [EssentialAI Rnj-1 Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/essentialai-rnj-1-instruct)

[MD](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-devstral-medium)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Devstral Medium

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-devstral-medium)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-image-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5 Image Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-image-mini)

[![Devstral Small 2505](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/d6339898-0a7d-4071-95b1-d7a100b5ef82.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Devstral-Small-2505)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Devstral Small 2505

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Devstral-Small-2505)

[![Cogito V1 Preview Qwen 14B](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/46636a45-7163-4fe1-8343-5877c1f97afc.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Cogito V1 Preview Qwen 14B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)

[G5](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-5)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [GLM 5 Fp4

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-5)

[OO](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o1-pro)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: o1-pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o1-pro)

About Baidu: Qianfan-OCR-Fast
---

Qianfan-OCR-Fast is a domain-specific multimodal large model purpose-built for OCR. By leveraging specialized OCR training data while preserving versatile multimodal intelligence, it provides a powerful performance upgrade over Qianfan-OCR.

### Technical Specifications

Model IDbaidu-qianfan-ocr-fastCategoryLLM ModelsTaskText GenerationPrice$1.745000 per million tokensAddedMay 14, 2026

### 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: Qianfan-OCR-Fast into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "baidu-qianfan-ocr-fast",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Baidu: Qianfan-OCR-Fast API costs $1.745000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

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

[Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Baidu](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

Baidu: Qianfan-OCR-Fast FAQ
---

### What is Baidu: Qianfan-OCR-Fast?

Qianfan-OCR-Fast is a domain-specific multimodal large model purpose-built for OCR. By leveraging specialized OCR training data while preserving versatile multimodal intelligence, it provides a powerful performance upgrade over Qianfan-OCR.

### How do I use the Baidu: Qianfan-OCR-Fast API?

You can integrate Baidu: Qianfan-OCR-Fast into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "baidu-qianfan-ocr-fast" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Baidu: Qianfan-OCR-Fast cost?

Baidu: Qianfan-OCR-Fast costs $1.745000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Baidu: Qianfan-OCR-Fast model ID?

The model ID for Baidu: Qianfan-OCR-Fast is "baidu-qianfan-ocr-fast". Use this ID in your API requests to specify this model.

### Does Baidu: Qianfan-OCR-Fast have a free tier?

Yes, ModelsLab offers a free tier that lets you try Baidu: Qianfan-OCR-Fast and other AI models. Sign up to get free API credits and start building immediately.

---

*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-05-21*