Submit an async job
Submit an asynchronous job - a GPU shape, or the CPU-only "cpu-8" for CPU-bound batch stages (see chip): it builds your image (an inline context file map + Dockerfile, or a prebuilt image ref), queues fairly against your org's share, runs your command, and bills only the running attempt (builds bill after a monthly free allowance; queued and preempted time is free). Returns the job id, the rate, the cost ceiling, and once queued your position and wait estimate. The queue is built for long waits: hours queued is normal - the job holds its place for queue_ttl_minutes (default 3 days), so poll get_job minutes apart off queue.estimated_wait_seconds. Iterating on a script? Use a node instead (create_node + run_command): every submit builds and pushes a fresh image (~10 minutes even on a warm cache), so jobs suit unattended runs, not the edit-run-inspect loop. In the container, write your verdict as JSON to $GMN_RESULT_PATH and put files worth keeping in $GMN_OUTPUT_DIR - both come back on get_job when the attempt ends (the result inline, the output dir as a download URL). To land output in your OWN storage, pass output_to: {connection, dest} - a write-enabled connection and a prefix; no credential reaches your container. depends_on: {job, require} gates this job on another job's declared result: it never builds or places unless that job succeeds and the predicate holds, so a probe in front of an expensive arm costs nothing when it says no. Checkpoints: if $GMN_CHECKPOINT_DIR is non-empty at start, resume from it; write there and POST /v1/checkpoint - an interrupted attempt bills only to its last capture. resume: "checkpoint" also unlocks placement in shorter capacity windows, and a checkpointed job may POST /v1/yield to end its attempt and resume later. idempotency_key makes resubmission safe: the same key returns the same job. Give the job a mission (open_mission first): its cost and result roll up on the mission page you hand the human.
Request
- Base URL: https://autoresearch.sfcompute.com
- URL: https://autoresearch.sfcompute.com/preview/jobs
- Auth: HTTP bearer
Query parameters
Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.
Request body
Response
The capability's JSON result.
Changes
No recorded changes to this operation across all 1 revision of this API.