DevelopersPlanned

One API under four products. A job is a job, whichever product starts it: one way to estimate it, run it, follow it, cancel it and collect what it made.

Planned. This page describes what we are building. Details may change before early access.

Illustrative

job.py

import fantasti

client = fantasti.Client(project="docs-search")

# 1. estimate: a dry run, nothing starts
quote = client.jobs.estimate(function="embed", inputs=pages)

# 2. run: the key makes a retry the same job, not a second one
job = client.jobs.run(function="embed", inputs=pages,
                      max_spend=5.00, idempotency_key="reindex-0412")

# 3. follow: status, log and cost while it works
for event in job.events():
    print(event.status, event.cost)

# 4. collect: artifacts are files with links that expire
for artifact in job.artifacts():
    artifact.download("out/")

terminal

$ fantasti jobs estimate embed --inputs pages.jsonl
estimate   0.42   about 3 min   any-24gb
$ fantasti jobs run embed --inputs pages.jsonl --max-spend 5.00
job_7f3a   queued
$ fantasti jobs follow job_7f3a
running    38%   0.16 spent
succeeded  3 min 12 s   0.41 spent
$ fantasti artifacts list job_7f3a
vectors.npy   index-v8/

terminal

$ fantasti jobs cancel job_7f3a
cancelled  1 min 04 s   0.14 spent
kept       1 artifact (partial)
# a cancelled job says what it cost and keeps what it made

The SDK and the CLI are published when the first cohort opens.

Five verbs, everywhere. A render, a pipeline, a function call and a deploy answer to the same five.

  1. 01

    Estimate

    Every call that spends has a dry run. It returns the expected cost and time, and starts nothing.

  2. 02

    Run

    A run carries an idempotency key and a spending limit. Sent twice, it is one job.

  3. 03

    Follow

    Status, logs and cost arrive as events while the job works.

  4. 04

    Cancel

    Cancelling stops the work, keeps what was made and says what it cost.

  5. 05

    Collect

    Artifacts are files in your project, behind links that expire when you say.

The life of a job. The states a job passes through, and what each one guarantees.

  1. 01

    Requested

    The call arrives with an idempotency key: sent twice, it is one job.

  2. 02

    Quoted

    The job is checked against roles, quota and policy, and gets an estimate.

  3. 03

    Authorized

    Inside the budget it goes on. Over it, a person or a rule approves first.

  4. 04

    Queued

    It waits for a worker that fits what it asked for.

  5. 05

    Running

    Logs and cost stream while it works. It can be cancelled.

  6. 06

    Succeeded, failed or cancelled

    The artifacts and the record stay. A failure says why and what it cost.

Four doors, one control plane. The SDK and the CLI are published when the first cohort opens.

Planned
REST API One control plane for the four products. Keys have scopes; every call that creates something takes an idempotency key.
Planned
Python SDK The API as objects: functions, flows, models, studios. A local run and a platform run share one definition.
Planned
CLI The same verbs from a terminal and from a build script, with output a script can read.
Planned
MCP server The same verbs as tools for an agent, with an approval gate on the ones that spend.

Follow the build. What ships is logged with its stage. A stage says what you can rely on.

Requests are not open yet. Questions are.

Ask a question about the platform.