NetMind Power Documentation
  • NetMind Account
  • Inference
    • Model APIs
    • Dedicated Endpoints
  • Fine-tuning
  • Rent GPUs
    • Cloud Sync
    • Use Ngrok as Ingress Service
  • Rent Cluster (Comming soon)
  • API
    • API token
    • Files
    • Fine-tuning
      • List Models
      • Preparing your dataset
      • Create Job
      • Retrieve job
      • Download model
      • Cancel job
      • Deploy Checkpoint (coming soon)
    • Inference
      • Chat
      • Images
      • Haiper Inference
      • Asynchronous Inference
      • Dedicated Endpoints
      • Batch Processing
      • Embedding API
      • Deprecated Models
    • Rent GPU
      • SSH Authentication
      • List Available images
      • List Available GPU Instances
      • Create Your First Environment
      • Stop GPU instace
    • API Reference
      • Files
      • Fine-tuning
      • Rent GPU
Powered by GitBook
On this page
  • Support Models
  • Pricing
  • Create generation
  • Get generation
  • List generations
  • Delete generation

Was this helpful?

  1. API
  2. Inference

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
    }
}'
import requests
import json

url = "https://api.netmind.ai/v1/generation"

payload = json.dumps({
   "model": "hkchengrex/MMAudio",
   "config": {
      "prompt": "The summer wind blows over the willow branches.",
      "duration": 100
   }
})
headers = {
   'Authorization': 'Bearer {{API_TOKEN}}',
   'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

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}}'
import requests

url = "https://api.netmind.ai/v1/generation/{{GENERATION_ID}}"
headers = {
   'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("GET", url, headers=headers)

print(response.text)

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}}'
import requests

url = "https://api.netmind.ai/v1/generation"
headers = {
   'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("GET", url, headers=headers)

print(response.text)

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}}'
import requests

url = "https://api.netmind.ai/v1/generation/{{GENERATION_ID}}"
headers = {
   'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("DELETE", url, headers=headers)

print(response.text)

Example Response:

{
    "message": "Generation deleted"
}
PreviousHaiper InferenceNextDedicated Endpoints

Last updated 3 months ago

Was this helpful?