Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.
Image creations
GET /images
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
statusquery string — Only this status (default all). One of:all,failed,running,completed.favoritesquery boolean — Only the starred ones.limitquery integer — At most this many (default 10). min 1 · max 20organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
itemsarray of object requiredidstring required — The generation id (uuid).statusstring required — queued, processing, completed, failed or cancelled.operationstring — An image edit: its kind (edit, inpaint, expand …).promptstring — The prompt (shortened).modelstringaspect_ratiostringsizestringcountinteger — Pictures asked for.picturesinteger — Pictures made (completed only).credits_chargedinteger requiredfavoriteboolean — Present (true) when starred.created_atstringreasonstring — Why it failed (failed only).
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/images" \
-H "Authorization: Bearer $IQCORE_KEY"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());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()){
"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
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-Keyheader 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
promptstring required min length 3 · max length 4000modelstring — The model's name from image_models_list; leave out for the default. max length 60aspect_ratiostring — 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.sizestring One of:512,1K,2K,4K.countinteger min 1 · max 4stylestring One of:none,product_photography,luxury_commercial,minimal,studio,lifestyle,editorial,cinematic,realistic,modern_ad,soft_light,dark_premium,social_ad.style_idstring — A style of the style library (uuid, from image_styles_list). max length 64referencesarray of string — Reference pictures (Media library ids, from media_list). max items 4organization_idstring — An organization id (uuid) of this key.max_creditsinteger 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
messagestring required — A short sentence for a person.jobobject requiredkindstring required — image, video, voice or clip_edit (the kind for GET /jobs/{id}).idstring required — The job id (uuid): GET /jobs/{id}.statusstring required — Usually queued.labelstring requiredstatus_urlstring required — The dashboard path that polls it (relative to https://iqcore.ai).open_urlstring required — The dashboard page that shows it (relative to https://iqcore.ai).credits_reservedinteger required
credits_reservedinteger required — Reserved now; the real charge (never more) is settled when the job finishes.notestring required
Errors: 400 401 402 403 404 409 422 429 500 — codes
Example
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
}'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());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()){
"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
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-Keyheader 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
imagestring required — The picture (Media library id, uuid, from media_list). max length 64actionstring required One of:instruction,remove_background,cutout,product_white,enhance,expand.instructionstring — For instruction: what to change, in the user's words. min length 3 · max length 2000ratiostring — For expand. One of:4:5,1:1,9:16,16:9.descriptionstring — For expand (optional): what the new area should show. max length 2000modelstring — The model's name from image_models_list; leave out for the default. max length 60organization_idstring — An organization id (uuid) of this key.max_creditsinteger 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
messagestring required — A short sentence for a person.jobobject requiredkindstring required — image, video, voice or clip_edit (the kind for GET /jobs/{id}).idstring required — The job id (uuid): GET /jobs/{id}.statusstring required — Usually queued.labelstring requiredstatus_urlstring required — The dashboard path that polls it (relative to https://iqcore.ai).open_urlstring required — The dashboard page that shows it (relative to https://iqcore.ai).credits_reservedinteger required
credits_reservedinteger required — Reserved now; the real charge (never more) is settled when the job finishes.notestring required
Errors: 400 401 402 403 404 409 422 429 500 — codes
Example
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
}'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());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()){
"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
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_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
modelsarray of object requiredidinteger requirednamestring required — The model name to pass as `model`.defaultboolean — Present (true) on the default model.premiumboolean — Present (true) on a subscribers model.lockedboolean — Present (true) when the account cannot use it now (needs a subscription or purchased credits).purchased_credits_onlyboolean — Present (true) when only purchased credits pay for it.unavailableboolean — Present (true) while it cannot run.tagsarray of string — Capability tags (4k, 2k, references, edit, batch, quality, custom_size).aspect_ratiosarray of string requiredmax_picturesinteger required — Pictures per request at most.credits_per_sizeobject — 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 "https://iqcore.ai/api/public/v1/images/models" \
-H "Authorization: Bearer $IQCORE_KEY"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());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()){
"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
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
ownerquery string — catalog = IQCore styles, mine = the account's own (default all). One of:all,catalog,mine.categoryquery string — Only catalogue styles of this category. One of:product,photo,illustration,3d,anime,art,design,vintage,fantasy.limitquery integer — At most this many catalogue styles (default 20). min 1 · max 50organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
categoriesarray of string — The catalogue categories in use.catalog_totalinteger — Catalogue styles matching the filter (before limit).catalogarray of objectidstring required — The style id (uuid) for style_id.namestring requiredcategorystring | null required
minearray of objectidstring required — The style id (uuid) for style_id.namestringsourcestring — prompt (written) or image (read from a picture).templatestring — The style template (shortened).created_atstring
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/images/styles" \
-H "Authorization: Bearer $IQCORE_KEY"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());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()){
"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}
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
idpath string required — The generation id (uuid). max length 64organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
idstring required — The generation id (uuid).statusstring required — queued, processing, completed, failed or cancelled.operationstring — An image edit: its kind (edit, inpaint, expand …).promptstring — The prompt (shortened).modelstringaspect_ratiostringsizestringcountinteger — Pictures asked for.picturesinteger — Pictures made (completed only).credits_chargedinteger requiredfavoriteboolean — Present (true) when starred.created_atstringreasonstring — Why it failed (failed only).stylestringqualitystringcustom_sizearray of integer — [width, height] in pixels when a custom size was asked.credits_reservedintegerfilesarray of object — The pictures shown (Media library ids, uuid).idstring requirednamestringwidthintegerheightinteger
removed_picturesinteger — Pictures removed from the list or deleted since.finished_atstring
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/images/<id>" \
-H "Authorization: Bearer $IQCORE_KEY"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());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()){
"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}
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
idpath string required — The generation id (uuid). max length 64scopequery string required One of:list,permanent.picturequery string — One picture of the creation (Media library id, uuid); leave out for all. max length 64Idempotency-Keyheader 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_idstring — An organization id (uuid) of this key.
Response 200
messagestring required — A short sentence for a person.deletedinteger required — Pictures removed or deleted.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
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 '{}'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());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()){
"message": "message",
"deleted": 1
}Cancel an image
POST /images/{id}/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
idpath string required — The generation id (uuid). max length 64Idempotency-Keyheader 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_idstring — An organization id (uuid) of this key.
Response 200
idstring required — The job id (uuid).cancelledboolean required — Cancelled by this request (false: already started, finished or cancelled).statusstring required — The status now.messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
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 '{}'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());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()){
"id": "<id>",
"cancelled": false,
"status": "status",
"message": "message"
}Star an image
POST /images/{id}/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
idpath string required — The generation id (uuid). max length 64Idempotency-Keyheader 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
favoriteboolean — true = star (default), false = remove the star.organization_idstring — An organization id (uuid) of this key.
Response 200
idstring required — The image creation (generation) id.favoriteboolean required — Starred now.messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
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 '{}'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());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()){
"id": "<id>",
"favorite": false,
"message": "message"
}