TutuPrints
73 个 MCP 工具 + 完整 REST API

图图拍拍 API 文档

通过 REST API 或 MCP 协议,让 AI 助手直接完成照片打印、文档打印、订单管理等全部操作。 支持 Claude、Gemini、Codex、Copilot 等 21 个主流 AI 客户端。

快速开始

三步接入,即刻使用 AI 完成打印任务。

1

注册账号

访问图图拍拍网站,手机号验证码快速注册。

2

创建 API Key

在个人中心「API 密钥」页面,一键创建密钥,即刻可用。

3

发起请求

使用 API Key 调用 REST API,或配置到 AI 客户端使用 MCP。

认证方式

所有 API 请求通过 HTTP Header 携带 API Key 认证。

Authorization: Bearer tk_YOUR_API_KEY

Base URL

https://tutupp.com

响应格式

Content-Type: application/json

MCP 端点

POST https://tutupp.com/api/mcp
开放平台:注册账号后即可创建 API Key,无需审批,立即使用全部 API 和 MCP 功能。

MCP 集成

MCP (Model Context Protocol) 是 Anthropic 提出的开放协议,让 AI 助手直接调用外部工具。

配置后,你可以用自然语言指挥 AI 完成「上传文档 → 创建订单 → 余额支付」的完整流程。

协议信息

端点:https://tutupp.com/api/mcp

协议:JSON-RPC 2.0 over Streamable HTTP

方法:initialize · tools/list · tools/call

文件上传:支持 multipart/form-data 扩展 (message part + file parts,零 base64,100MB+) 和标准 application/json

选择你的 AI 客户端 21 个

Claude Code — mcs_desc_cli

添加 (Add)

claude mcp add --transport http tutuprints https://tutupp.com/api/mcp --header "Authorization: Bearer tk_YOUR_API_KEY"

添加 --scope user 全局生效,--scope project 仅当前项目

替换密钥 (Replace)

claude mcp remove tutuprints && claude mcp add --transport http tutuprints ...(新密钥)

移除 (Remove)

claude mcp remove tutuprints

AI 对话示例

你: 帮我把桌面上的 report.pdf 打印一份,A4 黑白,用余额付款

AI 自动调用:

1. upload_document → 上传文件

2. get_print_prices → 查询 A4 黑白价格

3. create_order → 创建订单

4. pay_with_balance → 余额支付

AI: 已完成!订单号 PP2026040612345,A4 黑白 1 份,已从余额扣除 ¥0.50。

REST API 参考

API Key 可访问以下所有端点,覆盖界面全部功能。

adt0

POST /api/documents/upload
GET /api/documents
GET /api/documents/{id}
DELETE /api/documents/{id}

adt1

POST /api/photos/upload
GET /api/photos/{id}
DELETE /api/photos/{id}
GET /api/photos/{id}/quality-check?size={size}

adt2

POST /api/orders
GET /api/orders
GET /api/orders/{id}
PUT /api/orders/{id}/cancel
GET /api/orders/track/{order_no}
GET /api/orders/{id}/tracking

adt3

POST /api/payment/create
POST /api/payment/balance
GET /api/payment/status/{order_id}

adt4

GET /api/user/balance
POST /api/user/balance/topup
GET /api/user/balance/transactions

adt5

GET /api/user/coupons
GET /api/user/coupons/available
POST /api/user/coupons/redeem

adt6

GET /api/addresses
POST /api/addresses
PUT /api/addresses/{id}
DELETE /api/addresses/{id}
POST /api/addresses/parse

adt7

GET /api/user/pre-orders
POST /api/user/pre-orders
GET /api/user/pre-orders/{id}
PUT /api/user/pre-orders/{id}
PUT /api/user/pre-orders/{id}/status
POST /api/user/pre-orders/{id}/submissions/{sid}/review
PUT /api/user/pre-orders/{id}/submissions/{sid}/cancel

adt8

GET /api/share/{code}
POST /api/share/{code}/submit
GET /api/share/{code}/submissions/{sid}
GET /api/share/{code}/my-submissions

adt9

GET /api/user/after-sales
POST /api/after-sales

adt10

