API Token
If you don’t already have an account navigate to the app.prodia.com and click Sign Up.
Go to the API Dashboard to generate a token. You
should see a token management screen similar to this:
If the token management interface isn’t showing up please check that you have
an active Pro+ subscription.
Give the token a meaningful label like getting started
and click Create API
Key:
Next copy the key to a safe location. We will use this key for the remainder of
the tutorial.
Now that we have an API key were are ready to setup the project.
Project Setup
Install Node (if not already installed):
Create project skeleton:
Install Python (if not already installed):
Install curl (if not already installed):
Create a main file for your project:
Create the following main.py
You’re now ready to make some API calls!
Text to Image
Add the following to the main file:
Run the main code:
Open the output image puppies.jpg
:
And you’ll see some cute puppies like these:
Congratulations on finishing your first project using Prodia!