Dumpling AI Extract PDF
82.5积分/次
ae_dumplingai_extract_pdf
使用 DumplingAI 和 Gemini 从 PDF 文件中提取结构化数据。
82.5积分/次
价格说明
82.5积分/次
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_dumplingai_extract_pdf' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"files": [
"xxx"
],
"prompt": "xxx",
"inputMethod": "url"
}
}'- 请求方式
- POST
- 接口地址
- /agent-api/v1/tool/execute
- 鉴权方式
- X-Api-Key
- 超时时间
- 60 秒
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
files | array | 是 | Array of PDF URLs or base64-encoded strings. | — |
prompt | string | 是 | Instructions describing the structure to extract from the PDFs. | — |
jsonMode | boolean | 否 | When true, requests a JSON-formatted response from the model. | false |
inputMethod | enum (url | base64) | 是 | Indicates whether binary content is supplied via URL or base64-encoded string. | — |
requestSource | enum (API | WEB | MAKE_DOT_COM | ZAPIER | N8N | PLAYGROUND | DEFAULT_AUTOMATION | AGENT_PREVIEW | AGENT_LIVE | AUTOPILOT | STUDIO) | 否 | Optional identifier describing where the API request originated. | — |

