{
  "schemaVersion": "1.0",
  "item": {
    "slug": "krea-api",
    "name": "Krea.ai API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/FossilizedCarlos/krea-api",
    "canonicalUrl": "https://clawhub.ai/FossilizedCarlos/krea-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/krea-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=krea-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "krea_api.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/krea-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/krea-api",
    "agentPageUrl": "https://openagent3.xyz/skills/krea-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/krea-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/krea-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Krea.ai Image Generation Skill",
        "body": "Generate images using Krea.ai's API with support for multiple models including Flux, Imagen 4, Ideogram 3.0, and more."
      },
      {
        "title": "Features",
        "body": "✅ Async job-based generation (POST → poll → result)\n✅ Support for multiple image models\n✅ Configurable parameters (width, height, steps, guidance, seed)\n✅ Stdlib-only dependencies (no requests required)\n✅ Secure credential handling with file permissions"
      },
      {
        "title": "Security",
        "body": "This skill prioritizes security:\n\nNo webhook support - Removed to prevent SSRF risks\nStdlib dependencies - Minimal attack surface (uses urllib only)\nFile-based credentials - Primary credential source with secure permissions\nInput validation - All parameters validated before API calls"
      },
      {
        "title": "Credential Sources (in order of precedence)",
        "body": "CLI arguments: --key-id and --secret (for one-off use)\nFile: ~/.openclaw/credentials/krea.json"
      },
      {
        "title": "Note on Subprocess",
        "body": "The --usage flag uses webbrowser.open() (stdlib) to open the usage dashboard in a browser. No subprocess calls."
      },
      {
        "title": "Setup",
        "body": "Get your Krea.ai API credentials from https://docs.krea.ai/developers/api-keys-and-billing\nCreate the credentials file:\n\nmkdir -p ~/.openclaw/credentials\n\nAdd your credentials:\n\necho '{\"apiKey\": \"YOUR_KEY_ID:YOUR_SECRET\"}' > ~/.openclaw/credentials/krea.json\n\nSet secure permissions:\n\nchmod 600 ~/.openclaw/credentials/krea.json"
      },
      {
        "title": "Command Line",
        "body": "# Generate an image\npython3 krea_api.py --prompt \"A sunset over the ocean\"\n\n# With specific model\npython3 krea_api.py --prompt \"Cyberpunk city\" --model imagen-4\n\n# Custom size\npython3 krea_api.py --prompt \"Portrait\" --width 1024 --height 1280\n\n# List available models\npython3 krea_api.py --list-models\n\n# Check recent jobs\npython3 krea_api.py --jobs 10"
      },
      {
        "title": "Python Script",
        "body": "from krea_api import KreaAPI\n\napi = KreaAPI()  # Reads from ~/.openclaw/credentials/krea.json\n\n# Generate and wait\nurls = api.generate_and_wait(\n    prompt=\"A serene Japanese garden\",\n    model=\"flux\",\n    width=1024,\n    height=1024\n)\nprint(urls)"
      },
      {
        "title": "Parameters",
        "body": "ParameterTypeDefaultDescriptionpromptstrrequiredImage description (max 1800 chars)modelstr\"flux\"Model name from table belowwidthint1024Image width (512-2368)heightint1024Image height (512-2368)stepsint25Generation steps (1-100)guidance_scalefloat3.0Guidance scale (0-24)seedstrNoneRandom seed for reproducibility"
      },
      {
        "title": "Available Models",
        "body": "ModelBest ForfluxGeneral purpose, high qualityimagen-4Latest Google modelideogram-3.0Text in imagesseedream-4Fast generationsnano-bananaQuick previews\n\nRun python3 krea_api.py --list-models for full list."
      },
      {
        "title": "Check Usage",
        "body": "Krea.ai doesn't provide a public usage API. Check your usage at:\n\nhttps://www.krea.ai/settings/usage-statistics\n\nOr list recent jobs:\n\npython3 krea_api.py --jobs 10"
      },
      {
        "title": "File Locations",
        "body": "PurposePathCredentials~/.openclaw/credentials/krea.jsonScript{skill}/krea_api.pySkill docs{skill}/SKILL.md"
      },
      {
        "title": "\"API credentials required\"",
        "body": "Check credentials file exists:\n\nls -la ~/.openclaw/credentials/krea.json\n# Should show: -rw-------\n\nVerify format (must have colon):\n\n{\"apiKey\": \"KEY_ID:SECRET\"}\n\n⚠️ Security: Do NOT use cat to view the credentials file — it contains secrets."
      },
      {
        "title": "Model not found",
        "body": "Run python3 krea_api.py --list-models to see available models."
      },
      {
        "title": "Credits",
        "body": "Thanks to Claude Opus 4.5 for researching the correct API structure. The docs incorrectly suggest /v1/images/flux but the working endpoint is /generate/image/bfl/flux-1-dev."
      }
    ],
    "body": "Krea.ai Image Generation Skill\n\nGenerate images using Krea.ai's API with support for multiple models including Flux, Imagen 4, Ideogram 3.0, and more.\n\nFeatures\n✅ Async job-based generation (POST → poll → result)\n✅ Support for multiple image models\n✅ Configurable parameters (width, height, steps, guidance, seed)\n✅ Stdlib-only dependencies (no requests required)\n✅ Secure credential handling with file permissions\nSecurity\n\nThis skill prioritizes security:\n\nNo webhook support - Removed to prevent SSRF risks\nStdlib dependencies - Minimal attack surface (uses urllib only)\nFile-based credentials - Primary credential source with secure permissions\nInput validation - All parameters validated before API calls\nCredential Sources (in order of precedence)\nCLI arguments: --key-id and --secret (for one-off use)\nFile: ~/.openclaw/credentials/krea.json\nNote on Subprocess\n\nThe --usage flag uses webbrowser.open() (stdlib) to open the usage dashboard in a browser. No subprocess calls.\n\nSetup\nGet your Krea.ai API credentials from https://docs.krea.ai/developers/api-keys-and-billing\nCreate the credentials file:\nmkdir -p ~/.openclaw/credentials\n\nAdd your credentials:\necho '{\"apiKey\": \"YOUR_KEY_ID:YOUR_SECRET\"}' > ~/.openclaw/credentials/krea.json\n\nSet secure permissions:\nchmod 600 ~/.openclaw/credentials/krea.json\n\nUsage\nCommand Line\n# Generate an image\npython3 krea_api.py --prompt \"A sunset over the ocean\"\n\n# With specific model\npython3 krea_api.py --prompt \"Cyberpunk city\" --model imagen-4\n\n# Custom size\npython3 krea_api.py --prompt \"Portrait\" --width 1024 --height 1280\n\n# List available models\npython3 krea_api.py --list-models\n\n# Check recent jobs\npython3 krea_api.py --jobs 10\n\nPython Script\nfrom krea_api import KreaAPI\n\napi = KreaAPI()  # Reads from ~/.openclaw/credentials/krea.json\n\n# Generate and wait\nurls = api.generate_and_wait(\n    prompt=\"A serene Japanese garden\",\n    model=\"flux\",\n    width=1024,\n    height=1024\n)\nprint(urls)\n\nParameters\nParameter\tType\tDefault\tDescription\nprompt\tstr\trequired\tImage description (max 1800 chars)\nmodel\tstr\t\"flux\"\tModel name from table below\nwidth\tint\t1024\tImage width (512-2368)\nheight\tint\t1024\tImage height (512-2368)\nsteps\tint\t25\tGeneration steps (1-100)\nguidance_scale\tfloat\t3.0\tGuidance scale (0-24)\nseed\tstr\tNone\tRandom seed for reproducibility\nAvailable Models\nModel\tBest For\nflux\tGeneral purpose, high quality\nimagen-4\tLatest Google model\nideogram-3.0\tText in images\nseedream-4\tFast generations\nnano-banana\tQuick previews\n\nRun python3 krea_api.py --list-models for full list.\n\nCheck Usage\n\nKrea.ai doesn't provide a public usage API. Check your usage at:\n\nhttps://www.krea.ai/settings/usage-statistics\n\nOr list recent jobs:\n\npython3 krea_api.py --jobs 10\n\nFile Locations\nPurpose\tPath\nCredentials\t~/.openclaw/credentials/krea.json\nScript\t{skill}/krea_api.py\nSkill docs\t{skill}/SKILL.md\nTroubleshooting\n\"API credentials required\"\nCheck credentials file exists:\nls -la ~/.openclaw/credentials/krea.json\n# Should show: -rw-------\n\nVerify format (must have colon):\n{\"apiKey\": \"KEY_ID:SECRET\"}\n\n\n⚠️ Security: Do NOT use cat to view the credentials file — it contains secrets.\n\nModel not found\n\nRun python3 krea_api.py --list-models to see available models.\n\nCredits\n\nThanks to Claude Opus 4.5 for researching the correct API structure. The docs incorrectly suggest /v1/images/flux but the working endpoint is /generate/image/bfl/flux-1-dev."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/FossilizedCarlos/krea-api",
    "publisherUrl": "https://clawhub.ai/FossilizedCarlos/krea-api",
    "owner": "FossilizedCarlos",
    "version": "0.2.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/krea-api",
    "downloadUrl": "https://openagent3.xyz/downloads/krea-api",
    "agentUrl": "https://openagent3.xyz/skills/krea-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/krea-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/krea-api/agent.md"
  }
}