---
updatedAt: 2025-06-02T21:21:43.000Z
agentTools:
  projectIndex: https://api.developer.lifx.com/llms.txt
---

# Flame Effect

Performs a flame effect on the tiles in your selector. Use the parameters to tweak the effect. Note that the brightness of the flame is determined by the brightness of the tile. To change the brightness, use the SetState endpoint.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.lifx.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/lights/{selector}/effects/flame": {
      "post": {
        "summary": "Flame Effect",
        "description": "",
        "operationId": "flame-effect",
        "parameters": [
          {
            "name": "selector",
            "in": "path",
            "description": "The [selector](doc:selectors) to limit which devices will run the effect.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "period": {
                    "type": "number",
                    "description": "This controls how quickly the flame runs. It is measured in seconds. A lower number means the animation is faster",
                    "default": 5,
                    "format": "double"
                  },
                  "duration": {
                    "type": "number",
                    "description": "How long the animation lasts for in seconds. Not specifying a duration makes the animation never stop. Specifying 0 makes the animation stop. Note that there is a known bug where the tile remains in the animation once it has completed if duration is nonzero.",
                    "default": null,
                    "format": "float"
                  },
                  "power_on": {
                    "type": "boolean",
                    "description": "Switch any selected device that is off to on before performing the effect.",
                    "default": true
                  },
                  "fast": {
                    "type": "boolean",
                    "description": "Execute the query [fast](doc:set-state#fast-mode), without initial state checks and wait for no results.",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "2XX",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"results\": [\n    {\n      \"id\": \"d3b2f2d97452\",\n      \"label\": \"My tile\",\n      \"status\": \"ok\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "d3b2f2d97452"
                          },
                          "label": {
                            "type": "string",
                            "example": "My tile"
                          },
                          "status": {
                            "type": "string",
                            "example": "ok"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```