Create a generation
Creates an asynchronous generation task. The model id determines whether an image or video is produced — use the same endpoint for both.
Creates an asynchronous generation task. The model id determines whether an image or video is produced — use the same endpoint for both.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Generation request. Only model and prompt are required; every other field is optional and applies to the model type that supports it (e.g. duration/resolution for video, size/aspect_ratio for image).
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-pro", "prompt": "string" }'{ "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"}{ "code": 0, "message": "string"}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]`.
Get generation status GET
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.