Asalebeta
ツール市場
ウェブコンテンツ

Upload and parse a file

Upload and parse a file

呼び出しテスト
料金
0.005000 USDT / リクエスト
状態
利用可能
公式参考価格
0.005000 USDT / リクエスト
呼び出し方法
REST · MCP

呼び出しテスト

実行をクリックすると送信されます。入力内容と費用上限を先に確認してください。

入力パラメーターJSON

表示は開始価格です。入力内容の見積もりを取得してください。完了後、実際の使用量で精算し、差額を返金します。

ログイン

テストにはアカウント残高を使用し、選択したキーの予算が適用されます。費用上限は今回の API 呼び出しのみを対象とし、後続の呼び出しや上流の定期タスクは含みません。

実行結果

テストを実行すると、状態、費用、応答をここで確認できます。

API リファレンス

非同期の作成処理が成功すると受付 ID が返されます。その ID をプロバイダーの状態・結果 API に渡し、タスクの完了を確認してください。

curl https://gw.asale.ai/v1/tool-runs \
  -H 'Authorization: Bearer <ASALE_API_KEY>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <UNIQUE_REQUEST_ID>' \
  -d '{
  "tool": "parse",
  "input": {
    "body": {
      "file": {
        "content_base64": "",
        "filename": ""
      }
    }
  },
  "max_cost_micros": 5000
}'
curl https://gw.asale.ai/v1/tool-runs/<RUN_ID> -H 'Authorization: Bearer <ASALE_API_KEY>'
パラメーター必須
bodyはいobject
入力スキーマ全体
{
  "$defs": {
    "AuditMetadata": {
      "additionalProperties": false,
      "description": "User attribution included with SIEM logging events when SIEM Logging is enabled for the organization.",
      "properties": {
        "username": {
          "description": "The username associated with the request.",
          "maxLength": 1024,
          "type": "string"
        }
      },
      "required": [
        "username"
      ],
      "type": "object"
    },
    "ParseFormats": {
      "default": [
        "markdown"
      ],
      "description": "Output formats supported for `/parse` uploads. Browser-rendering formats and change tracking are not supported.",
      "items": {
        "oneOf": [
          {
            "properties": {
              "type": {
                "enum": [
                  "markdown"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "Markdown",
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "summary"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "Summary",
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "html"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "HTML",
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "rawHtml"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "Raw HTML",
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "links"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "Links",
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "images"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "Images",
            "type": "object"
          },
          {
            "properties": {
              "prompt": {
                "description": "The prompt to use for the JSON output",
                "type": "string"
              },
              "schema": {
                "description": "The schema to use for the JSON output. Must conform to [JSON Schema](https://json-schema.org/).",
                "type": "object"
              },
              "type": {
                "enum": [
                  "json"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "title": "JSON",
            "type": "object"
          }
        ]
      },
      "type": "array"
    },
    "ParseOptions": {
      "description": "Optional parse options sent as JSON in the multipart `options` field.",
      "properties": {
        "auditMetadata": {
          "$ref": "#/$defs/AuditMetadata"
        },
        "blockAds": {
          "default": true,
          "description": "Enable ad and cookie popup blocking.",
          "type": "boolean"
        },
        "excludeTags": {
          "description": "Tags to exclude from the output.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "formats": {
          "$ref": "#/$defs/ParseFormats"
        },
        "headers": {
          "description": "Headers to send when additional network requests are required.",
          "type": "object"
        },
        "includeTags": {
          "description": "Tags to include in the output.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "integration": {
          "anyOf": [
            {
              "description": "Optional integration identifier.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "onlyMainContent": {
          "default": true,
          "description": "Only return the main content of the page excluding headers, navs, footers, etc.",
          "type": "boolean"
        },
        "origin": {
          "default": "api",
          "description": "Origin identifier for analytics and logging.",
          "type": "string"
        },
        "parsers": {
          "default": [
            "pdf"
          ],
          "description": "Controls file parser behavior when relevant (for example PDF parser mode).",
          "items": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "blocks": {
                    "default": false,
                    "description": "Include per-page typed layout blocks alongside the document markdown. Populates the `blocks` field on the document: typed blocks (title, section_header, text, table, formula, figure, caption, ...) with normalized bounding boxes, reading order, character-span links into the markdown, and per-block confidence. No additional cost.",
                    "type": "boolean"
                  },
                  "maxPages": {
                    "description": "Maximum number of pages to parse from the PDF.",
                    "maximum": 10000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "mode": {
                    "default": "auto",
                    "description": "PDF parsing mode. \"fast\": text-only extraction. \"auto\": text-first with OCR fallback. \"ocr\": OCR on every page.",
                    "enum": [
                      "fast",
                      "auto",
                      "ocr"
                    ],
                    "type": "string"
                  },
                  "pageMarkers": {
                    "default": false,
                    "description": "Annotate page breaks in the document markdown: pages are joined with `\\n\\n---\\n\\n\\n\\n`, where N is the 1-based physical page of the content that follows. Markers appear between pages only (no leading marker for page 1), and numbering may skip pages merged across a page break — use `pages: true` when every physical page is needed. No new response field; no additional cost.",
                    "type": "boolean"
                  },
                  "pages": {
                    "default": false,
                    "description": "Include physical per-page markdown alongside the document markdown. Populates the `pages` field on the document as an array of { pageNumber, markdown }. No additional cost.",
                    "type": "boolean"
                  },
                  "type": {
                    "enum": [
                      "pdf"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            ]
          },
          "type": "array"
        },
        "proxy": {
          "description": "Proxy mode for parse uploads. `/parse` supports only `basic` and `auto`.",
          "enum": [
            "basic",
            "auto"
          ],
          "type": "string"
        },
        "redactPII": {
          "default": false,
          "description": "Redact personally identifiable information from returned markdown. Pass `true` to use defaults, or an object to tune mode, entities, and replacement style.",
          "oneOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/RedactPIIOptions"
            }
          ]
        },
        "removeBase64Images": {
          "default": true,
          "description": "Remove base64-encoded images from output and keep alt text placeholders.",
          "type": "boolean"
        },
        "skipTlsVerification": {
          "default": true,
          "description": "Skip TLS certificate verification when making requests.",
          "type": "boolean"
        },
        "timeout": {
          "default": 30000,
          "description": "Timeout in milliseconds for the request. Default is 30000 (30 seconds). Maximum is 300000 (300 seconds).",
          "maximum": 300000,
          "type": "integer"
        },
        "zeroDataRetention": {
          "default": false,
          "description": "If true, this will enable zero data retention for this parse. To enable this feature, please contact help@Asale.dev",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RedactPIIEntity": {
      "description": "Public PII entity buckets supported by Asale redaction.",
      "enum": [
        "PERSON",
        "EMAIL",
        "PHONE",
        "LOCATION",
        "FINANCIAL",
        "SECRET"
      ],
      "type": "string"
    },
    "RedactPIIOptions": {
      "additionalProperties": false,
      "description": "Tuning options for PII redaction.",
      "properties": {
        "entities": {
          "description": "Restrict redaction to these entity buckets. If omitted, all supported entities are redacted.",
          "items": {
            "$ref": "#/$defs/RedactPIIEntity"
          },
          "type": "array"
        },
        "mode": {
          "default": "accurate",
          "description": "Redaction strategy. `accurate` is model-only and optimized for precision, `aggressive` increases recall with additional heuristics, and `fast` uses heuristics without the model call.",
          "enum": [
            "accurate",
            "aggressive",
            "fast"
          ],
          "type": "string"
        },
        "replaceStyle": {
          "default": "tag",
          "description": "`tag` replaces spans with placeholders like ``, `mask` replaces characters with `*`, and `remove` deletes the span text.",
          "enum": [
            "tag",
            "mask",
            "remove"
          ],
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "body": {
      "properties": {
        "file": {
          "additionalProperties": false,
          "properties": {
            "content_base64": {
              "maxLength": 1400000,
              "type": "string"
            },
            "content_type": {
              "type": "string"
            },
            "filename": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "filename",
            "content_base64"
          ],
          "type": "object"
        },
        "options": {
          "$ref": "#/$defs/ParseOptions"
        }
      },
      "required": [
        "file"
      ],
      "type": "object"
    }
  },
  "required": [
    "body"
  ],
  "type": "object"
}

料金

0.005000 USDT / リクエスト

表示は開始価格です。入力内容の見積もりを取得してください。完了後、実際の使用量で精算し、差額を返金します。

テストにはアカウント残高を使用し、選択したキーの予算が適用されます。費用上限は今回の API 呼び出しのみを対象とし、後続の呼び出しや上流の定期タスクは含みません。

料金バージョン 5

ウェブコンテンツ

Asale は同じ機能の利用可能なチャネルを価格順に選択します。参考価格は確認済みのチャネル参考価格の最高値です。未実行が確実な拒否のみ別チャネルへ切り替え、結果が不明な場合は二重請求を防ぐため照合を行います。

供給チャネル: 1