DesignerGPT

DesignerGPT · Acciones GPT

DALL-E Image Fetching Service

  • POST /fetch-imagesFetches DALL-E generated images based on provided identifiers.
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "DALL-E Image Fetching Service",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://dalleserver.replit.app",
      "description": "DALL-E Image Server"
    }
  ],
  "paths": {
    "/fetch-images": {
      "post": {
        "operationId": "fetchDalleImages",
        "summary": "Fetches DALL-E generated images based on provided identifiers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "openaiFileIdRefs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the file, auto-generated when created by DALL-E."
                        },
                        "id": {
                          "type": "string",
                          "description": "A stable identifier for the file."
                        },
                        "mime_type": {
                          "type": "string",
                          "description": "The MIME type of the file, based on file extension for user uploaded files."
                        },
                        "download_link": {
                          "type": "string",
                          "description": "The URL to fetch the file, valid for five minutes."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Images successfully fetched",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "download_link": {
                        "type": "string",
                        "description": "The URL to fetch the file, valid for five minutes."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          }
        }
      }
    }
  }
}

Replit Claim Creation

Creates a new Repl claim with a given description, conversation, and file contents.

  • POST /claimscreateReplClaim

    Create a new Repl claim.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Replit Claim Creation",
    "description": "Creates a new Repl claim with a given description, conversation, and file contents.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://replit.com/external/v1"
    }
  ],
  "paths": {
    "/claims": {
      "post": {
        "description": "Create a new Repl claim.",
        "operationId": "createReplClaim",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "description",
                  "conversation",
                  "files"
                ],
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "Description of the Repl claim."
                  },
                  "conversation": {
                    "type": "string",
                    "description": "Conversation or context around the Repl claim."
                  },
                  "files": {
                    "type": "array",
                    "description": "List of files to include in the Repl.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string",
                          "description": "File path."
                        },
                        "content": {
                          "type": "string",
                          "description": "File content."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created the Repl claim.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "string",
                      "description": "Link to the created Repl."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {}
  }
}

Webpage Generator API

  • POST /create-pageGenerates a webpage based on provided HTML content
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Webpage Generator API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://designergpt.replit.app",
      "description": "Main production server"
    }
  ],
  "paths": {
    "/create-page": {
      "post": {
        "summary": "Generates a webpage based on provided HTML content",
        "operationId": "generateWebpage",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page_code": {
                    "type": "string",
                    "description": "The HTML content for the web page"
                  }
                },
                "required": [
                  "page_code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webpage successfully generated",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "https://example.com/generated_page"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          }
        }
      }
    }
  }
}