Models / Images / UplinkSwitch
Image Extender API
Image Extender API: $0.0402 to $0.0906 per image, prepaid, no subscription. Send an image URL and get the result back, on the same key as every image model.
image-extenderImagesper image
Price · per image, USD
Get a key| Settings | UplinkSwitch |
|---|---|
| resolution 1K | $0.0402 |
| resolution 2K | $0.0606 |
| resolution 4K | $0.0906 |
Charged when the request is accepted; refunded in full if the generation fails.
What a run costs · USD, live
The lowest-priced settings (resolution 1K) bill $0.0402 per image; the highest-priced (resolution 4K) $0.0906.
| Run | At $0.0402 per image | At $0.0906 per image |
|---|---|---|
| One image | $0.0402 | $0.0906 |
| 10 images | $0.402 | $0.906 |
| 100 images | $4.02 | $9.06 |
Compare · per image, live
Image Extender from $0.0402 per image; Background Remover from $0.0054; Image Upscaler from $0.002.
Call it · POST /v1/generations
curl
curl https://api.uplinkswitch.com/v1/generations \
-H "Authorization: Bearer $UPLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "image-extender",
"input": {
"image_url": "https://example.com/input.png",
"aspect_ratio": "16:9"
}
}'
# then poll until "status" is "succeeded":
curl https://api.uplinkswitch.com/v1/generations/gen_... -H "Authorization: Bearer $UPLINK_API_KEY"Python, requests
import os, time, requests
BASE = "https://api.uplinkswitch.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['UPLINK_API_KEY']}"}
payload = {
"model": "image-extender",
"input": {
"image_url": "https://example.com/input.png",
"aspect_ratio": "16:9"
}
}
gen = requests.post(f"{BASE}/generations", headers=HEADERS, json=payload, timeout=30).json()
while gen["status"] not in ("succeeded", "failed"):
time.sleep(5)
gen = requests.get(f"{BASE}/generations/{gen['id']}", headers=HEADERS, timeout=30).json()
if gen["status"] == "succeeded":
url = gen["outputs"][0]["url"]
with open(url.rsplit("/", 1)[-1], "wb") as f:
f.write(requests.get(url, headers=HEADERS, timeout=120).content)The request is charged when it is accepted and answers 202 with a generation id. Poll GET /v1/generations/{id} until the status is succeeded, then download outputs[0].url; files stay downloadable for 30 days, and a failed generation is refunded in full.
Settings · in input
| Name | Type | Values | Default |
|---|---|---|---|
| image_url required | url | — | — |
| aspect_ratio required | string | 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 21:9, 1:1 | — |
| prompt | string | — | — |
| resolution | string | 1K, 2K, 4K | 1K |
Questions
From $0.0402 per image. The price depends on the settings in the table and is fixed when the request is accepted.
Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. Send it as the bearer token to /v1/generations with model image-extender; the same key calls every other model in the catalog.
No. You add credit and each request is paid from it. There is no monthly fee and no minimum per request.
It is refunded in full, automatically. You pay only for files you receive.
Thirty days, at a URL on api.uplinkswitch.com. Download what you want to keep.
Yes. The same key calls every image, video, speech and 3D model and every chat model in the catalog.