Haiper Inference

create haiper job

post
Header parameters
AuthorizationstringOptional
Body
job_typestring · enumOptional

Job typ, only support 'text2video' now

Default: text2videoPossible values:
Responses
200Success
application/json
post
POST /v1/haiper-job HTTP/1.1
Host: api.netmind.ai
Content-Type: application/json
Accept: */*
Content-Length: 250

{
  "config": {
    "prompt": "1",
    "gen_mode": "standard",
    "settings": {
      "seed": -1,
      "duration": 4,
      "resolution": 720,
      "aspect_ratio": "16:9"
    },
    "use_ff_cond": false,
    "negative_prompt": "incididunt do labore",
    "is_enable_prompt_enhancer": true
  },
  "job_type": "Haiper/Text2Video2.0"
}
200Success
{
  "job_id": "0",
  "user_id": "0",
  "name": "",
  "description": "",
  "payment_type": "nmt",
  "status": "initializing",
  "meta_info": {
    "original_request": {
      "job_type": "Haiper/Text2Video2.0",
      "config": {
        "prompt": "1",
        "negative_prompt": "incididunt do labore",
        "settings": {
          "seed": -1,
          "aspect_ratio": "16:9",
          "resolution": 720,
          "duration": 4
        },
        "gen_mode": "standard",
        "is_public": true,
        "use_ff_cond": false,
        "is_enable_prompt_enhancer": true
      }
    },
    "netmind_api_token": {
      "api_token": "0",
      "api_token_id": 0,
      "user": {
        "user_id": "",
        "nickname": "",
        "currency": "NMT"
      }
    },
    "model_id": 80
  },
  "created_at": "2024-12-05T15:48:53.426957",
  "updated_at": "2024-12-05T15:48:53.426961",
  "deleted_at": null,
  "is_deleted": false,
  "outputs": {}
}

list haiper job

get
Query parameters
page_sizeintegerOptional

Size of page

Example: 100
pageintegerOptional

page number

Example: 1
Header parameters
AuthorizationstringOptional
Responses
200Success
application/json
get
GET /v1/haiper-job HTTP/1.1
Host: api.netmind.ai
Accept: */*
200Success
{
  "total_count": 1,
  "job_list": [
    {
      "job_id": "text",
      "user_id": "text",
      "name": "text",
      "description": "text",
      "payment_type": "text",
      "status": "text",
      "haiper_user_id": "text",
      "haiper_job_id": "text",
      "meta_info": {
        "model_id": 1,
        "order_id": "text",
        "update_at": "text",
        "original_request": {
          "config": {
            "prompt": "text",
            "gen_mode": "text",
            "settings": {
              "seed": 1,
              "duration": 1,
              "resolution": 1,
              "aspect_ratio": "text"
            },
            "is_public": true,
            "use_ff_cond": true,
            "negative_prompt": "text",
            "is_enable_prompt_enhancer": true
          },
          "job_type": "text",
          "user_id": "text"
        },
        "netmind_api_token": {
          "user": {
            "user_id": "text",
            "currency": "text",
            "nickname": "text"
          },
          "api_token": "text",
          "api_token_id": 1
        }
      },
      "created_at": "text",
      "updated_at": "text",
      "deleted_at": null,
      "is_deleted": true,
      "outputs": {}
    }
  ]
}

get haiper job

get
Path parameters
job_idstringRequired
Header parameters
AuthorizationstringOptional
Responses
200Success
application/json
Responseobject
get
GET /v1/haiper-job/{job_id} HTTP/1.1
Host: api.netmind.ai
Accept: */*
200Success
{}

delete haiper job

delete
Path parameters
job_idstringRequired
Header parameters
AuthorizationstringOptional
Responses
200Success
application/json
Responseobject
delete
DELETE /v1/haiper-job/{job_id} HTTP/1.1
Host: api.netmind.ai
Accept: */*
200Success
{}

Last updated

Was this helpful?