Skip to main content
Glama

Quick start

npx --yes @i2v-ai/cli list --type image --json
npx --yes @i2v-ai/cli price gpt-image-2

list, doc and price read the public catalog and need no API key. Install it globally for repeated use:

npm install --global @i2v-ai/cli
brew install i2v-ai/tap/i2v

Related MCP server: runninghub-mcp

Generate with a budget

export I2V_API_KEY="YOUR_API_KEY"
i2v plan gpt-image-2 --input-file inputs.json
i2v run gpt-image-2 --input-file inputs.json --max-cost-usd 0.20 \
  --expected-revision REVISION --idempotency-key order-1234 --no-wait
i2v status TASK_ID --wait 120 --out ./result.png
  • plan validates the inputs and returns the account quote plus the model revision.

  • run submits only inside the approved USD ceiling and keeps the idempotency key you supply.

  • status --wait retries HTTP 429, 502, 503 and 504 inside the same deadline, honoring Retry-After.

  • recover OPERATION_ID looks up the original receipt when the submit response was lost.

Commands

Command

Purpose

list / doc / price

Public catalog, model documentation, USD rates

plan / quote

Validate inputs and quote the account reservation

upload

Upload and verify a local reference file

run

Submit with a ceiling, wait or return a receipt

status / recover

Continue a task or recover a lost submission

balance / usage

USD balance and settled usage

doctor

Check the CLI, API and MCP configuration

mcp

Start the local stdio MCP server

Full reference: i2v.ai/cli.

For AI agents

Repository

Purpose

i2v-sdk-js

TypeScript SDK

i2v-sdk-python

Python SDK

i2v-skills

Agent Skills and plugin manifests

i2v-mcp

Remote MCP metadata and registry publication

generate-action

GitHub Action

i2v-api-examples

Runnable API examples

i2v-agent-tools

Ecosystem hub

License

MIT. See LICENSE.

Available Tools

14 tools
complete_uploadComplete media uploadC
Idempotent

Verify an uploaded owned object before using its URL.

Inputs: assetId (required).

create_taskCreate generation taskA
Destructive

Submit one generation task. RESERVES USD BALANCE and calls an upstream provider. Returns a taskId; poll get_task until status is success or fail. Call prepare_generation first and pass its expectedRevision, the approved maxCostUsd and a stable idempotencyKey. Pass maxCostUsd to reject a reservation above the approved budget.

Inputs: inputs (required), modelId (required), maxCostUsd (required), idempotencyKey (required), +5 more.

create_upload_urlCreate upload URLA

Use an existing public URL, or get a presigned R2 PUT URL for one image/video/audio file. With fileName, PUT the raw bytes to uploadUrl using the returned Content-Type, then pass url in create_task inputs (for example imageUrls). Complete the upload with complete_upload before attaching the owned asset to a task. This call does not transfer the file itself.

Inputs: url, fileName, fileSize, contentType.

estimate_costEstimate task costA
Read-only

Return the USD cost for one task without creating an order or reserving funds. Uses the same API pricing channel as create_task (the same account entitlements apply to Web, REST and MCP). Call this before create_task.

Inputs: inputs (required), modelId (required).

get_accountGet accountA
Read-only

Return the authenticated user's email, name, USD available and reserved balance, and the connection's scopes.

Inputs: no named parameters.

get_model_paramsGet model parametersA
Read-only

Return the parameter contract for one public model: a JSON Schema (when the source schema is convertible), field defaults/options, and media slot limits. Use this before estimate_cost or create_task.

Inputs: modelId (required).

get_taskGet task statusA
Read-only

Read one task. status: waiting | generating | success | fail. On success, output contains the asset URLs; on fail, error contains a code and message. Poll with backoff (for example 5s, then 10s, then 20s) instead of a tight loop.

Inputs: taskId (required).

get_usageRead USD account usageA
Read-only

Read account-wide settled charges, refunds and net USD usage by UTC booking date. Default range is 30d. Pending reservations are reported by get_account.

Inputs: range.

list_modelsList generation modelsA
Read-only

List public i2v.ai image/video generation models that can be submitted right now. Returns the public modelId, price variants, and pagination. Only published models with an available i2v runtime are returned. Call get_model_params for one model before create_task.

Inputs: limit, offset, search, category, +1 more.

list_pricesA
Read-only

List public catalog USD prices, optionally filtering by keyword.

Inputs: q.

prepare_generationValidate and quote a task without submitting itA
Read-only

Check actual model inputs and return normalized settings and the current maximum USD reservation. This tool does not upload files, create tasks or reserve funds. Pass the returned expectedRevision and an approved cap to create_task.

Inputs: inputs (required), modelId (required), maxCostUsd.

recommend_modelsRecommend generation modelsA
Read-only

Find up to three published models for a task and relevant media constraints. If a model is explicitly requested, evaluate only that model. Confirm a recommendation with prepare_generation before spending.

Inputs: task, query, modelId, duration, +6 more.

recover_submissionRecover a submission receipt without submitting againA
Read-only

Find a durable receipt by the original idempotency key using the same API key or OAuth client. OAuth submissions must have used recoveryScope=connection.

Inputs: idempotencyKey (required).

search_docsSearch documentationA
Read-only

Search the public i2v.ai docs for concepts, parameter names, error codes, upload rules, and API/MCP usage. Returns matching pages with a snippet; open the returned URL for the full page. Does not read account data or run models.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have a clearly distinct purpose and the descriptions explicitly sequence them (list_models → get_model_params → prepare_generation → create_task). There is mild overlap among the pre-flight informational tools: estimate_cost, prepare_generation, and recommend_models all surface cost/model guidance, and list_models vs recommend_models both help pick a model, though the descriptions differentiate them.

    Naming Consistency5/5

    Every tool follows a consistent snake_case verb_noun pattern (list_prices, get_model_params, create_task, complete_upload, recover_submission, search_docs). No mixing of conventions or vague standalone verbs.

    Tool Count5/5

    14 tools is within a well-scoped range and each maps to a real step: discovery, cost/prep, submission, recovery, uploads, account/billing, and docs. No obviously redundant or filler tools.

    Completeness4/5

    The full generation lifecycle is covered (discover, inspect params, estimate, prepare, create, poll, recover, upload, account/usage, docs). Notable gaps: no task listing/history tool, no cancel_task, and no delete/cleanup for owned assets, which could leave agents without a way to manage or enumerate prior work.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers