---
name: "hf-space-krea-krea-2"
description: "Use the Hugging Face Space krea/Krea-2."
metadata:
  source: huggingface-space
  spaceId: "krea/Krea-2"
  hubUrl: https://huggingface.co/spaces/krea/Krea-2
  agentsMdUrl: https://huggingface.co/spaces/krea/Krea-2/agents.md
  appUrl: https://krea-krea-2.hf.space
---

# Hugging Face Space: krea/Krea-2

Use this skill when the user wants to use the Hugging Face Space `krea/Krea-2`.

- Space page: https://huggingface.co/spaces/krea/Krea-2
- App URL: https://krea-krea-2.hf.space
- Source instructions: https://huggingface.co/spaces/krea/Krea-2/agents.md

## Space agent instructions

To use this application (krea/Krea-2: Generate images from natural language prompts):
API schema: GET https://krea-krea-2.hf.space/gradio_api/info
Call endpoint: POST https://krea-krea-2.hf.space/gradio_api/call/v2/{endpoint} {"param_name": value, ...}
Poll result: GET https://krea-krea-2.hf.space/gradio_api/call/{endpoint}/{event_id}
File inputs: POST https://krea-krea-2.hf.space/gradio_api/upload -F "files=@file.ext", use as: {"path": "<returned-path>", "meta": {"_type": "gradio.FileData"}, "orig_name": "file.ext"}
Auth: Bearer $HF_TOKEN (https://huggingface.co/settings/tokens)
