Reference for the public endpoints used to generate and retrieve images with your api_key.
Looking for the pricing & quick start page? Go back to index →
Stored locally in your browser as imference_api_key.
https://imference.com
All endpoints require a Bearer token in the Authorization header:
Authorization: Bearer <API_KEY>
/credits/balance
Returns the remaining credits for the authenticated user.
curl -X GET \ 'https://imference.com/credits/balance' \ -H 'Authorization: Bearer <API_KEY>'
/image/generate
Queue a new image generation for a given model and text description.
curl -X POST \
'https://imference.com/image/generate' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "illustrious-hassuka-xl",
"prompt": "A cat astronaut floating in space"
}'
/image/status
Look up the status of an image generation by its request_id.
curl -X GET \ 'https://imference.com/image/status?request_id=<REQUEST_ID>' \ -H 'Authorization: Bearer <API_KEY>'
/image/all
Retrieve all images generated for the authenticated API key.
curl -X GET \ 'https://imference.com/image/all' \ -H 'Authorization: Bearer <API_KEY>'