Multi-angle
Pricing: Multi-angle
One image in, new views of the same subject out: one image for every combination of the camera angles you pick. The same job as a generation on www.happypony.io/multi-angle.
POST https://api.happypony.io/api/v1/jobs/multi-angle
GET https://api.happypony.io/api/v1/jobs/:requestId/status
GET https://api.happypony.io/api/v1/jobs/:requestId
PUT https://api.happypony.io/api/v1/jobs/:requestId/cancel
1) Create a request
POST https://api.happypony.io/api/v1/jobs/multi-angle with Content-Type: application/json.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
image_url |
string | yes | — | The subject. See Image inputs. |
azimuth |
string[] | no | front, right side, back, left side | "front view", "front-right quarter view", "right side view", "back-right quarter view", "back view", "back-left quarter view", "left side view", "front-left quarter view". |
elevation |
string[] | no | ["eye-level shot"] |
"low-angle shot", "eye-level shot", "elevated shot", "high-angle shot". |
distance |
string[] | no | ["medium shot"] |
"close-up", "medium shot", "wide shot". |
The job makes azimuth × elevation × distance images (the example: 3 × 2 × 1 = 6; the defaults: 4; everything: 96). Each list must be non-empty with no repeats: unlike the website, an empty list does not mean "all of them".
Request body:
{
"image_url": "https://resource.pipelet.net/images/test/selfie3.png",
"azimuth": ["front view", "front-right quarter view", "right side view"],
"elevation": ["eye-level shot", "high-angle shot"],
"distance": ["close-up"]
}
curl -X POST https://api.happypony.io/api/v1/jobs/multi-angle \
-H "Authorization: Bearer $HP_KEY" -H "Content-Type: application/json" \
-d '{"image_url": "https://resource.pipelet.net/images/test/selfie3.png", "azimuth": ["front view", "front-right quarter view", "right side view"], "elevation": ["eye-level shot", "high-angle shot"], "distance": ["close-up"]}'
Response 202 (fields: Create response):
{
"request_id": "48322",
"type": "multi-angle",
"status": "IN_QUEUE",
"credits": 12,
"status_url": "https://api.happypony.io/api/v1/jobs/48322/status",
"response_url": "https://api.happypony.io/api/v1/jobs/48322",
"cancel_url": "https://api.happypony.io/api/v1/jobs/48322/cancel"
}
2) Poll for status
Poll the status_url until status is COMPLETED, FAILED or CANCELLED (fields: Status response). A queued job can be cancelled with PUT on the cancel_url (Cancel a request).
curl https://api.happypony.io/api/v1/jobs/48322/status -H "Authorization: Bearer $HP_KEY"
{
"request_id": "48322",
"type": "multi-angle",
"status": "IN_PROGRESS",
"created_at": "2026-10-05T10:00:00.000Z",
"completed_at": null,
"credits": 12,
"status_url": "…", "response_url": "…", "cancel_url": "…"
}
3) Fetch the result
When status is COMPLETED, fetch the response_url (common fields: Result response):
curl https://api.happypony.io/api/v1/jobs/48322 -H "Authorization: Bearer $HP_KEY"
{
"request_id": "48322",
"type": "multi-angle",
"status": "COMPLETED",
"created_at": "2026-10-05T10:00:00.000Z",
"completed_at": "2026-10-05T10:01:40.000Z",
"credits": 12,
"images": [{ "url": "https://…signed…", "format": "png" }, { "url": "https://…signed…", "format": "png" }, "…"],
"expires_in": 259200,
"parameters": { "azimuth": ["front view", "front-right quarter view", "right side view"],
"elevation": ["eye-level shot", "high-angle shot"], "distance": ["close-up"] },
"status_url": "…", "response_url": "…", "cancel_url": "…"
}
| Field | Type | Description |
|---|---|---|
images |
object[] | One image per view. |
parameters |
object | azimuth, elevation, distance. |
Full example
Create, poll until done, download:
curl (bash)
# Needs curl and jq. Usage: HP_KEY=hp_… ./angles.sh
JOB=$(curl -s -X POST https://api.happypony.io/api/v1/jobs/multi-angle \
-H "Authorization: Bearer $HP_KEY" -H "Content-Type: application/json" \
-d '{"image_url": "https://resource.pipelet.net/images/test/selfie3.png",
"azimuth": ["front view", "right side view", "back view", "left side view"],
"elevation": ["eye-level shot"], "distance": ["medium shot"]}')
echo "$JOB" | jq .
STATUS_URL=$(echo "$JOB" | jq -r .status_url)
RESPONSE_URL=$(echo "$JOB" | jq -r .response_url)
while :; do
STATUS=$(curl -s "$STATUS_URL" -H "Authorization: Bearer $HP_KEY" | jq -r .status)
[ "$STATUS" = IN_QUEUE ] || [ "$STATUS" = IN_PROGRESS ] || break
sleep 5
done
echo "$STATUS"
curl -s "$RESPONSE_URL" -H "Authorization: Bearer $HP_KEY" | jq -r '.images[] | "\(.format) \(.url)"' |
while read -r FORMAT URL; do curl -s -o "view-$((++i)).$FORMAT" "$URL"; done
Python
# pip install requests | HP_KEY=hp_… python angles.py
import os, time, requests
BASE = "https://api.happypony.io/api/v1/jobs"
H = {"Authorization": f"Bearer {os.environ['HP_KEY']}"}
job = requests.post(f"{BASE}/multi-angle", headers=H, json={
"image_url": "https://resource.pipelet.net/images/test/selfie3.png",
"azimuth": ["front view", "front-right quarter view", "right side view"],
"elevation": ["eye-level shot", "high-angle shot"],
"distance": ["close-up"],
}) # 3 x 2 x 1 = 6 views
job.raise_for_status()
job = job.json()
print("job", job["request_id"], "costs", job["credits"], "credits")
while (s := requests.get(job["status_url"], headers=H).json())["status"] in ("IN_QUEUE", "IN_PROGRESS"):
time.sleep(5)
result = requests.get(job["response_url"], headers=H).json()
if result["status"] != "COMPLETED":
raise SystemExit(f"{result['status']}: {result.get('error', '')}")
for i, image in enumerate(result["images"]):
with open(f"view-{job['request_id']}-{i}.{image['format']}", "wb") as f:
f.write(requests.get(image["url"]).content)