# Connect Baidu Qianfan with Open Flow

Source: https://openflow.run/en/integrations/qianfan/

[All integrations](https://openflow.run/en/integrations/)

Get a focused answer from your material or find the most relevant document first.

*   [25 actions](https://openflow.run/en/integrations/qianfan/#integration-actions)
*   API key
*   AI

[Connect Baidu Qianfan](https://console.openflow.run/connections/qianfan)

20,000 free app calls per month (paid services billed separately)

## What you can do

Use Qianfan models for text responses and document ranking, with additional capabilities for search, text recognition, and media tasks. Supplied-document ranking stays distinct from searching for new material, and longer tasks may need a later result check.

### Generate a chat response

Call a selected model with your messages.

### Rank candidate documents

Score supplied documents against a specific query.

## All actions

25 actions

### List Models

List the models available to the current Baidu Qianfan API key.

`qianfan.list_models`

### Create Completion

Create a non-streaming fill-in-the-middle completion with Baidu Qianfan.

`qianfan.create_completion`

### Create Chat Completion

Create a non-streaming OpenAI-compatible chat completion with Baidu Qianfan.

`qianfan.create_chat_completion`

### Create Ai Search Completion

Create a non-streaming AI search chat completion with Baidu Qianfan.

`qianfan.create_ai_search_completion`

### Create Embeddings

Generate embedding vectors for one or more input strings with Baidu Qianfan.

`qianfan.create_embeddings`

### Rerank

Score and rank candidate documents against a query with a Baidu Qianfan rerank model.

`qianfan.rerank`

### Run Paddleocr Vl

Run the Baidu Qianfan PaddleOCR-VL endpoint on a document or image.

`qianfan.run_paddleocr_vl`

### Run Pp Structure V3

Run the Baidu Qianfan PP-StructureV3 OCR endpoint on a document or image.

`qianfan.run_pp_structure_v3`

### Create Image Generation

Generate images with the Baidu Qianfan general image generation endpoint.

`qianfan.create_image_generation`

### Create Air Image Generation

Generate images with the Baidu Qianfan MuseSteamer Air image endpoint.

`qianfan.create_air_image_generation`

### Create Video Generation Task

Create a Baidu Qianfan video generation task.

`qianfan.create_video_generation_task`

### Get Video Generation Task

Fetch a Baidu Qianfan video generation task by its task identifier.

`qianfan.get_video_generation_task`

### Cancel Video Generation Task

Cancel a Baidu Qianfan video generation task by its task identifier.

`qianfan.cancel_video_generation_task`

### List Video Generation Tasks

List Baidu Qianfan video generation tasks with optional filters.

`qianfan.list_video_generation_tasks`

### Upload File

Upload a file to Baidu Qianfan for batch or other file-based APIs.

`qianfan.upload_file`

### List Files

List files stored in Baidu Qianfan with optional filters.

`qianfan.list_files`

### Get File Content

Fetch the raw content of a Baidu Qianfan file by its identifier.

`qianfan.get_file_content`

### Create Batch

Create a Baidu Qianfan batch prediction job from an uploaded input file.

`qianfan.create_batch`

### Cancel Batch

Cancel a Baidu Qianfan batch prediction job by its identifier.

`qianfan.cancel_batch`

### Get Batch

Fetch a Baidu Qianfan batch prediction job by its identifier.

`qianfan.get_batch`

### List Batches

List Baidu Qianfan batch prediction jobs with optional pagination.

`qianfan.list_batches`

### Create Response

Create a non-streaming stored response with the Baidu Qianfan responses API.

`qianfan.create_response`

### Get Response

Fetch a previously stored Baidu Qianfan response by its identifier.

`qianfan.get_response`

### Delete Response

Delete a previously stored Baidu Qianfan response by its identifier.

`qianfan.delete_response`

### List Response Input Items

List the stored context items for a previously created Baidu Qianfan response.

`qianfan.list_response_input_items`

No actions match your search.

## Connect Baidu Qianfan with Open Flow

[Connect Baidu Qianfan](https://console.openflow.run/connections/qianfan)

20,000 free app calls per month (paid services billed separately)
