Convert Vega-Lite To PNG

This task converts a Vega-Lite chart speciciation to a PNG file.



This task allows to create a PNG from a Vega-Lite specification.

How to use it?

Enter the Vega-Lite specification. You will get a generated Image.


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

First release
VersionAI ModelCreatedLink


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.


  • vega_lite_spec (Vega Lite Spec): The Vega-Lite chart specifications that should be converted to a png
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN"
  • 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 ='intern-text-to-image-vega','1.0.0', {'vega_lite_spec': ' { "$schema": "", "data": {"url": "data/movies.json"}, "mark": "circle", "encoding": { "x": { "bin": {"maxbins": 10}, "field": "IMDB Rating" }, "y": { "bin": {"maxbins": 10}, "field": "Rotten Tomatoes Rating" }, "size": {"aggregate": "count"} } }'})
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-text-to-image-vega','1.0.0', vega_lite_spec=' { "$schema": "", "data": {"url": "data/movies.json"}, "mark": "circle", "encoding": { "x": { "bin": {"maxbins": 10}, "field": "IMDB Rating" }, "y": { "bin": {"maxbins": 10}, "field": "Rotten Tomatoes Rating" }, "size": {"aggregate": "count"} } }')