SlidesGPT

SlidesGPT · Ações GPT

SlidesGPT API

API for generating presentation slides with deep content.

  • GET /chat/Generate presentation slides

    Generates a single slide for a presentation with specified content at a Ph.D. depth level.

Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "SlidesGPT API",
    "version": 2,
    "description": "API for generating presentation slides with deep content.",
    "contact": {
      "name": "SlidesGPT",
      "url": "http://twitter.com/@slidesgpt"
    }
  },
  "servers": [
    {
      "url": "https://slidesgpt.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/chat/": {
      "get": {
        "summary": "Generate presentation slides",
        "description": "Generates a single slide for a presentation with specified content at a Ph.D. depth level.",
        "operationId": "generateSlide",
        "parameters": [
          {
            "in": "query",
            "name": "v",
            "schema": {
              "type": "string",
              "default": "2"
            },
            "required": true,
            "description": "API version."
          },
          {
            "in": "query",
            "name": "slidecode",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "JSON string representing the slide content.",
            "example": "https://slidesgpt.com/chat/?v=2&slidecode=%5B%7B%22title%22%3A%22Benefits%20of%20Web3%22%2C%22subtitle%22%3A%22What%20are%20the%20differentiators%20for%20Web3%3F%22%2C%22slidenum%22%3A1%2C%22img_alt_text%22%3A%22Diagram%20of%20interconnected%20nodes%20representing%20Web3%20with%20a%20ledger%20and%20a%20security%20shield.%22%2C%22body%22%3A%5B%7B%22point%22%3A%22Increased%20efficiency%22%2C%22description%22%3A%22Transactions%20are%20processed%20quickly%20and%20without%20the%20need%20for%20a%20middleman%22%7D%2C%7B%22point%22%3A%22Security%20and%20privacy%22%2C%22description%22%3A%22Web3%20uses%20cryptographic%20techniques%20to%20protect%20data%20and%20users%20identities%22%7D%2C%7B%22point%22%3A%22Transparency%22%2C%22description%22%3A%22All%20transactions%20are%20stored%20in%20an%20immutable%20digital%20ledger%20for%20anyone%20to%20access%22%7D%2C%7B%22point%22%3A%22Scalability%22%2C%22description%22%3A%22Web3%20consumers%20don%27t%20have%20to%20request%20data%20from%20a%20single%20server%2C%20but%20rather%20from%20a%20pool%20of%20peers%22%7D%5D%7D%5D"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response containing the URL of the generated slide.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "image_url": {
                          "type": "string"
                        },
                        "presentation_id": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Slide": {
        "type": "object",
        "required": [
          "title",
          "subtitle",
          "slidenum",
          "img_alt_text",
          "body"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "slidenum": {
            "type": "integer"
          },
          "img_alt_text": {
            "type": "string"
          },
          "body": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulletPoint"
            }
          }
        }
      },
      "BulletPoint": {
        "type": "object",
        "required": [
          "point",
          "description"
        ],
        "properties": {
          "point": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  }
}