ExploreModels
Pricing
Explore

Workflow Utilities Pick Image By Index

All workflow models
Workflow

Choose the Nth image from an image URL list for workflows.

Inference$ Commercial useFrom 1 credit per run

About Workflow Utilities Pick Image By Index

Choose the Nth image from an image URL list for workflows.

Pricing

A run with the default settings costs 1 credits. The exact cost updates in the playground as you change settings, and you're only charged when you press Run. Failed runs are refunded automatically.

Inputs

image_urlsfile-listrequired

Array of image URLs to select from

indexintegerrequired

1-based position of the image to return. Value 1 returns the first image, 2 returns the second, and so on.

fallback_indexselectdefault: "first-image"

Behavior when `index` exceeds the length of `image_urls`. When `first-image`, returns the first image in the array. When `last-image`, returns the last image in the array. This input has no effect when `index` is within range, when `index` is below 1, or when `image_urls` is empty (the latter two cases still return validation errors). Default is `first-image`.

Options: first-image, last-image