AIHubMix Unified API

Create an AIHubMix image generation

Changed on

Generates images with the AIHubMix native media protocol. Requests are synchronous by default and become asynchronous when async is true.

post/ai/v1/images/generations

Request

  • Base URL
    https://aihubmix.com
  • Auth
    HTTP bearer

Request body

modelstring required

Image model ID.

promptstring required
ninteger nullable
sizestring nullable
aspect_ratiostring nullable
seedinteger nullable
negative_promptstring nullable
imageunknown
maskunknown
output_format'png' | 'jpeg' | 'webp' nullable
response_format'url' | 'b64_json' nullable
asyncboolean
webhook_urlstring uri
webhook_events_filterstring[]
extraobject nullable

Response

Image generation task

idstring required

Platform task ID.

object'image' | 'video' required
modelstring required
status'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled' required

Current task state. Completed, failed, and cancelled are terminal states.

created_atinteger required

Unix timestamp in seconds.

completed_atinteger nullable required
expires_atinteger nullable required

Artifact expiry time in Unix seconds; may be null before completion.

Changes