Images — API reference

Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.

Image creations

GET /images

  • Operation image_list
  • Scope media.read
  • Lowest role viewer
  • Read only
  • MCP image_list

The account's image generations and edits, newest first: id, status, prompt, model, aspect ratio, size, number of pictures, credits charged, favourite, created_at and the reason of a failed one. Filter by status or favourites.

Parameters

  • status query string — Only this status (default all). One of: all, failed, running, completed.
  • favorites query boolean — Only the starred ones.
  • limit query integer — At most this many (default 10). min 1 · max 20
  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • items array of object required
    • id string required — The generation id (uuid).
    • status string required — queued, processing, completed, failed or cancelled.
    • operation string — An image edit: its kind (edit, inpaint, expand …).
    • prompt string — The prompt (shortened).
    • model string
    • aspect_ratio string
    • size string
    • count integer — Pictures asked for.
    • pictures integer — Pictures made (completed only).
    • credits_charged integer required
    • favorite boolean — Present (true) when starred.
    • created_at string
    • reason string — Why it failed (failed only).

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/images" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images", {
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());
Python
import os
import requests

res = requests.get(
    "https://iqcore.ai/api/public/v1/images",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "items": [
        {
            "id": "<id>",
            "status": "status",
            "operation": "operation",
            "prompt": "A bright product photo of a leather boot",
            "model": "model",
            "aspect_ratio": "aspect_ratio",
            "size": "size",
            "count": 1,
            "pictures": 1,
            "credits_charged": 1,
            "favorite": false,
            "created_at": "2026-12-05T09:00:00Z",
            "reason": "reason"
        }
    ]
}

Make an image

POST /images

  • Operation image_generate
  • Scope create.spend
  • Lowest role member
  • Spends credits (max_credits required)
  • MCP image_generate

Make one or more AI images (product scene, campaign visual, social post, banner) from a detailed prompt. Runs at once: the price is reserved (never more than max_credits; only purchased credits pay) and the image is queued. Follow it with GET /jobs/{id} or GET /images/{id}; the pictures land in the Media library. Models and their sizes: GET /images/models.

Parameters

  • Idempotency-Key header string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.

Request body application/json

  • prompt string required min length 3 · max length 4000
  • model string — The model's name from image_models_list; leave out for the default. max length 60
  • aspect_ratio string — 1:1 posts, 4:5 social portrait, 9:16 stories, 16:9 banners; auto = the model picks (some models). One of: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, 21:9, auto.
  • size string One of: 512, 1K, 2K, 4K.
  • count integer min 1 · max 4
  • style string One of: none, product_photography, luxury_commercial, minimal, studio, lifestyle, editorial, cinematic, realistic, modern_ad, soft_light, dark_premium, social_ad.
  • style_id string — A style of the style library (uuid, from image_styles_list). max length 64
  • references array of string — Reference pictures (Media library ids, from media_list). max items 4
  • organization_id string — An organization id (uuid) of this key.
  • max_credits integer required — The most credits this request may spend. A higher price is refused (402 quote_exceeded) and nothing is charged. Only purchased credits pay over the API. min 0

Response 201

  • message string required — A short sentence for a person.
  • job object required
    • kind string required — image, video, voice or clip_edit (the kind for GET /jobs/{id}).
    • id string required — The job id (uuid): GET /jobs/{id}.
    • status string required — Usually queued.
    • label string required
    • status_url string required — The dashboard path that polls it (relative to https://iqcore.ai).
    • open_url string required — The dashboard page that shows it (relative to https://iqcore.ai).
    • credits_reserved integer required
  • credits_reserved integer required — Reserved now; the real charge (never more) is settled when the job finishes.
  • note string required

Errors: 400 401 402 403 404 409 422 429 500 — codes

Example

curl
curl -X POST "https://iqcore.ai/api/public/v1/images" \
  -H "Authorization: Bearer $IQCORE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A bright product photo of a leather boot",
    "max_credits": 10
}'
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({
      "prompt": "A bright product photo of a leather boot",
      "max_credits": 10
  }),
});
console.log(res.status, await res.json());
Python
import os, uuid
import requests

