{
  "template_name": "MeyKey Image Generation - Make Reference Template",
  "version": "1.1",
  "meykey_version_reference": "3.2.77",
  "important_note": "Reference template JSON, bukan blueprint import Make yang dijamin kompatibel lintas versi module.",
  "flow": [
    {
      "step": 1,
      "module": "HTTP - Make a request",
      "name": "Generate Image",
      "settings": {
        "authentication_type": "No authentication (Authorization dikirim sebagai header)",
        "url": "https://meykey.site/v1/images/generations",
        "method": "POST",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer YOUR_MEYKEY_API_KEY"
          },
          {
            "name": "Content-Type",
            "value": "application/json"
          }
        ],
        "timeout_seconds": 120,
        "parse_response": true,
        "body_content_type": "application/json",
        "body": {
          "model": "custom_router",
          "prompt": "Buat gambar uji sederhana.",
          "response_format": "url"
        }
      },
      "expected_output": {
        "status_code": 200,
        "image_url_path": "data[0].url"
      }
    },
    {
      "step": 2,
      "module": "HTTP - Download a file",
      "name": "Download MeyKey Artifact",
      "settings": {
        "authentication_type": "No authentication",
        "url_mapping": "Map dari Step 1 -> data[0].url"
      },
      "expected_output": {
        "status_code": 200,
        "data_type": "binary buffer"
      }
    },
    {
      "step": 3,
      "module": "Optional destination module",
      "name": "Upload / Send Result",
      "options": [
        {
          "destination": "Telegram",
          "action": "Send a document atau Send a photo",
          "mapping": "File data dari Step 2"
        },
        {
          "destination": "Google Drive",
          "action": "Upload a file",
          "mapping": "File data + file name dari Step 2"
        },
        {
          "destination": "Dropbox / OneDrive / S3-compatible storage",
          "action": "Upload file",
          "mapping": "File data dari Step 2"
        }
      ]
    }
  ],
  "safety": {
    "do_not_log": [
      "MeyKey API key",
      "Telegram bot token",
      "provider upstream secrets"
    ],
    "retry_guidance": "Jangan lakukan paid image retry otomatis pada 5xx/timeout ambigu tanpa memastikan upstream belum memproses request."
  }
}
