Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.
Make a reel with AI
POST /studio/make-with-ai
Make a new reel with AI from Media library files (ids, in order, at most 12) and a brief: shape, seconds, text language, optionally a video style, its look and music. Spends credits: send max_credits (POST /quote tells the price; the run never holds more); only purchased credits pay. Runs at once (no card); follow `job` — the new reel opens in IQCore Studio. Video styles with AI pictures or a voice (a script the customer checks first) start in Make with AI on the dashboard (422).
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
filesarray of string required — Media library file ids (media_list), in order. max items 12briefstring required — What the reel is for, in the customer's words. min length 3 · max length 10000aspectstring required One of:9:16,1:1,4:5,16:9,3:4,21:9.lengthinteger required One of:10,15,20,30,45,60,90.languagestring required One of:en,ar,de,es,fr,nl.video_stylestring — A video style key (leave out for the classic ad style). max length 20moodstring — A look of the style (clean, bold, elegant, playful, minimal for the classic one). max length 20musicstring — An audio file id of the Media library. max length 64organization_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 200
jobobject required — The background job to follow (job_status with its id and kind).kindstring required — The job kind (render, sticker, reel_run, agent).idstring requiredstatusstring requiredlabelstring requiredstatus_urlstring required — A path on iqcore.ai (the dashboard's status route).open_urlstring required — A path on iqcore.ai where the result opens.credits_reservedinteger required min 0
idstring required — The AI run id.credits_reservedinteger requiredmessagestring required
Errors: 400 401 402 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/studio/make-with-ai" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"files": [
"file"
],
"brief": "brief",
"aspect": "9:16",
"length": 10,
"language": "en",
"max_credits": 10
}'const res = await fetch("https://iqcore.ai/api/public/v1/studio/make-with-ai", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"files": [
"file"
],
"brief": "brief",
"aspect": "9:16",
"length": 10,
"language": "en",
"max_credits": 10
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/studio/make-with-ai",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"files": [
"file"
],
"brief": "brief",
"aspect": "9:16",
"length": 10,
"language": "en",
"max_credits": 10
},
)
print(res.status_code, res.json()){
"job": {
"kind": "kind",
"id": "<id>",
"status": "status",
"label": "label",
"status_url": "https://example.com/page",
"open_url": "https://example.com/page",
"credits_reserved": 1
},
"id": "<id>",
"credits_reserved": 1,
"message": "message"
}Stop the AI agent
POST /studio/projects/{project}/agent-runs/{run}/stop
Stop the AI agent on a reel (the run id: `agent_run.id` of GET /studio/projects/{project}): steps already done stay and can be undone, what was made is charged, the rest of the hold goes back; a plan not approved yet is cancelled. Only the login that started the run, or an owner / admin. Runs at once (no card).
Parameters
projectpath string required — The project id (studio_projects_list). max length 64runpath string required — The agent run id. 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
runstring requiredstatusstring requiredmessagestring required
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/studio/projects/<project>/agent-runs/<run>/stop" \
-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/studio/projects/<project>/agent-runs/<run>/stop", {
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/studio/projects/<project>/agent-runs/<run>/stop",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={},
)
print(res.status_code, res.json()){
"run": "run",
"status": "status",
"message": "message"
}Make a sticker
POST /studio/stickers
Make an AI sticker for reels — a sticker, icon, badge or doodle of a subject, transparent background, saved in the Media library (tag sticker). Spends credits: send max_credits (POST /quote tells the price); only purchased credits pay. Runs at once (no card); follow `job`. Then add it to a reel with an edit (add_clip, layer overlay).
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
subjectstring required — What the sticker shows, in a few words. min length 2 · max length 200kindstring One of:sticker,icon,badge,doodle.organization_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 200
jobobject required — The background job to follow (job_status with its id and kind).kindstring required — The job kind (render, sticker, reel_run, agent).idstring requiredstatusstring requiredlabelstring requiredstatus_urlstring required — A path on iqcore.ai (the dashboard's status route).open_urlstring required — A path on iqcore.ai where the result opens.credits_reservedinteger required min 0
idstring required — The image creation (generation) id.credits_reservedinteger required — Held now; settled when it is made (0 on failure).messagestring required
Errors: 400 401 402 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/studio/stickers" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"subject": "subject",
"max_credits": 10
}'const res = await fetch("https://iqcore.ai/api/public/v1/studio/stickers", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"subject": "subject",
"max_credits": 10
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/studio/stickers",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"subject": "subject",
"max_credits": 10
},
)
print(res.status_code, res.json()){
"job": {
"kind": "kind",
"id": "<id>",
"status": "status",
"label": "label",
"status_url": "https://example.com/page",
"open_url": "https://example.com/page",
"credits_reserved": 1
},
"id": "<id>",
"credits_reserved": 1,
"message": "message"
}