Artology AI

Artology AI · Actions GPT

cpu backend

query cpu backend

  • GET /user-by-email/{email}GetUserInfo

    Get a user's info

  • POST /add-userAddUser

    add a user

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "cpu backend",
    "description": "query cpu backend",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://artology-cpu-43c44omaca-uc.a.run.app"
    }
  ],
  "paths": {
    "/user-by-email/{email}": {
      "get": {
        "description": "Get a user's info",
        "operationId": "GetUserInfo",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "description": "user email",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The user info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/user"
                }
              }
            }
          }
        }
      }
    },
    "/add-user": {
      "post": {
        "description": "add a user",
        "operationId": "AddUser",
        "x-openai-isConsequential": false,
        "requestBody": {
          "description": "user details to add",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "unique_name": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "bio": {
                    "type": "string"
                  },
                  "credits": {
                    "type": "integer"
                  }
                }
              },
              "example": {
                "unique_name": "zf1234",
                "display_name": "zf",
                "email": "zf1234@gmail.com",
                "bio": "bio1234"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The added user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/user"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "user": {
        "_id": {
          "type": "string"
        },
        "unique_name": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "image_version": {
          "type": "integer"
        },
        "bio": {
          "type": "string"
        },
        "bookmarked_arts": [
          {
            "type": "string"
          }
        ],
        "credits": {
          "type": "integer"
        }
      }
    }
  }
}

gpu backend

query gpu backend

  • POST /text-to-imageText2Image

    AI generate images from text

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "gpu backend",
    "description": "query gpu backend",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://backend4.artology.ai"
    }
  ],
  "paths": {
    "/text-to-image": {
      "post": {
        "description": "AI generate images from text",
        "operationId": "Text2Image",
        "x-openai-isConsequential": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "negativePrompt": {
                    "type": "string"
                  },
                  "width": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "steps": {
                    "type": "integer"
                  },
                  "seed": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The generated art.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtData"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ArtData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "model": {
                  "type": "string"
                },
                "user_id": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "negative_prompt": {
                  "type": "string"
                },
                "preset_key": {
                  "type": "string"
                },
                "scheduler": {
                  "type": "string"
                },
                "steps": {
                  "type": "integer"
                },
                "seed": {
                  "type": "integer"
                },
                "height": {
                  "type": "integer"
                },
                "width": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  }
}