Skip to main content
POST
/
v1
/
image_generate
Submit an image generation task
curl --request POST \
  --url https://api.keevx.com/v1/image_generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A serene mountain lake at sunset with golden reflections",
  "reference_images": [
    "https://example.com/ref.jpg"
  ],
  "module": "std",
  "generate_count": 2,
  "image_quality": "2K",
  "image_ratio": "16:9"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "task_ids": [
      "i2is-a1b2c3d4e5f6",
      "i2is-g7h8i9j0k1l2"
    ]
  }
}

Callback Notification

After the video generation task is processed, the service will send a POST request to the callback_url provided in the initiation request.

Structure

code
integer
Response status code. 0 indicates a successful callback transmission.
msg
string
Response message, usually “ok”.
task_type
string
The type of the task. Enum: image_generate.
data
object
The payload containing the generation results.

Callback Example

{
    "code": 0,
    "msg": "ok",
    "task_type": "image_generate",
    "data": {
        "task_id": "i2is-18e830d27ea041658e4accd576ea7008",
        "status": "SUCCEEDED",
        "image_url": "https://storage.googleapis.com/xiling_us_central1_bucket/backend-saas-cdn/video-ai/image2image/10d88def-623d-4974-858a-b8c0ddfe2d1d-i2is-18e830d27ea041658e4accd576ea7008-process.png",
        "error_message": ""
    }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

Text prompt for image generation (required).

Maximum string length: 1000
reference_images
string<uri>[]

Optional list of reference image URLs. Max 5 images, each under 20MB. Supported formats: JPG, JPEG, PNG, BMP, WebP, GIF. Excess items are silently truncated to 5.

Maximum array length: 5
module
enum<string>
default:std

Generation mode. std = Standard Model (default), pro = Pro Model.

Available options:
std,
pro
generate_count
integer
default:1

Number of images to generate. Each produces a separate task ID.

Required range: 1 <= x <= 8
image_quality
enum<string>
default:2K

Output image quality / resolution tier.

Available options:
1K,
2K,
4K
image_ratio
enum<string>
default:9:16

Output image aspect ratio.

Available options:
1:1,
3:2,
2:3,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9

Response

Task submitted successfully, or a business-level error occurred.

code
integer
required

Business status code. 0 indicates success; non-zero indicates an error.

msg
string
required

Status message. ok on success; error description on failure.

data
object

Business data payload. Omitted or null on error responses.