# Generate Image **POST /image/generate** Generate images based on the provided prompt and parameters ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Authentication methods - Bearer auth ## Parameters ### Body: application/json (object) - **prompt** (string) - **model** (string) - **provider** (string) - **number_of_images** (integer) Number of images to generate - **aspect_ratio** (string) Desired image dimensions, format: WIDTHxHEIGHT - **safety_filter_level** (string | null) Safety filter level: block_most, block_some, block_few, block_fewest - **person_generation** (string | null) Person generation: dont_allow, allow_adult, allow_all - **seed** (integer | null) Random seed for reproducible generation - **negative_prompt** (string | null) Negative prompt to avoid certain elements in the image ## Responses ### 200 Successfully generated image(s) #### Body: application/json (object) - **images** (array[string]) Base64 encoded images data (without mime prefix) - **error** (string | null) Error message if image generation failed - **count** (integer) Number of Images ### 400 Bad request - invalid input parameters ### 500 Internal server error - image generation failed [Powered by Bump.sh](https://bump.sh)