---
updatedAt: 2026-04-21T16:38:41.000Z
agentTools:
  projectIndex: https://docs.beautiful.ai/llms.txt
---

# Generate a presentation from a prompt

Generate a fully designed presentation from a natural-language prompt.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Beautiful.ai API",
    "version": "1.0.0",
    "description": "The Beautiful.ai API lets you generate, inspect, copy, and export presentations.\n\nThe `/generatePresentation` endpoint creates a deck directly from a natural-language prompt.\nThe remaining AI workflow endpoints mirror the current Beautiful.ai MCP tools and return the same structured result payloads exposed by those tools.\n"
  },
  "servers": [
    {
      "url": "https://www.beautiful.ai/api/v1",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerApiKeyAuth": []
    }
  ],
  "paths": {
    "/generatePresentation": {
      "post": {
        "summary": "Generate a presentation from a prompt",
        "description": "Generate a fully designed presentation from a natural-language prompt.\n",
        "operationId": "generatePresentation",
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePresentationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Presentation generated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeneratePresentationResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Preferred. Send your Beautiful.ai API key in the X-Api-Key header."
      },
      "BearerApiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Alternative. You may also send the same Beautiful.ai API key as Authorization: Bearer <api-key>."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing or invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Authenticated, but not allowed to perform the action.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "GeneratePresentationRequest": {
        "type": "object",
        "required": [
          "prompt"
        ],
        "properties": {
          "workspaceId": {
            "type": "string",
            "description": "Optional workspace id to target explicitly."
          },
          "prompt": {
            "type": "string",
            "maxLength": 10000,
            "description": "A natural-language description of the presentation to generate."
          },
          "folderId": {
            "type": "string",
            "description": "Optional presentation folder id returned by `/getFolders`."
          },
          "themeId": {
            "type": "string",
            "description": "Optional `team` or any theme id returned by `/getThemes`."
          },
          "imageSource": {
            "type": "string",
            "enum": [
              "ai",
              "web",
              "stock",
              "none"
            ]
          },
          "imageStyle": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "preserveExactText": {
            "type": "boolean"
          }
        }
      },
      "GeneratePresentationResponse": {
        "type": "object",
        "required": [
          "presentationId",
          "status",
          "playerUrl"
        ],
        "properties": {
          "presentationId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "in_progress",
              "failed"
            ]
          },
          "title": {
            "type": "string"
          },
          "playerUrl": {
            "type": "string",
            "format": "uri"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "message"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```