Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Latest commit

 

History

History
67 lines (59 loc) · 949 Bytes

ai-caller.md

File metadata and controls

67 lines (59 loc) · 949 Bytes

API Call for AI Service

API Caller: AI Service

  • POST: 3.134.139.184:443/v1/api/request_ai
  • Request
    • Content-type: application/json
    • Body
    {
        "identity_id": string,
        "id_token": string,
        "images": list image URL of S3,
        "project_id": string,
        "project_name": string,
        "augment_code": list,
        "num_augments_per_image": int,
        "project_prefix": string
    }
  • Response
{
    "message": "",
    "data": {
        "task_id": string
    },
    "error": boolean
}

API Status Checking AI Task

  • POST: 3.134.139.184:443/v1/api/check_healthy
  • Request
    • Content-type: application/json
    • Body
    {
        "task_id": string
    }
  • Response
{
    "message": "",
    "data": {
        "status": string
    },
    "error": boolean
}

Requirements

  • Redis
  • Python 3.8

Build

./build.sh

Deploy

./deploy.sh