Asynchronous Inference

Asynchronous inference is suitable for jobs that involve longer inference times. First, you need to create an generation job. Then, you can check the job status through another interface. Finally, you can download the inference results using the provided download link.

Support Models

  • hkchengrex/MMAudio

  • hunyuanvideo-community/HunyuanVideo

Pricing

Temporarily free

Create generation

Replace {{API_TOKEN}} with your actual token.

Example Request:

curl -X POST 'https://api.netmind.ai/v1/generation' \
--header 'Authorization: {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "hkchengrex/MMAudio",
    "config": {
        "prompt": "The summer wind blows over the willow branches.",
        "duration": 100
    }
}'

Example Response:

{
    "id": "...",
    "user_id": "...",
    "model_id": 84,
    "status": "pending",
    "backend_id": null,
    "payment_type": "usd",
    "meta_info": {},
    "created_at": "2025-01-16 04:08:19",
    "updated_at": "2025-01-16 04:08:19",
    "deleted_at": null,
    "is_deleted": false
}

Get generation

Replace {{API_TOKEN}} with your actual token.

Replace {{GENERATION_ID}} with "id" you got from previous step.

Example Request:

curl -X GET 'https://api.netmind.ai/v1/generation/{{GENERATION_ID}}' \
--header 'Authorization: {{API_TOKEN}}'

Example Response:

{
    "id": "...",
    "user_id": "...",
    "model_id": 84,
    "status": "completed",
    "backend_id": "42db796312964b6a8d8876aa6b6ffd6f",
    "payment_type": "usd",
    "meta_info": {
        "file_id": "file-...",
        "result_download_url": "https://netmind-files-prod.s3.amazonaws.com/..."
    },
    "created_at": "2025-01-16 05:51:03",
    "updated_at": "2025-01-16 05:51:23",
    "deleted_at": null,
    "is_deleted": false
}

Now you can view or download you generated video through "meta_info.result_download_url".

List generations

Replace {{API_TOKEN}} with your actual token.

Example Request:

curl -X GET 'https://api.netmind.ai/v1/generation' \
--header 'Authorization: {{API_TOKEN}}'

Example Response:

{
    "generation_list": [
        {
            "id": "...",
            "user_id": "...",
            "model_id": 84,
            "status": "completed",
            "backend_id": "42db796312964b6a8d8876aa6b6ffd6f",
            "payment_type": "usd",
            "meta_info": {
                "file_id": "file-...",
                "result_download_url": "https://netmind-files-prod.s3.amazonaws.com/..."
            },
            "created_at": "2025-01-16 05:51:03",
            "updated_at": "2025-01-16 05:51:23",
            "deleted_at": null,
            "is_deleted": false
        }
    ]
}

Delete generation

Replace {{API_TOKEN}} with your actual token.

Replace {{GENERATION_ID}} with "job_id" you got from previous step.

Example Request:

curl -X DELETE 'https://api.netmind.ai/v1/generation/{{GENERATION_ID}}' \
--header 'Authorization: {{API_TOKEN}}'

Example Response:

{
    "message": "Generation deleted"
}

Last updated