Developer Docs
Getting Started
Browse documentation
Introduction
API Reference
Account & Billing
APIonWeb is a general-purpose API marketplace — this guide walks through calling its first live API, Virtual Try-On, from a fresh account to a successful response. The same account, API key, and billing model will apply to every API added to the platform.
1. Create an account
Sign up for an APIonWeb account and verify your email. Every new verified account receives a $5 non-withdrawable welcome balance — enough to make real requests without adding a payment method first.
2. Create an API key
From
Dashboard → API Keys
, create a new key. It's shown to you once, at creation time — copy
it somewhere safe (a password manager or secrets store). Keys are standard bearer tokens in the format
{id}|{40-character-token}.
See API Keys for details.
3. Make your first request
Send the API key as a Bearer
token in the Authorization header.
This example tries on a pair of glasses — a real-time/3D category that responds synchronously:
curl -X POST https://apionweb.com/v1/virtual-try-on \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"category": "glasses",
"person_image": "https://example.com/person.jpg",
"product_model": "https://example.com/glasses-model.glb"
}'
4. Read the response
A successful synchronous request returns the rendered result image straight away, along with what it cost:
{
"request_id": "8f14e45f-2d1a-4b3c-9e4a-2f6b1c9d0e12",
"status": "success",
"category": "glasses",
"result": {
"image_url": "https://cdn.apionweb.com/results/8f14e45f....png"
},
"cost": {
"amount": "0.05",
"currency": "USD"
},
"processing_time_ms": 842
}
Some categories (shirts, dresses, jackets, and other AI-generative outfits) are processed
asynchronously — the initial request returns a
status: "processing"
and you poll for the result, or supply a webhook. See
Virtual Try-On
and Webhooks.
Next steps
- Authentication — how API keys are validated and what errors look like.
- Virtual Try-On reference — every supported category and request shape.
- Errors — the full list of error codes and HTTP statuses.
- Usage & Billing — pricing per category and how recharges work.