> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bizmori.com/llms.txt
> Use this file to discover all available pages before exploring further.

# URLでAnti-AI注文を作成

> **非推奨**: 代わりに `originalFileUrl` フィールドを使用した `/anti-ai` エンドポイントを使用してください。

画像URLを直接指定して処理します。
- プリサインドURLの発行なしに即座に処理を開始
- 指定されたURLから画像をダウンロードして処理

## Zero Copy モード
`mode.zeroCopy: true` の場合、処理結果は顧客が提供したプリサインドURLへ直接アップロードされます。



## OpenAPI

````yaml ja/api-reference/openapi.yaml POST /api/v2/orders/anti-ai/with-urls
openapi: 3.0.0
info:
  title: BIZ MORI API
  version: 2.0.0
  description: >-
    BIZ MORI API は、デジタルコンテンツ保護のための4つのコアサービスを提供します:

    - **Anti-AI**: 画像をAI学習から保護

    - **Watermark Embed**: 画像に不可視のデジタル watermark を埋め込み

    - **Watermark Extract**: 画像から watermark を抽出・検証

    - **AI Detection**: 画像がAI生成かどうかを検知

    - **テストAPIキー**: `sk_test_`
    プレフィックスのキーは同じBearer認証を使用し、実際の処理サービスの実行やクレジットの消費なしに注文ライフサイクルを検証できます。テストアップロードの内容は破棄され、結果ファイルは作成されません
  contact:
    name: BIZ MORI サポート
    email: support@bizmori.com
servers:
  - url: https://api.bizmori.com
    description: 本番環境
security: []
tags:
  - name: Anti-AI
    description: Anti-AI画像保護の注文
  - name: Watermark Embed
    description: watermark 埋め込みの注文
  - name: Watermark Extract
    description: watermark 抽出の注文
  - name: AI Detection
    description: AI生成画像検知の注文
  - name: Orders
    description: 注文の照会と管理
  - name: Webhooks
    description: Webhookの設定とイベント
paths:
  /api/v2/orders/anti-ai/with-urls:
    post:
      tags:
        - Anti-AI
      summary: URLでAnti-AI注文を作成
      description: |-
        **非推奨**: 代わりに `originalFileUrl` フィールドを使用した `/anti-ai` エンドポイントを使用してください。

        画像URLを直接指定して処理します。
        - プリサインドURLの発行なしに即座に処理を開始
        - 指定されたURLから画像をダウンロードして処理

        ## Zero Copy モード
        `mode.zeroCopy: true` の場合、処理結果は顧客が提供したプリサインドURLへ直接アップロードされます。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - idempotencyKey
                - files
              properties:
                idempotencyKey:
                  type: string
                  description: 冪等性キー
                orderName:
                  type: string
                  maxLength: 64
                  description: 注文名（任意）
                files:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: object
                    required:
                      - fileName
                      - imageUrl
                    properties:
                      fileName:
                        type: string
                        description: ファイル名（拡張子を含む）
                        example: image.jpg
                      imageUrl:
                        type: string
                        format: uri
                        description: 画像URL
                mode:
                  type: object
                  properties:
                    zeroCopy:
                      type: boolean
                      default: false
                outputTargets:
                  type: array
                  items:
                    type: object
                    required:
                      - fileKey
                      - url
                      - presignedUrlExpiresAt
                    properties:
                      fileKey:
                        type: string
                      url:
                        type: string
                        format: uri
                      presignedUrlExpiresAt:
                        type: string
                        format: date-time
                options:
                  $ref: '#/components/schemas/OrderOptions'
      responses:
        '200':
          description: 注文が正常に作成されました
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      orderName:
                        type: string
                      orderId:
                        type: string
                      status:
                        type: string
                        example: inProgress
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/UsageLimitExceeded'
      deprecated: true
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -X POST https://api.bizmori.com/api/v2/orders/anti-ai/with-urls
            \
              -H "Authorization: Bearer YOUR_API_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "idempotencyKey": "3c7a5e19-9b2f-4d86-a1c4-6f8e0b3d5a71",
                "files": [
                  {
                    "fileName": "image1.jpg",
                    "imageUrl": "https://example.com/image1.jpg"
                  }
                ],
                "options": {"strength": "high"}
              }'
        - lang: javascript
          label: JavaScript
          source: >-
            const response = await
            fetch('https://api.bizmori.com/api/v2/orders/anti-ai/with-urls', {
              method: 'POST',
              headers: {
                'Authorization': 'Bearer YOUR_API_TOKEN',
                'Content-Type': 'application/json'
              },
              body: JSON.stringify({
                idempotencyKey: '3c7a5e19-9b2f-4d86-a1c4-6f8e0b3d5a71',
                files: [
                  {
                    fileName: 'image1.jpg',
                    imageUrl: 'https://example.com/image1.jpg'
                  }
                ],
                options: { strength: 'high' }
              })
            });

            const data = await response.json();
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.post(
                'https://api.bizmori.com/api/v2/orders/anti-ai/with-urls',
                headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
                json={
                    'idempotencyKey': '3c7a5e19-9b2f-4d86-a1c4-6f8e0b3d5a71',
                    'files': [
                        {
                            'fileName': 'image1.jpg',
                            'imageUrl': 'https://example.com/image1.jpg'
                        }
                    ],
                    'options': {'strength': 'high'}
                }
            )
            data = response.json()
components:
  schemas:
    OrderOptions:
      type: object
      properties:
        strength:
          type: string
          enum:
            - low
            - standard
            - high
          default: high
          description: |-
            保護強度レベル
            * low - 低い保護強度
            * standard - 標準の保護強度
            * high - 高い保護強度
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: エラーコード
  responses:
    BadRequest:
      description: 不正なリクエスト
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: VALIDATION_FAILED
    Unauthorized:
      description: 認証失敗
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: AUTH_NOT_AUTHENTICATED
    UsageLimitExceeded:
      description: 使用量上限を超過
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: USAGE_LIMIT_EXCEEDED
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        外部クライアントアクセス用のBearer APIキー。本番キーは `sk_` プレフィックスを使用し、テストキーは `sk_test_`
        プレフィックスを使用して、処理やクレジット消費なしに注文ライフサイクルを検証します。

````