Stable Diffusion Prompt Generator

Generates a prompt for a stable diffusion model.

Input

Description

Develop a customized prompt specifically designed for a stable diffusion model. The output is a comprehensive and precise prompt that ensures the model produces optimal results.

Applications

The customized prompt development task enhances the capabilities of a stable diffusion model, particularly in the realm of image generation. By creating a tailored prompt, the task empowers the model to produce high-quality and lifelike images that closely match the provided description.

How to use the task

  1. Provide a brief description of the desired image for the stable diffusion model to generate.

  2. The task will produce a comprehensive and precise prompt based on your description, tailored for the model.

  3. Incorporate the generated prompt into your Stable Diffusion model's input to guide image generation.

[1.0.0]:
First Version
VersionAI ModelCreatedLink
1.0.004.05.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • requirement (Requirement): Describe what should be drawn
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-ba835df8268fc301-stable-diffusion-prompt-generator/1.0.0?requirement=A%20man%20with%20a%20white%20hat.
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-ba835df8268fc301-stable-diffusion-prompt-generator','1.0.0', {'requirement': 'A man with a white hat.'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-ba835df8268fc301-stable-diffusion-prompt-generator','1.0.0', requirement='A man with a white hat.')