AI Photography
AI Photography
AI Photography API
AI Photography generates stylized artificial intelligence photoshoot images from prompt-defined style scenes.
POST
AI Photography
Request
- URL:
https://www.ailabapi.com/api/image/effects/ai-photography - Method:
POST - Content-Type:
multipart/form-data
API Information
| Field | Value |
|---|---|
| API Name | AI Photography |
| API URL | /api/image/effects/ai-photography |
| Documentation URL | /docs/ai-image/effects/ai-photography |
| Unique Identification | image_photography |
Image requirements
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
image | YES | file | Original image. | ||
style_title | YES | string | Style name (English only). Max 500 characters; extra text will be automatically truncated. Use standard vocabulary. | ||
style_desc | YES | string | Style description (English only). Max 1000 characters; extra text will be automatically truncated. Use standard vocabulary. | ||
image_size | NO | string | auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 | auto | Output image aspect ratio. |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Scope | Description |
|---|---|---|---|
task_type | string | async | Task Type. “async: Asynchronous tasks. |
task_id | string | Asynchronous task ID. Please use this field when calling the Querying Async Task Results API. |
Response Example
Authorizations
API Key for authentication
Body
multipart/form-data
Original image.
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Style name (English only). Max 500 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.
Maximum string length:
500Style description (English only). Max 1000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.
Maximum string length:
1000Output Image Aspect Ratio.
Available options:
auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 Response
200 - application/json
Success
The response is of type object.

