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

# 画像アセットをアップロード

> 画像または動画生成の参照入力として使用する画像アセットをアップロードします。



## OpenAPI

````yaml /ja/openapi.json post /v1/images/upload
openapi: 3.1.0
info:
  title: APIAny.AI 公開 API
  version: 1.0.0
  description: APIAny.AI のモデル統合、非同期メディアタスク、チャット生成、クレジット照会、タスク照会のための公開 API。
servers:
  - url: https://apiany.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Models
    description: 公開モデルカタログ。
  - name: Chat
    description: テキスト生成およびチャット互換エンドポイント。
  - name: Images
    description: 画像生成および画像編集エンドポイント。
  - name: Videos
    description: 動画生成エンドポイント。
  - name: Moderation
    description: Image safety and moderation endpoints.
  - name: Tasks
    description: 非同期タスク照会。
  - name: Account
    description: アカウントおよびクレジットの照会。
  - name: Free APIs
    description: Free utility APIs protected by API key rate limits.
paths:
  /v1/images/upload:
    post:
      tags:
        - Images
      summary: 画像アセットをアップロード
      description: 画像または動画生成の参照入力として使用する画像アセットをアップロードします。
      operationId: uploadImageAsset
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
                - file
      responses:
        '200':
          description: アップロード後のアセット URL。
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                required:
                  - url
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````