# Auto Brightness Flats **GET /flats/auto-brightness** Start capturing auto brightness flats. This requires the camera to be connected. NINA will pick the best flat panel brightness for a fixed exposure time. Any omitted parameter will default to the instruction default. ## Servers - V2 api server: http://localhost:1888/v2/api (V2 api server) ## Parameters ### Query parameters - **count** (integer) The number of flats to capture - **exposureTime** (number) The exposure time to use for the flats, in seconds - **minBrightness** (integer) The minimum flat panel brightness to use for the flats - **maxBrightness** (integer) The maximum flat panel brightness to use for the flats - **histogramMean** (number) The mean to use for the histogram - **meanTolerance** (number) The tolerance to use for the histogram - **filterId** (integer) The filter to use for the flats. The current filter will be used if this is not specified - **binning** (string) The binning to use for the flats - **gain** (integer) The gain to use for the flats. The camera gain will be used if this is not specified - **offset** (integer) The offset to use for the flats. The camera offset will be used if this is not specified - **keepClosed** (boolean) Whether to keep the flat panel closed after taking the flats ## Responses ### 200 Successful response #### Body: application/json (object) - **Response** (string) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) ### 400 Could not start the process #### Body: application/json (object) - **Response** (string | array[string]) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) ### 500 Internal server error, Unknown error #### Body: application/json (object) - **Response** (string) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) [Powered by Bump.sh](https://bump.sh)