IQCore Studio AI — API reference

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

  • Operation studio_make_with_ai
  • Scope create.spend
  • Lowest role member
  • Spends credits (max_credits required)
  • MCP 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-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

  • files array of string required — Media library file ids (media_list), in order. max items 12
  • brief string required — What the reel is for, in the customer's words. min length 3 · max length 10000
  • aspect string required One of: 9:16, 1:1, 4:5, 16:9, 3:4, 21:9.
  • length integer required One of: 10, 15, 20, 30, 45, 60, 90.
  • language string required One of: en, ar, de, es, fr, nl.
  • video_style string — A video style key (leave out for the classic ad style). max length 20
  • mood string — A look of the style (clean, bold, elegant, playful, minimal for the classic one). max length 20
  • music string — An audio file id of the Media library. max length 64
  • 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 200

  • job object required — The background job to follow (job_status with its id and kind).
    • kind string required — The job kind (render, sticker, reel_run, agent).
    • id string required
    • status string required
    • label string required
    • status_url string required — A path on iqcore.ai (the dashboard's status route).
    • open_url string required — A path on iqcore.ai where the result opens.
    • credits_reserved integer required min 0
  • id string required — The AI run id.
  • credits_reserved integer required
  • message string required

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

Example

curl
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
}'
JavaScript
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());
Python
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())
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

  • Operation studio_agent_stop
  • Scope studio.write
  • Lowest role member
  • Changes data

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

  • project path string required — The project id (studio_projects_list). max length 64
  • run path string required — The agent run id. 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

  • run string required
  • status string required
  • message string required

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

Example

curl
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 '{}'
JavaScript
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());
Python
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())
json
{
    "run": "run",
    "status": "status",
    "message": "message"
}

Make a sticker

POST /studio/stickers

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

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-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

  • subject string required — What the sticker shows, in a few words. min length 2 · max length 200
  • kind string One of: sticker, icon, badge, doodle.
  • 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 200

  • job object required — The background job to follow (job_status with its id and kind).
    • kind string required — The job kind (render, sticker, reel_run, agent).
    • id string required
    • status string required
    • label string required
    • status_url string required — A path on iqcore.ai (the dashboard's status route).
    • open_url string required — A path on iqcore.ai where the result opens.
    • credits_reserved integer required min 0
  • id string required — The image creation (generation) id.
  • credits_reserved integer required — Held now; settled when it is made (0 on failure).
  • message string required

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

Example

curl
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
}'
JavaScript
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());
Python
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())
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"
}