Haiper Inference

Create Job

Replace {{API_TOKEN}} with your actual token.

Example Request:

curl --location 'https://api.netmind.ai/v1/netmind-video-job' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{ 
      "job_type":"text2video",
      "config": {
        "prompt": "A sci-fi and historical drama that tells the story of a time traveler’s experiences across different historical periods and how they influence major events."
      }  
}'

Example Response:

{
    "job_id": "...",
    "user_id": "...",
    "name": "",
    "description": "",
    "payment_type": "usd",
    "status": "initializing",
    "meta_info": {
        "original_request": {
            "job_type": "text2video",
            "config": {
                "prompt": "A sci-fi and historical drama that tells the story of a time traveler’s experiences across different historical periods and how they influence major events.",
                "negative_prompt": null,
                "settings": {
                    "seed": -1,
                    "aspect_ratio": "16:9",
                    "resolution": 720,
                    "duration": 4
                },
                "gen_mode": "standard",
                "is_public": true,
                "use_ff_cond": null,
                "is_enable_prompt_enhancer": null
            }
        },
        "netmind_api_token": {
            "api_token": "...",
            "api_token_id": 0,
            "user": {
                "user_id": "...",
                "nickname": ".@..",
                "currency": "USD"
            }
        },
        "model_id": 81
    },
    "created_at": "2024-12-10T15:14:12.445307",
    "updated_at": "2024-12-10T15:14:12.445312",
    "deleted_at": null,
    "is_deleted": false,
    "outputs": {}
}

Get Job

Replace {{API_TOKEN}} with your actual token.

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

Example Request:

Example Response:

Now you can view or download you generated video through "outputs[].media_url".

List Job

Replace {{API_TOKEN}} with your actual token.

Example Request:

Example Response:

Delete Inference Job

Replace {{API_TOKEN}} with your actual token.

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

Example Request:

Example Response:

Last updated

Was this helpful?