Put in order · Vibe coding with Claude Code course · Module 10: TikTok clone

Steps of the cover route

Put in order the steps of the POST /api/cover route as in the code:

Items to put in order

  • Check the key (without a key a stand-in cover)
  • Call images.generate with COVER_MODEL
  • Check the description length (a bad description gets 400)
  • Turn b64_json into a data: address and return the response

You can check the correct answer by solving this task in the CodeWorlds game.