{
  "service": "kie_ai",
  "displayName": "KIE.AI",
  "categories": [
    "AI",
    "Design & Media",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "KIE_AI_API_KEY",
      "description": "KIE.AI API key sent as a Bearer token. Create and manage keys in the KIE.AI API key page: https://kie.ai/api-key"
    }
  ],
  "homepageUrl": "https://kie.ai",
  "actions": [
    {
      "id": "kie_ai.get_account_credits",
      "service": "kie_ai",
      "name": "get_account_credits",
      "description": "Get the remaining credit balance for the connected KIE.AI account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "The input payload for getting KIE.AI account credits."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The response status code returned by KIE.AI."
          },
          "message": {
            "type": "string",
            "description": "The response message returned by KIE.AI."
          },
          "credits": {
            "type": "integer",
            "description": "The remaining credit quantity reported by KIE.AI."
          }
        },
        "additionalProperties": false,
        "description": "The KIE.AI account credit response."
      }
    },
    {
      "id": "kie_ai.get_download_url",
      "service": "kie_ai",
      "name": "get_download_url",
      "description": "Convert a KIE.AI generated file URL into a temporary direct download URL.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 1,
            "description": "The KIE.AI generated file URL to convert into a download URL.",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "description": "The input payload for getting a KIE.AI download URL."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The response status code returned by KIE.AI."
          },
          "message": {
            "type": "string",
            "description": "The response message returned by KIE.AI."
          },
          "downloadUrl": {
            "type": "string",
            "description": "The temporary downloadable URL returned by KIE.AI.",
            "format": "uri"
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "The documented validity window for the download URL in seconds."
          }
        },
        "additionalProperties": false,
        "description": "The KIE.AI generated file download URL response."
      }
    }
  ]
}
