The main purpose of this study is to evaluate the long-term efficacy of mirikizumab in pediatric participants with ulcerative colitis (UC) or Crohn's disease (CD). The study will last about 172 weeks and may include up to 44 visits. Additional treatment may be available to participants via a Continued Access Period.