res = requests.post(
    "https://iqcore.ai/api/public/v1/images",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "prompt": "A bright product photo of a leather boot",
        "max_credits": 10
    },
)
print(res.status_code, res.json())
json
{
    "message": "message",
    "job": {
        "kind": "kind",
        "id": "<id>",
        "status": "status",
        "label": "label",
        "status_url": "https://example.com/page",
        "open_url": "https://example.com/page",
        "credits_reserved": 1
    },
    "credits_reserved": 1,
    "note": "note"
}

Edit a picture

POST /images/edits

  • Operation image_edit
  • Scope create.spend
  • Lowest role member
  • Spends credits (max_credits required)
  • MCP image_edit

Edit a picture of the Media library with AI: instruction (change it as described), remove_background (clean white background), cutout (the subject on a transparent background), product_white (studio product photo on white), enhance (sharper, better colours) or expand (to a wider / taller ratio). The original stays; the result is a new picture in the Media library. Runs at once: the price is reserved (never more than max_credits; only purchased credits pay). Follow it with GET /jobs/{id}. Painting a mask is done on the editor page.

Parameters

  • Idempotency-Key header string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.

Request body application/json

  • image string required — The picture (Media library id, uuid, from media_list). max length 64
  • action string required One of: instruction, remove_background, cutout, product_white, enhance, expand.
  • instruction string — For instruction: what to change, in the user's words. min length 3 · max length 2000
  • ratio string — For expand. One of: 4:5, 1:1, 9:16, 16:9.
  • description string — For expand (optional): what the new area should show. max length 2000
  • model string — The model's name from image_models_list; leave out for the default. max length 60
  • organization_id string — An organization id (uuid) of this key.
  • max_credits integer required — The most credits this request may spend. A higher price is refused (402 quote_exceeded) and nothing is charged. Only purchased credits pay over the API. min 0

Response 201

  • message string required — A short sentence for a person.
  • job object required
    • kind string required — image, video, voice or clip_edit (the kind for GET /jobs/{id}).
    • id string required — The job id (uuid): GET /jobs/{id}.
    • status string required — Usually queued.
    • label string required
    • status_url string required — The dashboard path that polls it (relative to https://iqcore.ai).
    • open_url string required — The dashboard page that shows it (relative to https://iqcore.ai).
    • credits_reserved integer required
  • credits_reserved integer required — Reserved now; the real charge (never more) is settled when the job finishes.
  • note string required

Errors: 400 401 402 403 404 409 422 429 500 — codes

Example

curl
curl -X POST "https://iqcore.ai/api/public/v1/images/edits" \
  -H "Authorization: Bearer $IQCORE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "image",
    "action": "instruction",
    "max_credits": 10
}'
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/edits", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({
      "image": "image",
      "action": "instruction",
      "max_credits": 10
  }),
});
console.log(res.status, await res.json());
Python
import os, uuid
import requests

res = requests.post(
    "https://iqcore.ai/api/public/v1/images/edits",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "image": "image",
        "action": "instruction",
        "max_credits": 10
    },
)
print(res.status_code, res.json())
json
{
    "message": "message",
    "job": {
        "kind": "kind",
        "id": "<id>",
        "status": "status",
        "label": "label",
        "status_url": "https://example.com/page",
        "open_url": "https://example.com/page",
        "credits_reserved": 1
    },
    "credits_reserved": 1,
    "note": "note"
}

Image models

GET /images/models

  • Operation image_models_list
  • Scope media.read
  • Lowest role viewer
  • Read only
  • MCP image_models_list

The image models the account can pick in Generate Image: id, name, default, premium and locked flags, capability tags, aspect ratios, max pictures per request and the credits of one picture per size. Locked = needs a subscription or purchased credits.

Parameters

  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • models array of object required
    • id integer required
    • name string required — The model name to pass as `model`.
    • default boolean — Present (true) on the default model.
    • premium boolean — Present (true) on a subscribers model.
    • locked boolean — Present (true) when the account cannot use it now (needs a subscription or purchased credits).
    • purchased_credits_only boolean — Present (true) when only purchased credits pay for it.
    • unavailable boolean — Present (true) while it cannot run.
    • tags array of string — Capability tags (4k, 2k, references, edit, batch, quality, custom_size).
    • aspect_ratios array of string required
    • max_pictures integer required — Pictures per request at most.
    • credits_per_size object — size → credits of ONE picture (the estimate of a real request includes the prompt).

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/images/models" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/models", {
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());
Python
import os
import requests

