Get generation status
Returns the status, progress, and result assets for a generation task. Poll until status is completed or failed. The id encodes the type (img_… / vid_…) so no type parameter is needed.
Returns the status, progress, and result assets for a generation task. Poll until status is completed or failed. The id encodes the type (img_… / vid_…) so no type parameter is needed.
Authorization
bearerAuth In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/generations/img_44160"{ "code": 0, "message": "string", "data": { "id": "img_44160", "taskId": "string", "model": "nano-banana-pro", "type": "image", "status": "processing", "progress": 0, "error": "string", "result": { "images": [ "http://example.com" ], "videos": [ "http://example.com" ] } }}{ "code": 0, "message": "string"}{ "code": 0, "message": "string"}Create a generation POST
Creates an asynchronous generation task. The model id determines whether an image or video is produced — use the same endpoint for both.
Create a chat completion POST
Creates a model response for the given conversation. OpenAI-compatible — works with the OpenAI SDK by setting `baseURL` to `https://aihub-admin.aimix.pro/api-platform/v1`. Set `stream: true` to receive a Server-Sent Events stream of `chat.completion.chunk` objects terminated by `data: [DONE]`.