Convert PlantUML To PNG

This task converts a PlantUML UML speciciation to a PNG file.

Input

Description

This task allows to create a PNG from a PlantUML specification.

How to use it?

Enter the PlantUML specification. You will get a generated Image.

Privacy

It's important to exercise caution when using this task, particularly with regard to sensitive information.

[1.0.0]:
First release
VersionAI ModelCreatedLink
1.0.0openai28.03.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

  • plantuml_spec (PlantUML): The PlantUML specification for generating UML diagrams.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/intern-text-to-image-plantuml/1.0.0?plantuml_spec=%20%40startuml%20title%20Authentication%20Sequence%0AAlice-%3EBob%3A%20Authentication%20Request%20note%20right%20of%20Bob%3A%20Bob%20thinks%20about%20it%20Bob-%3EAlice%3A%20Authentication%20Response%20%40enduml
  • 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('intern-text-to-image-plantuml','1.0.0', {'plantuml_spec': ' @startuml title Authentication Sequence
    Alice->Bob: Authentication Request note right of Bob: Bob thinks about it Bob->Alice: Authentication Response @enduml'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-text-to-image-plantuml','1.0.0', plantuml_spec=' @startuml title Authentication Sequence
    Alice->Bob: Authentication Request note right of Bob: Bob thinks about it Bob->Alice: Authentication Response @enduml')