> ## Documentation Index
> Fetch the complete documentation index at: https://faces.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Project

> Generate an interactive, explorable deck from a text prompt.



## OpenAPI

````yaml POST /projects/generate
openapi: 3.1.0
info:
  title: Faces API
  version: '1.0'
  description: >-
    Faces API for creating and managing presentations. Generate presentations
    from prompts, or read and write individual slides. Each slide is a React
    component (face.tsx) with content blocks (face.content.json) and editor
    controls (face.controls.json).
servers:
  - url: https://faces.app/api/v1
    description: API v1
security:
  - bearerAuth: []
paths:
  /projects/generate:
    post:
      tags:
        - Projects
      summary: Generate a project
      description: >-
        Generate a new project from a text prompt using AI. Returns a job ID to
        poll with Get job status until it completes.
      operationId: generateProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  minLength: 1
                  description: A detailed description of the project to generate.
                  example: >-
                    5-slide pitch deck about AI in healthcare with a modern dark
                    theme
                templateId:
                  type: string
                  description: >-
                    ID of one of your team's templates to base the project on.
                    The template's design is preserved exactly and its slides
                    are reproduced with your content. Only team templates are
                    supported.
              required:
                - prompt
      responses:
        '200':
          description: Job created
          content:
            application/json:
              schema:
                type: object
                properties:
                  jobId:
                    type: string
                    description: Poll this ID with the status endpoint.
                  status:
                    type: string
                    enum:
                      - processing
                  editorUrl:
                    type: string
                    format: uri
                    description: URL to open the project in the Faces editor.
                  estimatedDuration:
                    type: string
                    description: >-
                      Estimated generation time. ~120s with a team template,
                      240s from scratch.
                    example: 240 seconds
                  templateId:
                    type: string
                required:
                  - jobId
                  - status
                  - editorUrl
                  - estimatedDuration
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (50 requests per minute)
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with "faces_" prefix. Create one at Settings > Developers.

````