A1D API Documentation
  1. API Feature
A1D API Documentation
  • API Feature
    • Image Upscaler
      POST
    • Remove Background
      POST
  • Task
    • Get Task Result
      GET
    • Get Task Result (SSE Version)
      GET
  1. API Feature

Image Upscaler

POST
https://api.a1d.ai/api/image-upscaler

Request

Header Params
Authorization
string 
optional
You need to get the API_KEY from https://a1d.ai/api before you can call it successfully.
Example:
KEY {API_KEY}
Body Params application/json
imageUrl
string 
image url
required
image url
scale
number 
Upscale resolution
optional
Upscale resolution, support 2,4,8,16 ,if this pa
Default:
2
Examples:
24816
source
enum<string> 
optional
Allowed value:
api
Default:
api
Example
{
  "imageUrl": "string",
  "source": "api",
  "scale": 2
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.a1d.ai/api/image-upscaler' \
--header 'Authorization: KEY {API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "imageUrl": "string",
  "source": "api",
  "scale": 2
}'

Responses

🟢200Success
application/json
Body
taskId
string 
required
Example
{
    "taskId": "string"
}
Modified at 2025-01-10 09:41:53
Next
Remove Background
Built with