Skip to main content

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 NameTypeRequiredDescription
descriptionstringYesText description of the effect
qualitystringYesOutput quality. Allowed values: standard, pro
framenumberYesFrame count. Allowed values: 4, 9, 16
imagefileNoOptional reference image file

Response

Success Response (200 OK):

{
"job_id": "uuid-string"
}
FieldTypeDescription
job_idstringUnique identifier for the created job. Use Get Job Status to retrieve results

Error / Validation Rules

ConditionHTTP StatusError Message
Invalid image file400"Invalid image file"
Invalid API key401Invalid 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:

  1. Save the job_id received in the response
  2. Poll GET /public/v1/job/{job_id} to check status
  3. When status becomes Succeed, check results in image_urls

Status Flow: PendingSucceed 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"