res = requests.get(
    "https://iqcore.ai/api/public/v1/images/models",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "models": [
        {
            "id": 1,
            "name": "Summer sale",
            "default": false,
            "premium": false,
            "locked": false,
            "purchased_credits_only": false,
            "unavailable": false,
            "tags": [
                "tag"
            ],
            "aspect_ratios": [
                "aspect_ratio"
            ],
            "max_pictures": 1,
            "credits_per_size": {}
        }
    ]
}

Image styles

GET /images/styles

  • Operation image_styles_list
  • Scope media.read
  • Lowest role viewer
  • Read only
  • MCP image_styles_list

The styles for Generate Image and Video: the IQCore catalogue (id, name, category) and the account's own styles (id, name, source, template). Filter by owner and category; the categories in use come back too.

Parameters

  • owner query string — catalog = IQCore styles, mine = the account's own (default all). One of: all, catalog, mine.
  • category query string — Only catalogue styles of this category. One of: product, photo, illustration, 3d, anime, art, design, vintage, fantasy.
  • limit query integer — At most this many catalogue styles (default 20). min 1 · max 50
  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • categories array of string — The catalogue categories in use.
  • catalog_total integer — Catalogue styles matching the filter (before limit).
  • catalog array of object
    • id string required — The style id (uuid) for style_id.
    • name string required
    • category string | null required
  • mine array of object
    • id string required — The style id (uuid) for style_id.
    • name string
    • source string — prompt (written) or image (read from a picture).
    • template string — The style template (shortened).
    • created_at string

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/images/styles" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/styles", {
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());
Python
import os
import requests

res = requests.get(
    "https://iqcore.ai/api/public/v1/images/styles",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "categories": [
        "categorie"
    ],
    "catalog_total": 1,
    "catalog": [
        {
            "id": "<id>",
            "name": "Summer sale",
            "category": "category"
        }
    ],
    "mine": [
        {
            "id": "<id>",
            "name": "Summer sale",
            "source": "source",
            "template": "template",
            "created_at": "2026-12-05T09:00:00Z"
        }
    ]
}

Image status

GET /images/{id}

  • Operation image_status
  • Scope media.read
  • Lowest role viewer
  • Read only
  • MCP image_status

One image generation or edit by its id (from image_list or create_recent): status, prompt, model, style, aspect ratio, size, quality, credits reserved and charged, the picture files as Media library ids, the reason of a failure and the times.

Parameters

  • id path string required — The generation id (uuid). max length 64
  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • id string required — The generation id (uuid).
  • status string required — queued, processing, completed, failed or cancelled.
  • operation string — An image edit: its kind (edit, inpaint, expand …).
  • prompt string — The prompt (shortened).
  • model string
  • aspect_ratio string
  • size string
  • count integer — Pictures asked for.
  • pictures integer — Pictures made (completed only).
  • credits_charged integer required
  • favorite boolean — Present (true) when starred.
  • created_at string
  • reason string — Why it failed (failed only).
  • style string
  • quality string
  • custom_size array of integer — [width, height] in pixels when a custom size was asked.
  • credits_reserved integer
  • files array of object — The pictures shown (Media library ids, uuid).
    • id string required
    • name string
    • width integer
    • height integer
  • removed_pictures integer — Pictures removed from the list or deleted since.
  • finished_at string

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/images/<id>" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/<id>", {
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());
Python
import os
import requests

res = requests.get(
    "https://iqcore.ai/api/public/v1/images/<id>",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "id": "<id>",
    "status": "status",
    "operation": "operation",
    "prompt": "A bright product photo of a leather boot",
    "model": "model",
    "aspect_ratio": "aspect_ratio",
    "size": "size",
    "count": 1,
    "pictures": 1,
    "credits_charged": 1,
    "favorite": false,
    "created_at": "2026-12-05T09:00:00Z",
    "reason": "reason",
    "style": "style",
    "quality": "quality",
    "custom_size": [
        1
    ],
    "credits_reserved": 1,
    "files": [
        {
            "id": "<id>",
            "name": "Summer sale",
            "width": 1,
            "height": 1
        }
    ],
    "removed_pictures": 1,
    "finished_at": "2026-12-05T09:00:00Z"
}

