---
name: "hf-space-awacke1-prompt-refinery-text-to-image-generation"
description: "Use the Hugging Face Space awacke1/Prompt-Refinery-Text-to-Image-Generation."
metadata:
  source: huggingface-space
  spaceId: "awacke1/Prompt-Refinery-Text-to-Image-Generation"
  hubUrl: https://huggingface.co/spaces/awacke1/Prompt-Refinery-Text-to-Image-Generation
  agentsMdUrl: https://huggingface.co/spaces/awacke1/Prompt-Refinery-Text-to-Image-Generation/agents.md
  appUrl: https://awacke1-prompt-refinery-text-to-image-generation.hf.space
---

# Hugging Face Space: awacke1/Prompt-Refinery-Text-to-Image-Generation

Use this skill when the user wants to use the Hugging Face Space `awacke1/Prompt-Refinery-Text-to-Image-Generation`.

- Space page: https://huggingface.co/spaces/awacke1/Prompt-Refinery-Text-to-Image-Generation
- App URL: https://awacke1-prompt-refinery-text-to-image-generation.hf.space
- Source instructions: https://huggingface.co/spaces/awacke1/Prompt-Refinery-Text-to-Image-Generation/agents.md

## Space agent instructions

To use this application (awacke1/Prompt-Refinery-Text-to-Image-Generation: Generate expanded prompts and AI images from your text):
API schema: GET https://awacke1-prompt-refinery-text-to-image-generation.hf.space/gradio_api/info
Config (find fn_index): GET https://awacke1-prompt-refinery-text-to-image-generation.hf.space/config → dependencies[i].id where api_name matches API schema endpoint
Join the queue: POST https://awacke1-prompt-refinery-text-to-image-generation.hf.space/gradio_api/queue/join (pass {"data": [...], "fn_index": <from-config>, "session_hash": "<random-uuid>"})
Stream results: GET https://awacke1-prompt-refinery-text-to-image-generation.hf.space/gradio_api/queue/data?session_hash=<same-uuid>
File inputs: POST https://awacke1-prompt-refinery-text-to-image-generation.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)
