print('Hello world!')
{
  "openapi": "3.0.0",
  "info": {
    "title": "Promptchan API",
    "version": "1.0.3",
    "description": "# Welcome to the Promptchan API\nDiscover the freedom to create with the Promptchan API, designed for developers and creators seeking the state of the art Image generation platform. Our API provides powerful capabilities for generating and editing images allowing for broader creative expression based on provided parameters. Ideal for projects requiring a high degree of flexibility and fidelity in Image Creation, Promptchan API is your go-to solution for pushing the power of AI image generation.\n\n## Server Endpoints\n\n- **Image Requests:** Use `https://[Log in to view URL]` for all image generation requests.\n\n\n## Getting Started\n\nTo access and utilize the Promptchan API effectively, please follow these steps:\n\n### 1. Sign in or Sign Up\n\n- Users should sign in or sign up for an account by visiting `https://[Log in to view URL] An account is required to access the API and generate your unique API key.\n\n### \n\n### 2. Generate Your API Key\n\n- After signing in and upgrading your account, navigate to the settings menu at `https://[Log in to view URL] and find the API Key section to \"Generate\".\n- Your API key serves as your authentication for API requests. Keep it secure and do not share it publicly.\n\n### 3. Top Up Your Account with Gems\n\n- The API utilizes Gems as currency for image generation. One Gem equals one image generation.\n- Purchase Gems at `https://[Log in to view URL] Packages vary, allowing you to choose the best fit for your needs.\n- Gems will be credited to your account upon purchase, enabling you to start generating images through the API.\n\n### 4. Making API Requests\n\n- **Base URL:** The base URL for all API endpoints is `https://[Log in to view URL]`.\n- **Authentication:** Include your API key in the request header as `x-api-key` to authenticate your API requests.\n\nWith your Pro subscription, API key, and Gems, you are fully equipped to explore the capabilities of the Promptchan API. Detailed information on specific endpoints and their usage is available in the sections below.\n\n <sub>*High usage may result in extra charges during peak times, up to 0.25 Gems.*</sub>"
  },
  "servers": [
    {
      "url": "https://[Log in to view URL]",
      "description": "Server for non-character image requests."
    }
  ],
  "paths": {
    "/api/external/create": {
      "post": {
        "tags": [
          "Image Operations"
        ],
        "summary": "Generates an image based on provided parameters. There's a base cost of 1 Gem for an image.",
        "operationId": "generate",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "style": {
                    "type": "string",
                    "description": "Art style of the image. Defaults to 'Cinematic'.",
                    "enum": [
                      "Cinematic",
                      "Anime",
                      "Hyperreal",
                      "Hyperanime",
                      "K-Pop",
                      "Fur",
                      "Furtoon",
                      "Render XL+",
                      "Illustration XL+",
                      "Anime XL",
                      "Anime XL+",
                      "Hardcore XL",
                      "Cinematic XL",
                      "Photo XL+",
                      "Hyperreal XL+"
                    ]
                  },
                  "poses": {
                    "type": "string",
                    "description": "Pose for the generated image. Defaults to 'Default'.",
                    "enum": [
                      "Default",
                      "POV Missionary",
                      "POV Blowjob",
                      "POV Doggystyle",
                      "Cum in Mouth",
                      "After Sex",
                      "Handjob",
                      "Carrying Sex",
                      "Flashing Boobs",
                      "Breast Squeeze",
                      "Front View Cowgirl",
                      "ButtJob",
                      "Side View Blowjob",
                      "Stick out Tongue",
                      "POV Spitroast",
                      "Just Before Sex",
                      "POV Threesome BlowJob",
                      "Grab Ass",
                      "Mating Press",
                      "POV Reverse Cowgirl",
                      "Thigh Sex",
                      "POV Anal",
                      "Piledrive",
                      "Vagina Spread",
                      "Imminent Sex",
                      "Female Masturbation",
                      "Jacko Pose",
                      "Sideway Ass",
                      "Titjob",
                      "Titjob Real",
                      "Titjob Anime",
                      "Spread Ass",
                      "Bukkake",
                      "Spooning",
                      "Amazon Position",
                      "On/Off Clothing",
                      "Shirt Pull",
                      "Cheek Bulge Blowjob",
                      "Solo Breast Grab",
                      "From Below",
                      "Resting On Stomach",
                      "Blowjob Under Desk",
                      "Penis",
                      "Breasts Pressed Against Glass",
                      "Reverse Deepthroat",
                      "Orgy",
                      "Cum on Ass",
                      "Cumshot",
                      "Ass On Glass",
                      "Multiple Hands",
                      "Facesitting",
                      "On Off",
                      "Side Blowjob",
                      "Kneeling",
                      "POV Breast Grab",
                      "Surrounded by Penises",
                      "Orgasm Face",
                      "Flashing In Public",
                      "Mooning",
                      "Wet Tshirt",
                      "Lesbian Oral",
                      "Lesbian Fingering",
                      "Lesbian Scissoring",
                      "Gay Cowboy Anime",
                      "Gay Cowboy Real",
                      "Gay Grabbing",
                      "BDSM Suspension",
                      "BDSM Tied Up",
                      "BDSM Tape",
                      "BDSM Ballgag",
                      "BDSM Leash",
                      "Downblouse",
                      "Sitting",
                      "Vagina",
                      "Showering",
                      "Cum Bath",
                      "Cuddling",
                      "Lesbian Cuddling",
                      "Gay Cuddling",
                      "POV Cowgirl",
                      "Feet",
                      "Multiple Mooning",
                      "Giant",
                      "Upset",
                      "Disgusted",
                      "Scared",
                      "Winking",
                      "Angry",
                      "Smiling",
                      "Laughing",
                      "Ouch",
                      "Shocked",
                      "Side Blowjob Real",
                      "Sucking Nipple",
                      "Finger Sucking",
                      "Showing off Ass",
                      "Wind Lift/ Nip Slip",
                      "Reverse Blowjob",
                      "Lying Down Feet",
                      "Footjob",
                      "Dildo",
                      "Handbra/Holding Boobs",
                      "Milking Machine",
                      "Panties Off",
                      "Double Handjob",
                      "Undressing",
                      "Bubble Bath",
                      "Caught Naked Embarrassed",
                      "Gloryhole",
                      "Xray Glasses",
                      "Man Grabbing Boobs",
                      "Glory Wall",
                      "Wind Lift",
                      "POV Deepthroat",
                      "POV Strangling",
                      "Licking Dick"
                    ]
                  },
                  "filter": {
                    "type": "string",
                    "description": "Filter applied to the image. Defaults to 'Default'.",
                    "enum": [
                      "Default",
                      "Cyberpunk",
                      "VHS",
                      "Manga",
                      "Flash",
                      "Analog",
                      "Professional",
                      "Cinematic",
                      "Studio",
                      "Polaroid",
                      "Vintage"
                    ]
                  },
                  "detail": {
                    "type": "integer",
                    "description": "Detail level of the image stylization, recommended between -2 and 2."
                  },
                  "prompt": {
                    "type": "string",
                    "description": "Text prompt for guiding the image generation."
                  },
                  "seed": {
                    "type": "integer",
                    "description": "Seed for deterministic results. Use -1 for random."
                  },
                  "quality": {
                    "type": "string",
                    "description": "Quality setting of the generated image. Defaults to 'Ultra'. 'Extreme' quality costs 1 extra Gem, and 'Max' quality costs 2 extra Gems.",
                    "enum": [
                      "Ultra",
                      "Extreme",
                      "Max"
                    ]
                  },
                  "creativity": {
                    "type": "integer",
                    "description": "Creativity level of the generation, recommended values are 30, 50, 70."
                  },
                  "image_size": {
                    "type": "string",
                    "description": "Size of the generated image.",
                    "enum": [
                      "512x512",
                      "512x768",
                      "768x512"
                    ]
                  },
                  "negative_prompt": {
                    "type": "string",
                    "description": "Text prompt specifying what to avoid in the generation."
                  },
                  "restore_faces": {
                    "type": "boolean",
                    "description": "Whether to apply face restoration. Costs 1 extra Gem and should only be used for realistic styles."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created image.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "image": {
                      "type": "string",
                      "description": "The generated base-64 encoded image."
                    },
                    "gems": {
                      "type": "integer",
                      "description": "The remaining Gems acount."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid API key",
                      "description": "Error message indicating the API key was invalid."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "API key needed to authorize requests."
      }
    }
  }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: