Base URL and versioning
| Base URL | https://aigenstudio.app |
| Version prefix | /api/v1 |
| Format | JSON UTF-8 |
/api/v2.
The /api/v1 contract remains stable within the current API version.
Authentication
Send your API key with theAuthorization header on every authenticated request.
aigen_test_.
Live keys start with aigen_live_.
The presets endpoint is public. Enhancement creation and status endpoints require an API key.
Required request headers
| Header | Required on | Description |
|---|---|---|
Authorization | Authenticated endpoints | Bearer API key. |
Content-Type: application/json | POST requests | JSON request body. |
Idempotency-Key | POST /api/v1/product-image-enhancements | Stable key for safe retries. |
X-Request-Id | Optional | Client correlation id. Also returned by AI Gen Studio. |
Success responses
Create and status endpoints return anenhancement object.
presets array.
Error responses
Errors use a stable envelope.request_id when contacting support or correlating responses with logs.
See Errors for retry guidance and common error codes.
Asynchronous processing
Image enhancement is asynchronous.- Create an enhancement with one to 20 source images.
- Store
enhancement.idand your ownexternal_idvalues. - Poll the status endpoint or receive signed webhook events.
- Attach successful
result_urlvalues to the matching product records.
Rate limit headers
Rate-limited responses may include:| Header | Description |
|---|---|
Retry-After | Seconds to wait before retrying. |
X-RateLimit-Limit | Limit for the current window. |
X-RateLimit-Remaining | Remaining requests in the current window. |
X-RateLimit-Reset | Unix timestamp when the window resets. |
Unsupported authentication methods
Only Bearer API keys are supported. The following are rejected:- API keys in query strings;
x-api-keyor other custom API key headers;- cookies or session tokens;
- user JWTs instead of AI Gen Studio API keys.
