Authentication
GetImage.io uses API keys to authenticate requests. You can view and manage your API keys in the API Keys (opens in a new tab) page in the dashboard.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
🔐
If, by any chance, your API Key gets accidentally leaked, it is strongly advised to immediately access the backend and revoke the key to ensure the prevention of any unwarranted charges.
To authenticate an API request, you should provide your API key as a Bearer
token in the Authorization
HTTP header.
For example,
curl -X POST https://api.getimage.io/v1/diffusions \
-H 'Authorization: Bearer {API_KEY}' \
-d '{"prompt": "Mountain village landscape, neo fauvist style", "model": "midjourney"}'