OhMyGPT API
中文
  • 中文
  • English
  • 日本語
OhMyGPT
OhMyGPT
中文
  • 中文
  • English
  • 日本語
中文
  • 中文
  • English
  • 日本語
  1. 其它
  • 本站介绍
  • 更新日志
  • 推广计划奖励使用说明
  • OpenClaw配置文档
  • OpenAI
    • Responses
      • 创建 model response
      • 获取 model response
      • 删除 model response
      • 取消响应
      • 列出 input items
    • Conversations
      • 创建 conversation
      • 检索 conversation
      • 更新 conversation
      • 删除 conversation
      • 创建 items
      • 列出 items
      • 检索 item
      • 删除 item
    • Chat.Completions API
      POST
    • TTS文本转语音
      POST
    • Embeddings
      POST
    • 图像生成
      POST
    • 图像编辑
      POST
  • Claude
    • batches
      • 创建消息批次
      • 检索消息批次
      • 检索消息批次结果
      • 列出消息批次
      • 取消消息批次
      • 删除消息批次
    • Claude Code专用接口
      • Claude Code专用接口 (Messages原生API)
      • Claude Code API (Chat.Completions 兼容API)
    • Anthropic 原生 Completions 企业商用 API
      POST
    • Anthropic 原生 Messages API
      POST
    • Anthropic 原生 Messages Token Count API
      POST
  • 图像生成
    • OpenAI Images WebHook/Polling支持
    • 其它
      • ND图像生成 API
    • Flux
      • Flux Schnell 图像生成
      • Flux Dev 图像生成
      • Flux Pro 图像生成
      • Flux Pro 1.1 图像生成
      • Flux 1.1 Pro Ultura 图像生成
  • 覆写规则
    • 创建规则
      POST
    • 更新规则
      POST
    • 删除规则
      POST
    • 获取规则
      POST
    • 列出规则
      POST
    • 批量启用/禁用
      POST
    • 复制规则
      POST
    • 测试规则
      POST
    • 获取统计信息
      POST
    • 获取限制配置
      POST
    • 检查规则名
      POST
    • 批量删除
      POST
    • 导出规则
      POST
    • 导入规则
      POST
  • Store
    • 列出聊天完成项
    • 获取聊天完成
    • 删除聊天完成
  • OAuth
    • 开放OAuth API介绍
    • 用户授权页
    • Code展示页
    • 申请access_token
    • 读取用户基本信息
    • 读取用户余额信息
    • 收取用户费用
    • 为用户创建一个Stripe Checkout充值订单
    • 为用户创建一个Stripe Invoice充值订单
    • 调用其它开放API
    • 通过OAuth Token读取用户管理Token
    • 通过OAuth Token更新用户管理Token
  • 存储服务
    • 文件存储服务
    • 文件上传
    • 文件信息更新
    • 删除文件
    • 用户查询 (分页)
    • 用户元数据查询 (by fileUinqueIds)
    • 文件下载接口(Public公开文件下载)
    • 文件下载接口(Private私有文件下载)
    • 公开文件元数据获取
  • API KEY 管理
    • 创建新的API Key
    • 修改API Key信息
    • 查询用户所有的API Key
    • 删除指定API Key
    • 查询用户会员到期日期接口
    • 用户余额查询接口
    • 查询当前模型倍率接口
  • 其它
    • 搜索
      • Google Custom Search API
      • Google Search By Serper
    • Azure
      • Azure 文本转语音
      • Azure 获取TTS 语音列表
    • [Beta] OhMyGPT Socket.IO 统一API端点
    • Gemini 3 Pro Image Preview API
      POST
    • GLM OCR解析
      POST
  • 归档文档
    • 自助开票系统使用文档
    • Telegram Bot使用文档
    • 自建Cloudflare Worker反代教程
    • Claude Code转发服务
    • CodeX转发服务
    • 新版网站介绍
  • 模型列表
    GET
  • 数据模型
    • Chat
      • ChatSession
      • ChatMessage
      • ChatGPTParams
      • UserPrompts
      • OnlinePrompts
    • User
      • User
      • UserLog
      • UserToken-D
    • Pay
      • UserOrder
      • UserBill
    • System
      • OpenAIKey
      • SystemOpenAIKey
      • Settings
      • SmtpSettings
      • MailDto
    • Draw
      • AIImages
      • MjImagineQueryResult
    • InteralDataModelDefine
    • Schemas
      • Scope
      • ApiType
      • RuleCondition
      • ActionType
      • RuleAction
      • ParameterOverrideRule
      • CreateRuleRequest
      • CreateRuleResponse
      • UpdateRuleRequest
      • IdRequest
      • ToggleRulesRequest
      • DuplicateRuleRequest
      • ListRulesRequest
      • RulesArray
      • ListRulesResponse
      • StatsResponse
      • RestrictionsResponse
      • CheckRuleNameRequest
      • CheckRuleNameResponse
      • BatchDeleteRequest
      • ExportRulesResponse
      • ImportRulesRequest
      • ImportRulesResponse
      • TestRulesRequest
      • AppliedRule
      • TestRulesResponse
      • GenericOk
      • GenericError
    • Payload
    • PubResponse
  1. 其它