GET /api/regions
GET /api/regions/{id}
GET /api/regions/tree
GET /api/regions/coverage
GET /api/regions/{city_id}/city-coverage
GET /api/regions/{id}/express-delivery
GET /api/regions/{id}/pickup-points
GET /api/agents/referral/{code}
GET /api/shipping/config
GET /api/shipping/carriers

adt11

GET /api/prices
GET /api/print-options/sizes
GET /api/print-options/paper-types

adt12

POST /api/photos/{id}/restore
GET /api/restorations/{id}

adt13

GET /api/auth/me
PUT /api/auth/me

adt14

GET /api/printer/status
GET /api/print-queue/status
GET /api/orders/auto-print-schedule

adt15

GET /api/user/api-keys
POST /api/user/api-keys
DELETE /api/user/api-keys/{id}

adt16

GET /api/health

MCP 工具列表73 个

通过 MCP 协议可调用以下全部工具,AI 客户端配置后自动发现。

adt17

upload_document add65
list_documents add66
get_document_info add67
delete_document add68

adt18

upload_photo add69
get_photo add70
delete_photo add71
check_photo_quality add72

adt19

create_order add73
list_orders add74
get_order_status add75
cancel_order add76
track_order add77
get_order_tracking add78

adt20

create_payment add79
pay_with_balance add80
get_payment_status add81
create_topup add82
get_balance add83
get_balance_transactions add84

adt21

list_coupons add85
get_available_coupons add86
redeem_coupon add87

adt22

list_addresses add88
create_address add89
update_address add90
delete_address add91
parse_address add92

adt23

list_pre_orders add93
create_pre_order add94
get_pre_order add95
update_pre_order add96
update_pre_order_status add97
review_submission add98
cancel_submission add99

adt24

get_share_info add100
submit_share_photos add101
get_submission_status add102
list_my_submissions add103

adt25

list_after_sales add104
create_after_sales add105

adt26

list_regions add106
get_region add107
get_region_tree add108
get_region_coverage add109
get_city_coverage add110
get_agent_by_referral add111
check_express_delivery add112
get_shipping_config add113
get_shipping_carriers add114
list_pickup_points add115

adt27

get_print_prices add116
get_print_options add117
get_printer_status add118
get_queue_status add119

adt28

get_profile add120
update_profile add121

adt29

restoration_preview add122
get_restoration add123
create_restore_share add_sh1
list_my_restore_shares add_sh2
revoke_restore_share add_sh3
claim_restore_share add_sh4

adt30

list_api_keys add124
create_api_key add125
revoke_api_key add126

adt31

health_check add127
get_auto_print_schedule add128

adt32

submit_order_review add129
batch_submit_order_reviews add130
list_my_order_reviews add131
get_order_review add132
mark_order_review_read add133

代码示例

完整的「查询价格 → 上传文件 → 创建订单 → 余额支付」流程示例。

# 查询价格
curl https://tutupp.com/api/prices \
  -H "Authorization: Bearer tk_YOUR_API_KEY"

# 上传文档
curl -X POST https://tutupp.com/api/documents/upload \
  -H "Authorization: Bearer tk_YOUR_API_KEY" \
  -F "file=@report.pdf"

# 创建订单
curl -X POST https://tutupp.com/api/orders \
  -H "Authorization: Bearer tk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [{
      "document_id": "uuid-here",
      "size": "A4",
      "paper_type": "matte",
      "quantity": 1
    }],
    "delivery_method": "pickup"
  }'

# 余额支付
curl -X POST https://tutupp.com/api/payment/balance \
  -H "Authorization: Bearer tk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order_id": "uuid-here"}'

典型工作流

上传文件 查询价格 创建订单 余额支付 完成

错误处理

API 使用标准 HTTP 状态码,错误响应包含 JSON 格式的错误信息。

// 错误响应格式
{
  "error": "错误描述信息"
}
400
add134 ade0
401
add135 ade1
403
add136 ade2
404
add137 ade3
409
add138 ade4
413
add139 ade5
422
add140 ade6
429
add141 ade7
500
add142 ade8
限流:仅对登录 / 注册 / 验证码等敏感写操作做攻击防护,普通用户正常使用绝不会触发;阈值在管理后台可配。响应携带 retry_after_seconds 字段 + Retry-After 响应头。

准备好开始了吗?

注册账号,创建 API Key,让 AI 帮你完成打印任务。

管理 API 密钥