CommonCompute
Get startedExplore workloads
Getting started

Your first job

Start with the public catalog, request a quote, and then submit the same workload and model.

python
quote = cc.submit(
    "mlx_llm",
    {"messages": [{"role": "user", "content": "Explain batch inference in one sentence."}]},
    model_id="qwen3-4b",
    data_class="public",
    dry_run=True,
)
print(quote.price_usd)
python
job = cc.submit(
    "mlx_llm",
    {"messages": [{"role": "user", "content": "Explain batch inference in one sentence."}]},
    model_id="qwen3-4b",
    data_class="public",
    marketplace_execution_risk_acknowledged=True,
    max_spend_usd=quote.price_usd,
)
print(cc.jobs.wait(job.id).output)
max_spend_usd is a per-job ceiling. If the quote exceeds it, submission is rejected.