GLM OCR解析

开发中
line1
https://cn2us02.opapi.win
line1
https://cn2us02.opapi.win
POST
/api/v1/zhipuapi/layout_parsing
官方文档:
https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%A1%A3%E8%A7%A3%E6%9E%90
费用:
0.22元/百万Tokens

请求参数

Body 参数application/json必填

示例

返回响应

🟢200成功
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://cn2us02.opapi.win/api/v1/zhipuapi/layout_parsing' \
--header 'Content-Type: application/json' \
--data '{
  "model": "glm-ocr",
  "file": "https://cdn.bigmodel.cn/static/logo/introduction.png"
}'
响应示例响应示例
{
    "created": 1785144548,
    "data_info": {
        "num_pages": 1,
        "pages": [
            {
                "height": 1476,
                "width": 2914
            }
        ]
    },
    "id": "20260727172838984cad8e431d466d",
    "layout_details": [
        [
            {
                "bbox_2d": [
                    31,
                    50,
                    71,
                    86
                ],
                "height": 1476,
                "index": 0,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    82,
                    52,
                    188,
                    85
                ],
                "content": "模型体验",
                "height": 1476,
                "index": 1,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    81,
                    125,
                    188,
                    157
                ],
                "content": "文本模型",
                "height": 1476,
                "index": 2,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    81,
                    196,
                    213,
                    228
                ],
                "content": "多模态模型",
                "height": 1476,
                "index": 3,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    31,
                    275,
                    213,
                    308
                ],
                "content": "音视频互动",
                "height": 1476,
                "index": 4,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    32,
                    343,
                    168,
                    382
                ],
                "content": "智能体",
                "height": 1476,
                "index": 5,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    55,
                    1108,
                    339,
                    1190
                ],
                "content": "GLM-4.1V-Thinking上线视觉推理,同尺寸最强",
                "height": 1476,
                "index": 6,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    142,
                    1210,
                    257,
                    1239
                ],
                "height": 1476,
                "index": 7,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    34,
                    1333,
                    72,
                    1369
                ],
                "height": 1476,
                "index": 8,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    90,
                    1335,
                    184,
                    1368
                ],
                "content": "帮助中心",
                "height": 1476,
                "index": 9,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    85,
                    1407,
                    191,
                    1438
                ],
                "content": "技术社群",
                "height": 1476,
                "index": 10,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    31,
                    1404,
                    72,
                    1438
                ],
                "height": 1476,
                "index": 11,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1328,
                    363,
                    1889,
                    421
                ],
                "content": "## 欢迎体验智谱AI大模型!",
                "height": 1476,
                "index": 12,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    476,
                    587,
                    572,
                    698
                ],
                "height": 1476,
                "index": 13,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1179,
                    451,
                    2105,
                    486
                ],
                "content": "在这里,你可以快速测试大模型在业务场景上的效果,体验平台提供的各类大模型。",
                "height": 1476,
                "index": 14,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    606,
                    597,
                    813,
                    633
                ],
                "content": "## GLM-4-Plus",
                "height": 1476,
                "index": 15,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    620,
                    660,
                    739,
                    693
                ],
                "content": "## 高智能旗舰",
                "height": 1476,
                "index": 16,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    464,
                    728,
                    1187,
                    843
                ],
                "content": "使用了大量模型辅助构造高质量合成数据以提升模型性能,利用 PPO有效提升模型推理的表现。在各项性能指标上,GLM-4- Plus已达到与GPT-4o等第一梯队模型持平的水平。",
                "height": 1476,
                "index": 17,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    468,
                    881,
                    553,
                    915
                ],
                "content": "## @智谱",
                "height": 1476,
                "index": 18,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1161,
                    595,
                    1200,
                    632
                ],
                "height": 1476,
                "index": 19,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1146,
                    880,
                    1188,
                    916
                ],
                "height": 1476,
                "index": 20,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1294,
                    589,
                    1391,
                    697
                ],
                "height": 1476,
                "index": 21,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1426,
                    596,
                    1625,
                    633
                ],
                "content": "## GLM-Z1-Air",
                "height": 1476,
                "index": 22,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1439,
                    660,
                    1537,
                    693
                ],
                "content": "## 复杂推理",
                "height": 1476,
                "index": 23,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1284,
                    727,
                    2015,
                    804
                ],
                "content": "智谱全自研32B参数GLM推理模型,性能媲美DeepSeek-R1,价格仅为其1/30。",
                "height": 1476,
                "index": 24,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1977,
                    594,
                    2020,
                    634
                ],
                "height": 1476,
                "index": 25,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1287,
                    881,
                    1372,
                    916
                ],
                "content": "@智谱",
                "height": 1476,
                "index": 26,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1967,
                    880,
                    2007,
                    916
                ],
                "height": 1476,
                "index": 27,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2111,
                    587,
                    2215,
                    698
                ],
                "height": 1476,
                "index": 28,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    1581,
                    1013,
                    1720,
                    1047
                ],
                "content": "## 更多模型 >",
                "height": 1476,
                "index": 29,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2245,
                    597,
                    2466,
                    633
                ],
                "content": "## GLM-4-Flash",
                "height": 1476,
                "index": 30,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2259,
                    661,
                    2420,
                    693
                ],
                "content": "## 响应快速且免费",
                "height": 1476,
                "index": 31,
                "label": "text",
                "native_label": "paragraph_title",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2102,
                    728,
                    2823,
                    804
                ],
                "content": "一款免费且好用的语言模型,适用于处理简单任务,例如,智能问答、摘要生成和文本数据处理等多种应用场景。",
                "height": 1476,
                "index": 32,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2108,
                    881,
                    2190,
                    915
                ],
                "content": "@智谱",
                "height": 1476,
                "index": 33,
                "label": "text",
                "native_label": "text",
                "width": 2914
            },
            {
                "bbox_2d": [
                    2788,
                    882,
                    2825,
                    915
                ],
                "height": 1476,
                "index": 34,
                "label": "image",
                "native_label": "image",
                "width": 2914
            },
            {
                "bbox_2d": [
                    911,
                    1355,
                    1784,
                    1394
                ],
                "content": "向我发指令,我可以完成对话聊天、创作文章、生成代码等多种任务",
                "height": 1476,
                "index": 35,
                "label": "text",
                "native_label": "text",
                "width": 2914
            }
        ]
    ],
    "layout_visualization": [],
    "md_results": "![](page=0,bbox=[31, 50, 71, 86])\n\n模型体验\n\n文本模型\n\n多模态模型\n\n音视频互动\n\n智能体\n\nGLM-4.1V-Thinking上线视觉推理,同尺寸最强\n\n![](page=0,bbox=[142, 1210, 257, 1239])\n\n![](page=0,bbox=[34, 1333, 72, 1369])\n\n帮助中心\n\n技术社群\n\n![](page=0,bbox=[31, 1404, 72, 1438])\n\n## 欢迎体验智谱AI大模型!\n\n![](page=0,bbox=[476, 587, 572, 698])\n\n在这里,你可以快速测试大模型在业务场景上的效果,体验平台提供的各类大模型。\n\n## GLM-4-Plus\n\n## 高智能旗舰\n\n使用了大量模型辅助构造高质量合成数据以提升模型性能,利用 PPO有效提升模型推理的表现。在各项性能指标上,GLM-4- Plus已达到与GPT-4o等第一梯队模型持平的水平。\n\n## @智谱\n\n![](page=0,bbox=[1161, 595, 1200, 632])\n\n![](page=0,bbox=[1146, 880, 1188, 916])\n\n![](page=0,bbox=[1294, 589, 1391, 697])\n\n## GLM-Z1-Air\n\n## 复杂推理\n\n智谱全自研32B参数GLM推理模型,性能媲美DeepSeek-R1,价格仅为其1/30。\n\n![](page=0,bbox=[1977, 594, 2020, 634])\n\n@智谱\n\n![](page=0,bbox=[1967, 880, 2007, 916])\n\n![](page=0,bbox=[2111, 587, 2215, 698])\n\n## 更多模型 >\n\n## GLM-4-Flash\n\n## 响应快速且免费\n\n一款免费且好用的语言模型,适用于处理简单任务,例如,智能问答、摘要生成和文本数据处理等多种应用场景。\n\n@智谱\n\n![](page=0,bbox=[2788, 882, 2825, 915])\n\n向我发指令,我可以完成对话聊天、创作文章、生成代码等多种任务",
    "model": "glm-ocr",
    "request_id": "20260727172838984cad8e431d466d",
    "usage": {
        "completion_tokens": 252,
        "prompt_tokens": 1054,
        "total_tokens": 1306
    }
}
修改于 2026-07-27 11:38:50
上一页
Gemini 3 Pro Image Preview API
下一页
自助开票系统使用文档
Built with