OpenSourceAIs
OpenSourceAIs
OpenSourceAIs
  • Open Source AIs
  • AI configuration
    • Preparing your environment
    • Installing a Daemon
    • AI config file
  • Client Tokens
    • Configuration
  • APIs
    • System status
    • Client Apps
      • Authenticate into OSAIS
      • Update notification params
      • Check a request
    • AIs
      • Integration Test
        • ai_ping
      • Txt2Img & Img2Img
        • ai_cnet
        • ai_diffusion
        • ai_vqgan
      • Img2Vid
        • ai_vtoonify
        • ai_sadtalker
      • Image Utilities
        • ai_rembg
        • ai_gfpgan
      • TTS & STT
        • ai_coquitts
  • Sample App
    • NodeJS sample
Powered by GitBook
On this page
  1. APIs
  2. AIs
  3. Integration Test

ai_ping

An authenticated client can post a request to Ping

Ping acts as an integration test AI. It does not cost anything to call, and acts like all other AIs would. Check backend integration with Ping before integrating other AIs

This AI can run AI alongside a Daemon on CPU only, but we strongly recommend to run it on a GPU machine, as the name of the machine is the uid of its GPU.

Post a request to AI Ping via OpenSourceAIs

POST https://opensourceais.com/api/v1/private/client/ai/ping

Request Body

Name
Type
Description

width*

Number

The width of the output image. Defaults to 512

height*

Number

The height of the output image. Defaults to 512

url_upload*

String

A well formed URI starting with https://... and accessing a PNG or JPG image. Note that if the image is not of the width and height size passed in parameters, it will be automatically cropped or resized.

{
    "data": {
        "uid": 1678361974000,
        "created_at": "2023-03-09T11:39:44.000Z"
    }
}
{
     data: null,
     status: 400,
     statusText: "A client token is required"
}
PreviousIntegration TestNextTxt2Img & Img2Img

Last updated 8 months ago