Imference API – Documentation

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 →

Authentication & Base URL

Stored locally in your browser as imference_api_key.

Base URL
https://imference.com
Authentication

All endpoints require a Bearer token in the Authorization header:

Authorization: Bearer <API_KEY>

Endpoints

GET /credits/balance

Returns the remaining credits for the authenticated user.

curl -X GET \
  'https://imference.com/credits/balance' \
  -H 'Authorization: Bearer <API_KEY>'
Live response Uses your saved API key
POST /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"
  }'
Live response The response contains a request_id.
GET /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>'
Live response Returns image metadata and URL if ready; 404 if not found/not ready.
GET /image/all

Retrieve all images generated for the authenticated API key.

curl -X GET \
  'https://imference.com/image/all' \
  -H 'Authorization: Bearer <API_KEY>'
Live response Returns an array of image objects with URLs, formats, seeds, and timestamps.