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

# Download an image

> Download a public HTTPS image as binary data for ingestion into your own storage. Accepts image URLs from any source; no prior research request is required. Supports JPEG, PNG, WebP, GIF and AVIF up to 10 MiB and 16 million total pixels across at most 32 frames. Does not create a hosted image URL. Limited to 30 attempts per minute and 1,000 per day per account, subject to shared service capacity. This utility does not consume product-research credits.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/images/download
openapi: 3.1.0
info:
  title: Upriver API
  description: >-
    A social insights API for ad generation platforms. It provides structured
    signals, like psychographics, behavioral insights, trends, and audience
    language, to help AI models generate relevant, higher-converting ads.
  version: 1.0.0
servers:
  - url: https://api.upriver.ai
    description: Production API server
security: []
tags:
  - name: Brands
  - name: Products
  - name: Creators
  - name: Audience
  - name: Sponsorships
  - name: Trends
  - name: Breakout Topics
  - name: Taxonomy
paths:
  /v1/images/download:
    post:
      tags:
        - Images
      summary: Download an image
      description: >-
        Download a public HTTPS image as binary data for ingestion into your own
        storage. Accepts image URLs from any source; no prior research request
        is required. Supports JPEG, PNG, WebP, GIF and AVIF up to 10 MiB and 16
        million total pixels across at most 32 frames. Does not create a hosted
        image URL. Limited to 30 attempts per minute and 1,000 per day per
        account, subject to shared service capacity. This utility does not
        consume product-research credits.
      operationId: download_image_bytes_v1_images_download_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageDownloadInput'
        required: true
      responses:
        '200':
          description: Original image bytes; format may differ from the URL suffix.
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
            image/png:
              schema:
                type: string
                format: binary
            image/webp:
              schema:
                type: string
                format: binary
            image/gif:
              schema:
                type: string
                format: binary
            image/avif:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid or non-public URL.
        '404':
          description: Source image not found.
        '413':
          description: Image exceeds the download or decoded image limit.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Download budget exhausted.
        '502':
          description: Source unavailable or did not return a valid image.
        '503':
          description: Downloads temporarily unavailable or busy.
        '504':
          description: Download timed out.
      security:
        - APIKeyHeader: []
components:
  schemas:
    ImageDownloadInput:
      properties:
        url:
          type: string
          maxLength: 8192
          minLength: 1
          title: Url
          description: Public HTTPS URL of the image to download.
          examples:
            - https://example.com/product.png
      additionalProperties: false
      type: object
      required:
        - url
      title: ImageDownloadInput
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````