Delete an image

DELETE /images/{id}

  • Operation image_delete
  • Scope media.delete
  • Lowest role admin
  • Deletes (owner or admin)

Delete an image creation (query parameters): scope list = remove it from the Images list (the pictures stay in the Media library), permanent = also delete the pictures. picture = one picture of it (Media library id); leave out for all. Runs at once; a creation still being made is refused (cancel it first). Credits are never touched.

Parameters

  • id path string required — The generation id (uuid). max length 64
  • scope query string required One of: list, permanent.
  • picture query string — One picture of the creation (Media library id, uuid); leave out for all. max length 64
  • Idempotency-Key header string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.

Request body application/json

  • organization_id string — An organization id (uuid) of this key.

Response 200

  • message string required — A short sentence for a person.
  • deleted integer required — Pictures removed or deleted.

Errors: 400 401 403 404 409 422 429 500 — codes

Example

curl
curl -X DELETE "https://iqcore.ai/api/public/v1/images/<id>?scope=list" \
  -H "Authorization: Bearer $IQCORE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/<id>?scope=list", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
console.log(res.status, await res.json());
Python
import os, uuid
import requests

res = requests.delete(
    "https://iqcore.ai/api/public/v1/images/<id>?scope=list",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
    json={},
)
print(res.status_code, res.json())
json
{
    "message": "message",
    "deleted": 1
}

Cancel an image

POST /images/{id}/cancel

  • Operation image_cancel
  • Scope create.spend
  • Lowest role member
  • Changes data
  • MCP image_cancel

Cancel an image or picture edit that is still waiting to start (from job_status / image_list): the reserved credits go back, nothing is charged. Once it is being made it can no longer be cancelled.

Parameters

  • id path string required — The generation id (uuid). max length 64
  • Idempotency-Key header string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.

Request body application/json

  • organization_id string — An organization id (uuid) of this key.

Response 200

  • id string required — The job id (uuid).
  • cancelled boolean required — Cancelled by this request (false: already started, finished or cancelled).
  • status string required — The status now.
  • message string required — A short sentence for a person.

Errors: 400 401 403 404 409 422 429 500 — codes

Example

curl
curl -X POST "https://iqcore.ai/api/public/v1/images/<id>/cancel" \
  -H "Authorization: Bearer $IQCORE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/<id>/cancel", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
console.log(res.status, await res.json());
Python
import os, uuid
import requests

res = requests.post(
    "https://iqcore.ai/api/public/v1/images/<id>/cancel",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
    json={},
)
print(res.status_code, res.json())
json
{
    "id": "<id>",
    "cancelled": false,
    "status": "status",
    "message": "message"
}

Star an image

POST /images/{id}/favorite

  • Operation image_favorite
  • Scope media.write
  • Lowest role member
  • Changes data
  • MCP image_favorite

Mark an image creation as a favourite, or remove the star (favorite false). Favourites can be filtered on the Images page and in image_list.

Parameters

  • id path string required — The generation id (uuid). max length 64
  • Idempotency-Key header string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.

Request body application/json

  • favorite boolean — true = star (default), false = remove the star.
  • organization_id string — An organization id (uuid) of this key.

Response 200

  • id string required — The image creation (generation) id.
  • favorite boolean required — Starred now.
  • message string required — A short sentence for a person.

Errors: 400 401 403 404 409 422 429 500 — codes

Example

curl
curl -X POST "https://iqcore.ai/api/public/v1/images/<id>/favorite" \
  -H "Authorization: Bearer $IQCORE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/images/<id>/favorite", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
console.log(res.status, await res.json());
Python
import os, uuid
import requests

res = requests.post(
    "https://iqcore.ai/api/public/v1/images/<id>/favorite",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
    json={},
)
print(res.status_code, res.json())
json
{
    "id": "<id>",
    "favorite": false,
    "message": "message"
}