Generate Effect V2
Purpose
Generates an effect-style result asynchronously. You can provide a text description to guide the effect generation and optionally upload an image.
Method and Path
POST /public/v1/generate/effect/v2
Authentication
See the Authentication page. Bearer token is required.
Required Headers:
Authorization: Bearer {your_api_key}
Request Fields
| Field Name | Type | Required | Description |
|---|---|---|---|
| description | string | Yes | Text description of the effect |
| quality | string | Yes | Output quality. Allowed values: standard, pro |
| frame | number | Yes | Frame count. Allowed values: 4, 9, 16 |
| image | file | No | Optional reference image file |
Response
Success Response (200 OK):
{
"job_id": "uuid-string"
}
| Field | Type | Description |
|---|---|---|
| job_id | string | Unique identifier for the created job. Use Get Job Status to retrieve results |
Error / Validation Rules
| Condition | HTTP Status | Error Message |
|---|---|---|
| Invalid image file | 400 | "Invalid image file" |
| Invalid API key | 401 | Invalid API key |
Async Job Behavior
This endpoint creates an asynchronous job. It immediately returns a job_id, and actual effect generation occurs in the background.
Polling Method:
- Save the
job_idreceived in the response - Poll
GET /public/v1/job/{job_id}to check status - When status becomes
Succeed, check results inimage_urls
Status Flow: Pending → Succeed or Failed
Example Request
cURL (without image):
curl -X POST "https://api.aetherforgeai.com/public/v1/generate/effect/v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "description=apply a glowing fantasy aura" \
-F "quality=standard" \
-F "frame=4"
cURL (with image):
curl -X POST "https://api.aetherforgeai.com/public/v1/generate/effect/v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "description=apply a neon cyberpunk effect" \
-F "quality=pro" \
-F "frame=16" \
-F "image=@/path/to/input.png"