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

# Generate an SVG icon.



## OpenAPI

````yaml https://raw.githubusercontent.com/Dallas-Peters-Design-Co/photo-portfolio/main/openapi.json post /api/ai/icon
openapi: 3.1.0
info:
  description: >-
    Generated from the handlers in `api/` and the schemas in `schemas/`. Do not
    edit by hand — run `pnpm openapi`.
  title: Photo portfolio API
  version: 1.0.0
servers:
  - description: Local
    url: http://localhost:3006
  - description: Production
    url: https://app.dallaspeters.com
security: []
paths:
  /api/ai/icon:
    post:
      tags:
        - ai
      summary: Generate an SVG icon.
      operationId: post_api_ai_icon
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  minLength: 1
                style:
                  type: string
              required:
                - prompt
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneratedImage'
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        4XX:
          description: Request rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        5XX:
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    GeneratedImage:
      $ref: '#/components/schemas/GeneratedImage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      additionalProperties: false
      description: Every failing endpoint answers with this shape.
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.