Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Upriver Images 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
tags:
- name: Images
paths:
/v1/images/download:
post:
tags:
- Images
summary: Download an image
description: 'Download an image from a public HTTPS URL. Useful when a website blocks direct image downloads.
Returns the original image bytes, with the format in `Content-Type`. Errors return JSON.
Supports JPEG, PNG, WebP, GIF, and AVIF up to 10 MiB, with at most 16 million pixels across up to 32 frames.
For product images, add `image_url` to `include` in `POST /v1/brand/products` and pass the returned URL here.'
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.
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: Request body or image exceeds a size, pixel, or frame limit.
'429':
description: Too many requests.
'502':
description: Source unavailable or did not return a supported image.
'503':
description: Image downloads temporarily unavailable. Retry later.
'504':
description: Download timed out.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
x-agent-description: Download an image from a public HTTPS URL. Useful when a website blocks direct image downloads. Returns the original image bytes, with the format in Content-Type. Errors return JSON.
x-agent-params:
- url
x-codeSamples:
- lang: bash
label: Save an image
source: "# Set UPRIVER_API_KEY to your API key and replace the image URL.\ncurl --fail 'https://api.upriver.ai/v1/images/download' \\\n -H \"X-API-Key: $UPRIVER_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\"url\":\"https://www.pepsi.com/prod/s3fs-public/2026-01/product_image_pepsi_0.png\"}' \\\n --dump-header - \\\n --output image.bin"
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
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
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key