API Reference
request and response description
Background Generation contract
{
"output": {
"destination": "storage://storage-name/path/"
"number_of_images": 4,
"format": "png" | "jpeg" | "webp" | "avif"
},
"object": {
"image_url": "storage://storage-name/path/image.png",
"placement_type": "absolute" | "original",
"rotation_degree": 0,
"scale": 1,
"position": {
"x": 0.5,
"y": 0.5
}
},
"scene": {
"model": "v1" | "v2",
"template_url": "storage://storage-name/path/template.png",
"template_mode": "transform" | "adjust" | "lock",
"color": "#aece8c",
"view": "top" | "front",
"prompt": "on the wooden table in the dark room" |
{
"generate": true
} |
{
"generate": true,
"guidelines": "real life setting"
},
"negative_prompt": "watermark, low quality",
"steps": 25,
"aspect_ratio": "4:7" | "7:9" | "4:5" | "1:1" | "9:7" | "19:13" | "7:4" | "16:9" | "12:5",
"preference": "fast" | "optimal" | "best"
}
}To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
URL of the output images. If output is not defined, we store the output image on our bucket and return the temporary URL. Images are stored for one day.
{"number_of_images":4,"format":"png"}Manipulate object on the scene so that the output images meet your requirements.
Customize the scene so that the output images meet your requirements.
Successful Response
Authorization is required.
No API calls left.
Not enough permissions.
Unprocessable Entity.
Too many requests.
Read a response
Headers:
Last updated
